Poco::Data::SQLite

class Utility

Library: SQLite
Package: SQLite
Header: Poco/Data/SQLite/Utility.h

Description

Various utility functions for SQLite, mostly return code handling

Member Summary

Member Functions: getColumnType, lastError, throwException

Member Functions

getColumnType static

static MetaColumn::ColumnDataType getColumnType(
    sqlite3_stmt * pStmt,
    std::size_t pos
);

Returns column data type.

lastError static

static std::string lastError(
    sqlite3 * pDb
);

Retreives the last error code from sqlite and converts it to a string

throwException static

static void throwException(
    int rc,
    const std::string & addErrMsg = std::string ()
);

Throws for an error code the appropriate exception