#include "config.h"
#include <cstdlib>
#include <cstring>
#include <string>
#include <simgear/nasal/nasal.h>
#include <simgear/misc/sg_path.hxx>
#include <simgear/structure/exception.hxx>
#include <simgear/debug/logstream.hxx>
#include "fg_sqlite3.h"
Go to the source code of this file.
|
static void | dbDestroy (struct DBGhost *g) |
|
static void | stmtDestroy (struct StmtGhost *g) |
|
static naRef | f_open (naContext c, naRef me, int argc, naRef *args) |
|
static naRef | f_close (naContext c, naRef me, int argc, naRef *args) |
|
static naRef | f_prepare (naContext c, naRef me, int argc, naRef *args) |
|
static naRef | run_query (naContext c, sqlite3 *db, sqlite3_stmt *stmt, naRef callback) |
|
static naRef | f_exec (naContext c, naRef me, int argc, naRef *args) |
|
static naRef | f_finalize (naContext c, naRef me, int argc, naRef *args) |
|
naRef | naInit_sqlite (naContext c) |
|
◆ DBG
Value:((naGhost_type(r) == &
DBType) ? (
struct DBGhost*)naGhost_ptr(r) : 0)
static naGhostType DBType
Definition at line 26 of file sqlitelib.cxx.
◆ STMTG
Value:
static naGhostType StmtType
Definition at line 27 of file sqlitelib.cxx.
◆ dbDestroy()
static void dbDestroy |
( |
struct DBGhost * | g | ) |
|
|
static |
◆ f_close()
static naRef f_close |
( |
naContext | c, |
|
|
naRef | me, |
|
|
int | argc, |
|
|
naRef * | args ) |
|
static |
◆ f_exec()
static naRef f_exec |
( |
naContext | c, |
|
|
naRef | me, |
|
|
int | argc, |
|
|
naRef * | args ) |
|
static |
◆ f_finalize()
static naRef f_finalize |
( |
naContext | c, |
|
|
naRef | me, |
|
|
int | argc, |
|
|
naRef * | args ) |
|
static |
◆ f_open()
static naRef f_open |
( |
naContext | c, |
|
|
naRef | me, |
|
|
int | argc, |
|
|
naRef * | args ) |
|
static |
◆ f_prepare()
static naRef f_prepare |
( |
naContext | c, |
|
|
naRef | me, |
|
|
int | argc, |
|
|
naRef * | args ) |
|
static |
◆ naInit_sqlite()
naRef naInit_sqlite |
( |
naContext | c | ) |
|
◆ run_query()
static naRef run_query |
( |
naContext | c, |
|
|
sqlite3 * | db, |
|
|
sqlite3_stmt * | stmt, |
|
|
naRef | callback ) |
|
static |
◆ stmtDestroy()
static void stmtDestroy |
( |
struct StmtGhost * | g | ) |
|
|
static |
◆ DBType
naGhostType DBType = { (void(*)(void*))dbDestroy, "sqlite_db" } |
|
static |
◆ funcs
Initial value:= {
{ 0 }
}
static naRef f_open(naContext c, naRef me, int argc, naRef *args)
static naRef f_close(naContext c, naRef me, int argc, naRef *args)
static naRef f_exec(naContext c, naRef me, int argc, naRef *args)
static naRef f_prepare(naContext c, naRef me, int argc, naRef *args)
static naRef f_finalize(naContext c, naRef me, int argc, naRef *args)
Definition at line 189 of file sqlitelib.cxx.
◆ StmtType
naGhostType StmtType = { (void(*)(void*))stmtDestroy, "sqlite_statement" } |
|
static |