Module: driver

driver

Source:

Methods

<private, static> _prefix(str) → {String}

Sets the table prefix on the passed string
Parameters:
Name Type Description
str String
Source:
Returns:
Type
String

<private, static> _quote(str) → {String}

Low level function for naive quoting of strings
Parameters:
Name Type Description
str String
Source:
Returns:
Type
String

<static> limit(sql, limit, offset) → {String}

Set the limit clause
Parameters:
Name Type Description
sql String
limit Number
offset Number | null
Source:
Returns:
Type
String

<static> prefixTable(table) → {String}

Prefixes a table if it is not already prefixed
Parameters:
Name Type Description
table String
Source:
Returns:
Type
String

<static> quoteIdentifiers(str) → {String|Array}

Use the driver's escape character to quote identifiers
Parameters:
Name Type Description
str String | Array
Source:
Returns:
Type
String | Array

<static> quoteTable(table) → {String}

Quote database table name, and set prefix
Parameters:
Name Type Description
table String
Source:
Returns:
Type
String