Subscribe to our list to receive the latest updates on Node on Fire

Class: Table

Table

new Table(schemaName, model, datastore)

The table generates all SQL queries.

Parameters:
Name Type Description
schemaName String

The name of the schema.

model Model

The model the table belongs to.

datastore Datastore

The datastore the app is connected to.

Methods

query(query, parameters)

Executes a knex query.

Parameters:
Name Type Description
query String

The query to execute.

parameters Array

The parameters to pass to the query. The first item in the array is passed to $1, and so on.

Returns:

[description]

Type
Promise

Do you have any questions or comments on this page? Start a discussion below.

comments powered by Disqus
Subscribe to our list to receive the latest updates on Node on Fire