Represents persistent storage.
Properties | |
root | - object, root object in the storage. Read/write property. |
autocommit | - boolean, indicates if storage commits all associated objects into storage automatically. Read-only property. |
Methods | |
open |
( 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. |
close |
()
Closes underlying Storage object. Commits all data if autocommit is set to true. |
commit |
() Commits all related objects into storage. |
createIndex |
(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. |