class Gambit::Printers::SQLiteBase

SQLite base class for both reader and writer.

#include <sqlitebase.hpp>

Inherited by Gambit::Printers::SQLitePrinter, Gambit::Printers::SQLiteReader

Public Functions

Name
SQLiteBase()
~SQLiteBase()

Protected Functions

Name
std::stringget_database_file()
std::stringget_table_name()
std::stringget_metadata_table_name()
voidset_table_name(const std::string & table_name)
voidset_metadata_table_name(const std::string & metadata_table_name)
voidrequire_output_ready()
voidopen_db(const std::string & path, char access =‘r’)
voidclose_db()
sqlite3 *get_db()
voidcout_row(sqlite3_stmt * tmp_stmt)
voidcheck_table_exists()
voidset_table_exists()
std::map< std::string, std::string, Utils::ci_less >get_column_info()
intsubmit_sql(const std::string & local_info, const std::string & sqlstr, bool allow_fail =false, sql_callback_fptr callback =NULL, void * data =NULL, char ** zErrMsg =NULL)

Public Functions Documentation

function SQLiteBase

SQLiteBase()

function ~SQLiteBase

~SQLiteBase()

Protected Functions Documentation

function get_database_file

std::string get_database_file()

function get_table_name

std::string get_table_name()

function get_metadata_table_name

std::string get_metadata_table_name()

function set_table_name

void set_table_name(
    const std::string & table_name
)

function set_metadata_table_name

void set_metadata_table_name(
    const std::string & metadata_table_name
)

function require_output_ready

void require_output_ready()

function open_db

void open_db(
    const std::string & path,
    char access ='r'
)

function close_db

void close_db()

function get_db

sqlite3 * get_db()

function cout_row

void cout_row(
    sqlite3_stmt * tmp_stmt
)

function check_table_exists

void check_table_exists()

function set_table_exists

void set_table_exists()

function get_column_info

std::map< std::string, std::string, Utils::ci_less > get_column_info()

function submit_sql

int submit_sql(
    const std::string & local_info,
    const std::string & sqlstr,
    bool allow_fail =false,
    sql_callback_fptr callback =NULL,
    void * data =NULL,
    char ** zErrMsg =NULL
)

Updated on 2023-06-26 at 21:36:52 +0000