Constructor for DatabaseObject
the data for the database-array
The data of the DatabaseObject
The data of the DatabaseObject
Returns the length of the object
Checks if the DatabaseObject contains a value
the path to apply the value to
the value at the position of the position
Generates an using a namespace
the name to generate a namespace from
the generated id
Gets a value from the DatabaseObject.
the path to get
the value at the position
Gets a value from the DatabaseObject and normalizes it
the path to get
the normalized value at the position
Sets a value from the DatabaseObject.
the path to apply the value to
the value to apply to the given path
the DatabaseObject itself, so you can chain operations like that
Sets a default value from the DatabaseObject.
the path to apply the value to
the value to apply to the given path
the DatabaseObject itself, so you can chain operations like that
Sets default values for the DatabaseObject.
an object containing all the default values
the DatabaseObject itself, so you can chain operations like that
Updates a value from the DatabaseObject.
the path to update
the function to update the value
the DatabaseObject itself, so you can chain operations like that
Generated using TypeDoc
A DatabaseObject is the database-representation of an object.
Nicolas Schmidt <@nsc-de>
DatabaseObject.data - the data of the array
DatabaseObject.length - the array length
DatabaseObject.constructor() - the constructor
DatabaseObject.set() - sets a value from the DatabaseObject
DatabaseObject.setDefault() - sets a default value from the DatabaseObject
DatabaseObject.setDefaults() - sets defaults for the DatabaseObject
DatabaseObject.get() - gets a value from the DatabaseObject
DatabaseObject.getNormal() - gets a value from the DatabaseObject and normalizes it
DatabaseObject.update() - updates a value from the DatabaseObject
DatabaseObject.contains() - checks if the DatabaseObject contains a value
DatabaseObject.generateId() - Generates an id using a namespace