Class: Columns

SeLiteSettings.TestDbKeeper.Columns

new Columns(description)

Parameters:
Name Type Description
description object Object serving as an associative array { string table name (excluding the prefix): object { key: string column name that serves as a matching key; values of this key must be unique across all records columns: array of string column(s) to preserve; columns[] must include the matching key defaults: optional, object containing default values used when copying records that exist in the source (app/vanilla) DB but didn't exist in the test DB. { columnNameX: defaultValueX... } Any column name present in 'defaults' must be also present in 'columns'. }
Source:

Extends

Members

testStorage :SeLiteData.Storage

Type:
Inherited From:
Source:

Methods

initialise(testStorage)

Parameters:
Name Type Description
testStorage SeLiteData.Storage
Overrides:
Source:

load()

Load any relevant test data from testStorage to memory. It must be robust - there may not be any test DB yet, or with an out of date schema.
Overrides:
Source:

store()

Update any relevant test data from memory to testStorage. For records that don't exist there, this may re-create them (up to the implementation).
Overrides:
Source: