Aspire.Hosting.SqlServer
Official
📦 Aspire.Hosting.SqlServer v13.2.0-preview.1.26159.1 7 Functions
2 Types
2 types and 25 members
Types
Functions
function
addDatabase builder Adds a SQL Server database resource
addDatabase(name: string, databaseName?: string): SqlServerDatabaseResource function
addSqlServer builder Adds a SQL Server container resource
addSqlServer(name: string, password?: ParameterResource, port?: number): SqlServerServerResource function
withCreationScript builder Defines the SQL script used to create the database
withCreationScript(script: string): SqlServerDatabaseResource function
withDataBindMount builder Adds a bind mount for the SQL Server data folder
withDataBindMount(source: string, isReadOnly?: boolean): SqlServerServerResource function
withDataVolume builder Adds a named volume for the SQL Server data folder
withDataVolume(name?: string, isReadOnly?: boolean): SqlServerServerResource function
withHostPort builder Sets the host port for the SQL Server resource
withHostPort(port: number): SqlServerServerResource function
withPassword builder Configures the password for the SQL Server resource
withPassword(password: ParameterResource): SqlServerServerResource