sqlite_stepT_sqlite_stepSqliteStepSqliteStep (Operator)

Name

sqlite_stepT_sqlite_stepSqliteStepSqliteStep — Returns the next row of the results of a previous SQL statement.

Signature

sqlite_step( : : SqliteHandle : ResultColumns, IsEnd)

Herror T_sqlite_step(const Htuple SqliteHandle, Htuple* ResultColumns, Htuple* IsEnd)

void SqliteStep(const HTuple& SqliteHandle, HTuple* ResultColumns, HTuple* IsEnd)

static void HHdevguiServerExtpack.SqliteStep(HTuple sqliteHandle, out HTuple resultColumns, out HTuple isEnd)

Description

sqlite_opensqlite_openSqliteOpenSqliteOpenSqliteOpen returns the next row of the results of an SQL statement that was previously executed using sqlite_execsqlite_execSqliteExecSqliteExecSqliteExec.

SQLITE_INTEGER are returned as HALCON tuple integer. SQLITE_FLOAT are returned as HALCON tuple reals/doubles. SQLITE_TEXT are returned as HALCON tuple strings. SQLITE_NULL are returned as special HALCON tuple string "{{NULL}}". SQLITE_BLOB are returned as special HALCON tuple string "{{BLOB}}". Unknown data types are returned as special HALCON tuple string "{{???}}".

Find more information about the Sqlite extension package in the introduction to this chapter.

Execution Information

Parameters

SqliteHandleSqliteHandleSqliteHandleSqliteHandlesqliteHandle (input_control)  framegrabber HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

handle to a SQLite data base

ResultColumnsResultColumnsResultColumnsResultColumnsresultColumns (output_control)  integer(-array) HTupleHTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)

all columns of a single result row

IsEndIsEndIsEndIsEndisEnd (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

true if no more result rows are available

Example (HDevelop)

sqlite_exec (SqliteHandle, 'SELECT rowid, timestamp FROM \'results\';', [])
repeat
  sqlite_step (SqliteHandle, ResultColumns, IsEnd)
  * ...
until (IsEnd)

Module

Foundation