classmethod CreateDatabase(databaseName As %String(MAXLEN="")="", documentType As %String(MAXLEN=200), resource As %String(MAXLEN="")) as %DocDB.Database [ Language = objectscript ]
Create a new Database in the current namespace. If a Database of that name already exists then return an error.
Accepts Database Name, Document Type, and Resource. Return value is an oref referencing the Database definition
Delete the definition and currently visible extent of an existing Database. Return true if the Database exists and the drop is successful,
false if the named Database does not exist. If an error is encountered during execution then an exception is thrown.
classmethod Exists(databaseName As %RawString = "") as %Boolean [ Language = objectscript ]
Return 1 (true) if the databaseName database is defined in the current namespace, 0 (false) otherwise.
Retrieve the Database definition, this includes the Name, Class, Resource and Document Type Class. If the requested Database does not exist then an exception is thrown.
Returns an oref referencing the Database definition object.