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
connectionStringExpressionReferenceExpressiongetGets 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
namespaceNamestringgetGets the namespace name.
property
parentSurrealDbServerResourcegetGets the parent SurrealDB container resource.
Methods
Adds a SurrealDB database resource to the application model
addDatabase( name: string, databaseName?: string): SurrealDbDatabaseResourceParameters
namestringdatabaseNamestringoptionalReturns
SurrealDbDatabaseResourceDefines the SQL script used to create the namespace.
withCreationScript(script: string): SurrealDbNamespaceResourceParameters
scriptstringReturns
SurrealDbNamespaceResource