SQL
Collection of SQL functions.
Methods
execute
Executes a T-SQL query. Returns an array of rows with columns as key/value pairs.
Parameters
connectionString string | { server: string, authenticationType?: string, userName: string, password: string, database: string, port?: Number, encrypt?: Boolean, }
The connection string or object to the SQL database.
query string
The SQL statement to be executed.
params { name: string, value: any, type: SQL.TYPES }[]
Return type
{ [key: string]: any; }[]
Examples
executeStoredProcedure
Parameters
connectionString string | { server: string, authenticationType: string, userName: string, password: string, database: string, port: Number, encrypt: Boolean, }
The connection string or object to the SQL database.
query string
The SQL statement to be executed.
params { name: string, value: any, type: SQL.TYPES }[]
Return type
{ [key: string]: any; }[]