The DefaultTable class holds all methods related to the database. All the data this class works with are also stored in a database.


Methods

_actionDelete (context)

private

Override for the delete action

Parameters

Name Type Description
context Object

Returned Value

Promise | | CommandContext

_actionInsert (context)

private

Override for the insert action.

Parameters

Name Type Description
context Object

Returned Value

Promise | Promise.

_actionSelect (context)

private

This method will try to select data from a data source.

Parameters

Name Type Description
context CommandContext The context of the select action.

_actionUpdate (context)

private

Override for the update method

Parameters

Name Type Description
context Object

Returned Value

Promise | | CommandContext

getColumns ()

This method will query the database to get all the columns.

Returned Value

Promise: A promise containing the columns of the table.


getIdentityColumn ()

This method will return the identityColumn of the database, by default the autoIncrement column will be marked as IdentityColumn.

However this can be overridden by configuring a defined IdentityColumn.

Returned Value

String | False: A string containing the identityColumn will be returned, false if no identityColumn can be found.


getName ()

This method will return the name of the table.

Returned Value

String: The name of the table in string form.