Anonymous object in form {
- table
- SeLiteData.Table instance; optional - it must be specified if there is no formula
- formula
- SeLiteData.RecordSetFormula instance; optional - it must be specified if there is no table
- string columnName (optional)
- matchingValue (to match that column)
- string anotherColumnName (optional; there may be any number of matching columns)
- matchingValue (to match that column)
}. You can pass the object via =`{field: value, ...}` notation as per http://selite.github.io/EnhancedSyntax.
Load max. one record from DB. If there's no matching record, return null. If there are two or more matching records, fail.
This command is a part of SeLite DB Objects.
Anonymous object with the fields to store, or SeLiteData.Record instance. You can pass it via =`...` notation as per http://selite.github.io/EnhancedSyntax. If the table uses an auto-generated primary key (stored in one column), then after this command inserts the record it loads the value of the primary key and saves it in the given recordObject
. It also stores the value of the primary key in stored variable insertedRecordKey
, which is useful if you're passing an object literal via =`{field:value,...}` as recordObject
and later you need the new key but not the whole object.
SeLiteData.Table instance. You can pass it via =`...` notation as per http://selite.github.io/EnhancedSyntax.
Insert the given object as a new record in the given table.
This command is a part of SeLite DB Objects.