This is a global built in package that provides global level interfaces to the program data base.
This function can be used to copy a data base node in a global scope based on a global database node identifier to another data base node location based on a global database node identifier.
Warning
The source database node must exist, and the destination node if it exists already must be the same value type.
Parameters
sourcenodeid (string)
The global data base node identifier for the source node
destnodeid (string)
A global data base node identifier for the destination node
Return values
(databasenode)
A
databasenode object representing the destination node, or
nil if the node
was unable to be created for any reason.
This function creates a new top level data base node of the given type.
Warning
Users are adviced against storing preference style data in the database. Using registries is the preferred method for
storing such data.
Parameters
nodeid (string)
A data base node identifier
type (string) [optional]
The type of node to create. If this parameter is omitted, an intermediate node will be created. Leaf nodes
can be of types "number", "string", "formattedtext", "image", "dice" or "windowreference".
Return values
(databasenode)
A
databasenode object representing the created node, or
nil if the operation
failed
This function can be used to find a data base node in a global scope based on a global database node identifier.
Parameters
nodeid (string)
A global data base node identifier
Return values
(databasenode)
A
databasenode object representing the given identifier, or
nil if the node
was not found