Classes | Namespaces | Typedefs | Functions | Variables
utils.h File Reference
#include <memory>
#include <array>
#include <climits>
#include <cstdlib>
#include <warehouse_ros_sqlite/warehouse_ros_sqlite_export.h>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  warehouse_ros_sqlite::NullValue
 
struct  warehouse_ros_sqlite::Sqlite3StmtDeleter
 

Namespaces

 warehouse_ros_sqlite
 
 warehouse_ros_sqlite::schema
 
 warehouse_ros_sqlite::schema::detail
 

Typedefs

using warehouse_ros_sqlite::schema::escaped_columnname = std::string
 
using warehouse_ros_sqlite::schema::escaped_tablename = std::string
 
using warehouse_ros_sqlite::sqlite3_ptr = std::shared_ptr< sqlite3 >
 
using warehouse_ros_sqlite::sqlite3_stmt_ptr = std::unique_ptr< sqlite3_stmt, Sqlite3StmtDeleter >
 

Functions

template<typename = void>
void warehouse_ros_sqlite::schema::detail::check_do_escape (std::string &, char)
 
template<char escaped_char, char... other_chars>
void warehouse_ros_sqlite::schema::detail::check_do_escape (std::string &s, char c)
 
template<char... escaped_chars>
std::string warehouse_ros_sqlite::schema::detail::escape (const std::string &s)
 
escaped_tablename warehouse_ros_sqlite::schema::escape_and_mangle_database_and_collection_name (const std::string &db_name, const std::string &collection_name)
 
escaped_columnname warehouse_ros_sqlite::schema::escape_columnname_with_prefix (const std::string &c)
 
std::string warehouse_ros_sqlite::schema::escape_identifier (const std::string &s)
 
std::string warehouse_ros_sqlite::schema::escape_string_literal_without_quotes (const std::string &c)
 
std::string warehouse_ros_sqlite::schema::mangle_database_and_collection_name (const std::string &db_name, const std::string &collection_name)
 
WAREHOUSE_ROS_SQLITE_EXPORT std::array< unsigned char, 16 > warehouse_ros_sqlite::parse_md5_hexstring (const std::string &md5)
 
WAREHOUSE_ROS_SQLITE_EXPORT void warehouse_ros_sqlite::sqlite3_delete (sqlite3 *db)
 

Variables

const int warehouse_ros_sqlite::schema::DATA_COLUMN_INDEX = 0
 
constexpr const char * warehouse_ros_sqlite::schema::DATA_COLUMN_NAME = "Data"
 
constexpr const char * warehouse_ros_sqlite::schema::DB_NAME = "main"
 
constexpr const char * warehouse_ros_sqlite::schema::M_D5_TABLE_DATABASE_COLUMN = "WarehouseDatabaseName"
 
constexpr const char * warehouse_ros_sqlite::schema::M_D5_TABLE_DATATYPE_COLUMN = "MessageDataType"
 
constexpr const char * warehouse_ros_sqlite::schema::M_D5_TABLE_INDEX_COLUMN = "MangledTableName"
 
constexpr const char * warehouse_ros_sqlite::schema::M_D5_TABLE_M_D5_COLUMN = "MessageMD5"
 
constexpr const char * warehouse_ros_sqlite::schema::M_D5_TABLE_NAME = "WarehouseIndex"
 
constexpr const char * warehouse_ros_sqlite::schema::M_D5_TABLE_TABLE_COLUMN = "WarehouseCollectionName"
 
constexpr const char * warehouse_ros_sqlite::schema::METADATA_COLUMN_PREFIX = "M_"
 
constexpr const char * warehouse_ros_sqlite::schema::TABLE_NAME_PREFIX = "T_"
 
const int warehouse_ros_sqlite::schema::VERSION = 10
 


warehouse_ros_sqlite
Author(s): Bjarne von Horn
autogenerated on Fri Nov 11 2022 03:44:33