Class: Db

SeLiteData.Db

new Db(storage, tableNamePrefixopt, generateInsertKeyopt)

Parameters:
Name Type Attributes Default Description
storage SeLiteData.Storage Underlying lower-level storage object.
tableNamePrefix string <optional>
optional prefix, which will be applied to all tables (except for tables that have noNamePrefix=true when constructed). If not set, then storage.tableNamePrefix is used (if any).
generateInsertKey boolean <optional>
false Whether all tables with single-column primary key should have the key values generated (based on the maximum existing key) on insert. SeLiteData.Table constructor can override this on per-table basis.
Source:

Members

storage :SeLiteData.Storage

storage
Type:
Source:

tableNamePrefix :string

tableNamePrefix
Type:
Source:

Methods

tablePrefix() → {string}

Source:
Returns:
Table prefix, or an empty string. It never returns undefined.
Type
string