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 getGets the connection string expression for the SurrealDB database.
property
databasesDict<string,string> getA dictionary where the key is the resource name and the value is the database name.
property
namespaceName stringgetGets the namespace name.
property
parentSurrealDbServerResource getGets the parent SurrealDB container resource.
Methods
Adds a SurrealDB database resource to the application model
addDatabase( name: string, databaseName?: string): SurrealDbDatabaseResourceParameters
namestringdatabaseName stringoptionalReturns
SurrealDbDatabaseResource Defines the SQL script used to create the namespace.
withCreationScript(script: string): SurrealDbNamespaceResourceParameters
scriptstringReturns
SurrealDbNamespaceResource