Skip to main content

Schema

The primary building block for starting with laying out your database collections.

info

See examples/databasing for getting started with databasing.

Constructor​

new Schema(definition);
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
definitionobject❌nullSchematic for what you will be storing.

Methods​

serialize​

Serialize object into a string.

serialize(data);
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
dataobject❌nullData to serialize.

Returns​

string


deserialize​

Deserialize string into object.

deserialize(raw);
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
rawstring❌nullRaw data to deserialize.

Returns​

object