.. _program_listing_file_include_db_dbState.hpp: Program Listing for File dbState.hpp ==================================== |exhale_lsh| :ref:`Return to documentation for file ` (``include/db/dbState.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include #include #include #ifdef __WINDOWS__ using u_int8_t = uint8_t; #endif using BIN = std::vector; enum COL_TYPE{ INT, DOUBLE, TEXT, BLOB }; struct stmt { public: std::string placeHold; sqlite3_stmt* S = nullptr; int bind_null(int idx); int bind_text(int idx, std::string& str); int bind_blob(int idx, BIN& bin); int bind_double(int idx, double num); int bind_int(int idx, double num); template res colGet(int idx); bool activate(sqlite3* db); stmt(); ~stmt(); };