Represents persistent storage.
- – object, root object in the storage. Read/write property.
- – boolean, indicates if storage commits all associated objects into storage automatically. Read-only property.
( file-name [, autocommit] ) returns: storage | null
Static method. Opens the storage, which name is stored in the file-name string and returns an instance of Storage object.
autocommit indicates if storage commits all associated objects into storage automatically. Default value is true.
Closes underlying Storage object. Commits all data if autocommit is set to true.
Commits all related objects into storage.
(type [, unique]) returns: Index | null
Creates an index of type ‘type’ and returns Index object. Index could have unique or duplicated keys depending on unique argument. Default value for unique is true. Supported types: #integer, #float, #date, #string.