SurrealDbDatabaseResource
Handle
interface SurrealDbDatabaseResource extends IExpressionValue, IManifestExpressionProvider, IResource, IResourceWithConnectionString, IResourceWithParent, SurrealDbNamespaceResource]], IValueProvider, IValueWithReferences { readonly connectionStringExpression: ReferenceExpression; readonly databaseName: string; readonly parent: SurrealDbNamespaceResource; withCreationScript(script: string): SurrealDbDatabaseResource;}Properties
property
connectionStringExpressionReferenceExpressiongetGets the connection string expression for the SurrealDB database.
property
databaseNamestringgetGets the database name.
property
parentSurrealDbNamespaceResourcegetGets the parent SurrealDB namespace resource.
Methods
Defines the SQL script used to create the database.
withCreationScript(script: string): SurrealDbDatabaseResourceParameters
scriptstringReturns
SurrealDbDatabaseResource