Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

SqlServerServerResource.WithRepl

Method
📦 Aspire.Hosting.SqlServer v17.0.0
type SqlServerServerResource interface {
// ... omitted for brevity
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().

Defined on

This method is defined on the following type: