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
connectionStringExpression ReferenceExpression getGets the connection string expression for the SurrealDB database.
property
databaseName stringgetGets the database name.
property
parentSurrealDbNamespaceResource getGets the parent SurrealDB namespace resource.
Methods
Defines the SQL script used to create the database.
withCreationScript(script: string): SurrealDbDatabaseResourceParameters
scriptstringReturns
SurrealDbDatabaseResource