9 #ifndef _litesql_odbc_backend_hpp
10 #define _litesql_odbc_backend_hpp
27 class ODBCBackend :
public Backend {
28 mutable bool transaction;
30 void throwError(
int status)
const;
33 class Result :
public Backend::Result {
38 virtual size_t fieldNum()
const;
39 virtual Record fields()
const;
40 virtual size_t recordNum()
const;
41 virtual Records records()
const;
42 const Records& recordsRef()
const;
45 class Cursor :
public Backend::Cursor {
48 const ODBCBackend& owner;
50 Cursor(
const ODBCBackend& owner);
51 virtual Record fetchOne();
54 ODBCBackend(
const std::string& database);
55 virtual bool supportsSequences()
const;
56 virtual std::string getInsertID()
const;
57 virtual void begin()
const;
58 virtual void commit()
const;
59 virtual void rollback()
const;
60 Backend::Result* execute(
const std::string& query)
const;
61 Backend::Cursor* cursor(
const std::string& query)
const;
62 virtual ~ODBCBackend();
Classes Backend, Backend::Cursor and Backend::Result.
contains litesql's exception classes
contains class Record and typedef Records
std::vector< Record > Records
shortcut
Definition: types.hpp:26