Aspire.Hosting.SqlServer
Official
📦 Aspire.Hosting.SqlServerv17.0.0Import path
apphost/modules/aspire8Functions
3Types
3 types, 8 functions and 17 members
Handles
Functions
DistributedApplicationBuilder
SqlServerDatabaseResource
SqlServerServerResource
method
AddDatabasebuilderAdds a SQL Server database resource
AddDatabase(name string, options ...*AddDatabaseOptions) SqlServerDatabaseResourcemethod
WithDataBindMountbuilderAdds a bind mount for the data folder to a SQL Server resource.
WithDataBindMount(source string, options ...*WithDataBindMountOptions) SqlServerServerResourcemethod
WithDataVolumebuilderAdds a named volume for the data folder to a SQL Server resource.
WithDataVolume(options ...*WithDataVolumeOptions) SqlServerServerResourcemethod
WithHostPortbuilderConfigures the host port that the SqlServer resource is exposed on instead of using randomly assigned port.
WithHostPort(port *float64) SqlServerServerResourcemethod
WithPasswordbuilderConfigures the password that the SqlServer resource is used.
WithPassword(password ParameterResource) SqlServerServerResourcemethod
WithReplbuilderAdds a REPL command that opens an authenticated SQL Server shell with the configured client tools.
WithRepl(options ...*WithReplOptions) SqlServerServerResourceExported values
SqlServerReplCommand.Version17string= "/opt/mssql-tools/bin/sqlcmd"The sqlcmd executable path for SQL Server client tools version 17.
SqlServerReplCommand.Version18string= "/opt/mssql-tools18/bin/sqlcmd"The sqlcmd executable path for SQL Server client tools version 18.