Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithRepl

Method
📦 Aspire.Hosting.SqlServer v17.0.0
func (SqlServerServerResource) WithRepl(options ...*WithReplOptions) SqlServerServerResource

Signature

methodWithReplbuilder
Adds a REPL command that opens an authenticated SQL Server shell with the configured client tools.
WithRepl(options ...*WithReplOptions) SqlServerServerResource
options...*WithReplOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithReplOptions argument.

Configurefunc(obj SqlServerReplOptions)callbackAn optional callback to configure the SQL Server REPL.
SqlServerServerResource

The resource builder for chaining.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: