Registered as js-data-sql
in NPM.
Source |
---|
src/index.js, line 746 |
npm i --save js-data-sql js-data mysql
const SqlAdapter = require('js-data-sql').SqlAdapter;
const adapter = new SqlAdapter();
import { SqlAdapter } from 'js-data-sql';
const adapter = new SqlAdapter();
Classes
Members
-
<static> OPERATORS
-
Default predicate functions for the filtering operators.
DetailsSource src/index.js, line 34 Properties:
Name Type Description ==
Function Equality operator.
!=
Function Inequality operator.
>
Function "Greater than" operator.
>=
Function "Greater than or equal to" operator.
<
Function "Less than" operator.
<=
Function "Less than or equal to" operator.
isectEmpty
Function Operator to test that the intersection between two arrays is empty. Not supported.
isectNotEmpty
Function Operator to test that the intersection between two arrays is NOT empty. Not supported.
in
Function Operator to test whether a value is found in the provided array.
notIn
Function Operator to test whether a value is NOT found in the provided array.
contains
Function Operator to test whether an array contains the provided value. Not supported.
notContains
Function Operator to test whether an array does NOT contain the provided value. Not supported.
-
<static> SqlAdapter
-
SqlAdapter class.
DetailsSource See src/index.js, line 763 Examplesconst SqlAdapter = require('js-data-sql').SqlAdapter; const adapter = new SqlAdapter();
import { SqlAdapter } from 'js-data-sql'; const adapter = new SqlAdapter();
-
<static> SqlAdapter
-
SqlAdapter class.
DetailsType Source See Constructor src/index.js, line 734 Exampleimport { SqlAdapter } from 'js-data-sql'; const adapter = new SqlAdapter();
-
<static> version
-
Details of the current version of the
js-data-sql
module.DetailsType Source Object src/index.js, line 714 Properties:
Name Type Description version.full
String The full semver value.
version.major
Number The major version number.
version.minor
Number The minor version number.
version.patch
Number The patch version number.
version.alpha
String | Boolean The alpha version value, otherwise
false
if the current version is not alpha.version.beta
String | Boolean The beta version value, otherwise
false
if the current version is not beta.Exampleimport { version } from 'js-data-sql'; console.log(version.full);