Fun 0.41.5
The programming language that makes You have fun
Loading...
Searching...
No Matches
query.c File Reference

Implements the OP_SQLITE_QUERY opcode (conditional build). More...

Go to the source code of this file.

Functions

 free_value (v1)
 free_value (v2)
 push_value (vm, make_array_from_values(NULL, 0))

Variables

case OP_SQLITE_QUERY
Value v2 = pop_value(vm)
 break

Detailed Description

Implements the OP_SQLITE_QUERY opcode (conditional build).

Prepares and steps through a SQLite statement to produce an array of row maps when FUN_WITH_SQLITE is enabled. Returns an empty array otherwise.

Definition in file query.c.

Function Documentation

◆ free_value() [1/2]

free_value(v1)

◆ free_value() [2/2]

free_value(v2)

◆ push_value()

push_value(vm,
make_array_from_values(NULL, 0) )

Variable Documentation

◆ break

break

Definition at line 83 of file query.c.

◆ OP_SQLITE_QUERY

case OP_SQLITE_QUERY

OP_SQLITE_QUERY: (handle:int, sql:string) -> array<map<string,any>>

Definition at line 21 of file query.c.

◆ v2

Value v2 = pop_value(vm)

Definition at line 79 of file query.c.