Namespace: SeLiteData

SeLiteData

This is a placeholder-like object. All files from SeLite DB Objects add their functionality to this object.
Source:

Classes

Db
Table

Methods

(static) getStorageFromSettings(appDbFieldOrFieldName, tablePrefixFieldOrFieldNameopt, dontCreateopt) → {StorageFromSettings}

Create a new instance of StorageFromSettings, based on the given field (or its name), or re-use an existing instance of StorageFromSettings based on that field.
Parameters:
Name Type Attributes Default Description
appDbFieldOrFieldName string | SeLiteSettings.Field Either string, or SeLiteSettings.Field.SQLite instance. If it is a string, it must be a full field name. See SeLiteSettings.getField(). Optional, it defaults to 'extensions.selite-settings.common.testDB'.
tablePrefixFieldOrFieldName string | SeLiteSettings.Field <optional>
Either string, or SeLiteSettings.Field.SQLite instance. If it is a string, it must be a full field name. See SeLiteSettings.getField(). Optional, it defaults to 'extensions.selite-settings.common.tablePrefix'. If you want to use an empty table prefix and to override any value of 'extensions.selite-settings.common.tablePrefix' field, pass an empty string '' or null.
dontCreate boolean <optional>
false If true then this won't create a storage object, if it doesn't exist yet (then this returns null). False by default.
Source:
Returns:
Type
StorageFromSettings

(static) RecordSet(object)

SeLiteData.RecordSet serves as an associative array, containing SeLiteData.Record object(s), indexed by SeLiteMisc.collectByColumn(records, [formula.indexBy] or formula.indexBy, formula.indexUnique) for the formula of recordSetHolder. It is iterable, but it doesn't guarantee the order of entries. It also keeps a non-iterable reference to recordSetHolder.
Parameters:
Name Type Description
object recordSetHolder of class RecordSetHolder
Source:

(static) SqlExpression()

Use instances of SeLiteData.SqlExpression so that they don't get quoted/escaped by quote() and quoteValues().
Source:

(static) Storage()

This provides low-level data functions. It's a constructor of an object, but the code is procedural. The reason to have it as an object is not to have name clashes with functions in other files. See SeLite DB Objects for OOP layer on top of this.
Source: