Class: BaseModel

BaseModel

BaseModel class extends the Model class and implements basic CRUD ops from AbstractModel

Constructor

new BaseModel()

Source:

Extends

Methods

_createPartitionKeyQuery(primaryKeyArray)

Given a primary key array object, this will convert it to a PRIMARY KEY (...) string value to use in table creation
Parameters:
Name Type Description
primaryKeyArray array An array specifying the primary key columns, can be compound and composite as well
Inherited From:
Source:

_qualifyQueryColumns(queryObject) → {array}

Checks the queryObject's properties against the qualified columns
Parameters:
Name Type Description
queryObject object an object representing column:value
Inherited From:
Source:
Throws:
Error - not a valid query column
Returns:
columns - a list of qualified columns
Type
array