Waterline.query()

Compile a radar query statement into the native dialect for a database, then send the native query.

Usage

Hover over inputs/exits for more info.

var Waterline = require('machinepack-waterline');


// Compile a radar query statement into the native dialect for a database, then send the native query.

Waterline.query({

datastore: 'larrysMySQLCluster',

statement: {},

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// The database returned an error when attempting to execute the native query compiled from the specified Radar statement.

queryFailed: function (result) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

datastore required

The identity of the datastore to use.

'larrysMySQLCluster'
statement required

A radar query statement to compile and send to the database.

{}

Exits

error

An unexpected error occurred.

queryFailed

The database returned an error when attempting to execute the native query compiled from the specified Radar statement.

{}
success

OK.

'==='