Functions

arrayFlattenQuery
I

Joins the elements in the array with the , delimiter into an sql:ParameterizedQuery.

generateApplicationErrorStream
I

Generates a stream consisting of sql:Error elements.

getGlobalConnectionPool
I

Returns the global connection pool.

queryConcat
I

Concatenates all provided sql:ParameterizedQuerys into a single sql:ParameterizedQuery.

arrayFlattenQuery

function arrayFlattenQuery(Value[ ] values) returns ParameterizedQuery
Isolated Function

Joins the elements in the array with the , delimiter into an sql:ParameterizedQuery.

Parameters

  • values Value[ ]
  • An array of sql:Value values

Return Type

(ParameterizedQuery)

An sql:ParameterizedQuery

generateApplicationErrorStream

function generateApplicationErrorStream(string message) returns stream<record {}, Error?>
Isolated Function

Generates a stream consisting of sql:Error elements.

Parameters

  • message string
  • Error message used to initialise an sql:Error

Return Type

(stream<record {}, Error?>)

A stream

getGlobalConnectionPool

function getGlobalConnectionPool() returns ConnectionPool
Isolated Function

Returns the global connection pool.

Return Type

(ConnectionPool)

The connection pool

queryConcat

function queryConcat(ParameterizedQuery... queries) returns ParameterizedQuery
Isolated Function

Concatenates all provided sql:ParameterizedQuerys into a single sql:ParameterizedQuery.

Parameters

Return Type

(ParameterizedQuery)

An sql:ParameterizedQuery