SurrealDbDatabaseResource
Handle
A resource that represents a SurrealDB database that is a child of a SurrealDB namespace resource.
type SurrealDbDatabaseResource interface { ExpressionValue Resource ResourceWithConnectionString ResourceWithParent}Properties
property
ConnectionStringExpression *ReferenceExpression getGets the connection string expression for the SurrealDB database.
ConnectionStringExpression() *ReferenceExpressionproperty
DatabaseName stringgetGets the database name.
DatabaseName() (string, error)property
ParentSurrealDbNamespaceResource getGets the parent SurrealDB namespace resource.
Parent() SurrealDbNamespaceResourceMethods
Defines the SQL script used to create the database.
WithCreationScript(script string) SurrealDbDatabaseResourceParameters
scriptstringThe SQL script used to create the database.Returns
SurrealDbDatabaseResource A reference to the I.
Returns a handle; failures surface later via Err().