OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
GpkgUtils.hpp File Reference

RAII wrappers and utilities for SQLite operations in GeoPackage I/O. More...

#include <sqlite3.h>
#include <string>
#include <stdexcept>
#include <memory>
#include <vector>
Include dependency graph for GpkgUtils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmm::gpkg::GpkgError
 
struct  openswmm::gpkg::DbDeleter
 
struct  openswmm::gpkg::StmtDeleter
 
class  openswmm::gpkg::Transaction
 

Namespaces

namespace  openswmm
 
namespace  openswmm::gpkg
 

Typedefs

using openswmm::gpkg::DbPtr = std::unique_ptr< sqlite3, DbDeleter >
 
using openswmm::gpkg::StmtPtr = std::unique_ptr< sqlite3_stmt, StmtDeleter >
 

Functions

DbPtr openswmm::gpkg::open_database (const std::string &path, int flags=SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE)
 
StmtPtr openswmm::gpkg::prepare (sqlite3 *db, const std::string &sql)
 
void openswmm::gpkg::exec (sqlite3 *db, const std::string &sql)
 
void openswmm::gpkg::bind_text (sqlite3_stmt *stmt, int col, const std::string &val)
 
void openswmm::gpkg::bind_double (sqlite3_stmt *stmt, int col, double val)
 
void openswmm::gpkg::bind_int (sqlite3_stmt *stmt, int col, int val)
 
void openswmm::gpkg::bind_null (sqlite3_stmt *stmt, int col)
 
void openswmm::gpkg::bind_blob (sqlite3_stmt *stmt, int col, const void *data, int size)
 
std::string openswmm::gpkg::column_text (sqlite3_stmt *stmt, int col)
 
double openswmm::gpkg::column_double (sqlite3_stmt *stmt, int col)
 
int openswmm::gpkg::column_int (sqlite3_stmt *stmt, int col)
 
bool openswmm::gpkg::column_is_null (sqlite3_stmt *stmt, int col)
 
std::vector< uint8_t > openswmm::gpkg::column_blob (sqlite3_stmt *stmt, int col)
 

Detailed Description

RAII wrappers and utilities for SQLite operations in GeoPackage I/O.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License