BindData

BindData

Store and retrieve bind data for use in WHERE portion of SELECT statement.

Constructor

new BindData()

Source:

Methods

add(data) → {String}

Description:
  • Add bind data

Source:
Parameters:
Name Type Description
data any

bind data

Returns:
  • bind variable name for reference in SQL. e.g. first data point would return '?1'.
Type
String

addList(bindList)

Description:
  • Add a list of bind data points.

Source:
Parameters:
Name Type Description
bindList Array.<any>

clear()

Description:
  • Reset the bind data.

Source:

get(name) → {any}

Description:
  • Pull out a bind data entry.

Source:
Parameters:
Name Type Description
name String

Get by name or get NEXT if empty.

Returns:
Type
any

getBindDataList() → {Array.<any>}

Description:
  • Return the ordered list of bind data.

Source:
Returns:
  • Current list of bind data.
Type
Array.<any>