rorm_db_query_stream

This function queries the database given the provided parameters.

Parameters

handle DBHandle

Reference to the Database, provided by rorm_db_connect.

transaction DBTransactionHandle

Mutable pointer to a transaction, can be null.

model FFIString

Name of the table to query.

columns FFIArray!FFIColumnSelector

Array of columns to retrieve from the database.

joins FFIArray!FFIJoin

Array of joins to add to the query.

condition const(FFICondition)*

Pointer to an FFICondition.

orderBy FFIArray!FFIOrderByEntry

Allows to specify columns to order the result by.

limit FFIOption!FFILimitClause

Optionally limit and offset which rows are returned.

callback DBQueryStreamCallback

callback function. Takes the context, a stream handle and an error that must be checked first.

context void*

context pointer to pass through as-is into the callback.

Important: - Make sure that db, model, columns and condition are allocated until the callback is executed.

This function is called completely synchronously.

Meta