Aspire.Hosting.SqlServer
Official
📦 Aspire.Hosting.SqlServerv13.4.07Functions
2Types
2 types and 15 members
Types
Functions
method
addDatabasebuilderAdds a SQL Server database resource
addDatabase(name: string, databaseName?: string): SqlServerDatabaseResourcemethod
addSqlServerbuilderAdds a SQL Server resource to the application model. A container is used for local development.
addSqlServer(name: string, password?: ParameterResource, port?: number): SqlServerServerResourcemethod
withCreationScriptbuilderDefines the SQL script used to create the database.
withCreationScript(script: string): SqlServerDatabaseResourcemethod
withDataBindMountbuilderAdds a bind mount for the data folder to a SQL Server resource.
withDataBindMount(source: string, isReadOnly?: boolean): SqlServerServerResourcemethod
withDataVolumebuilderAdds a named volume for the data folder to a SQL Server resource.
withDataVolume(name?: string, isReadOnly?: boolean): SqlServerServerResourcemethod
withHostPortbuilderConfigures the host port that the SqlServer resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): SqlServerServerResourcemethod
withPasswordbuilderConfigures the password that the SqlServer resource is used.
withPassword(password: ParameterResource): SqlServerServerResource