SurrealDbNamespaceResource
Handle
interface SurrealDbNamespaceResource extends IExpressionValue, IManifestExpressionProvider, IResource, IResourceWithConnectionString, IResourceWithParent, SurrealDbServerResource]], IValueProvider, IValueWithReferences { readonly connectionStringExpression: ReferenceExpression; readonly databases: Dict<string,string>; readonly namespaceName: string; readonly parent: SurrealDbServerResource; addDatabase( name: string, databaseName?: string): SurrealDbDatabaseResource; withCreationScript(script: string): SurrealDbNamespaceResource;} 6 members
Properties
property
connectionStringExpression ReferenceExpression get Gets the connection string expression for the SurrealDB database.
property
databases Dict<string,string> get A dictionary where the key is the resource name and the value is the database name.
property
namespaceName string get Gets the namespace name.
property
parent SurrealDbServerResource get Gets the parent SurrealDB container resource.
Methods
Adds a SurrealDB database resource to the application model
addDatabase( name: string, databaseName?: string): SurrealDbDatabaseResourceParameters
name string databaseName string optional Returns
SurrealDbDatabaseResource Defines the SQL script used to create the namespace.
withCreationScript(script: string): SurrealDbNamespaceResourceParameters
script string Returns
SurrealDbNamespaceResource