Sqlite3Context Class Reference

SQLite3 module. More...

#include <sqlite3xx.hpp>

Inheritance diagram for Sqlite3Context:

SqlDatabase List of all members.

Public Member Functions

 Sqlite3Context (const string &dbName="")
 Constructor.
 ~Sqlite3Context ()
 Destructor.
void close ()
 Close connection.
string escapeString (const string &original) const
string version () const
 Version information.

Friends

SqlResult SqlQuery::operator() (const string &)

Detailed Description

SQLite3 module.

Definition at line 36 of file sqlite3xx.hpp.


Constructor & Destructor Documentation

Sqlite3Context::Sqlite3Context ( const string &  dbName = ""  ) 

Constructor.

Used to create a connection to a SQLite3 database. Example:

 SqlDatabase *db = new Sqlite3Context( "test.db" );
Parameters:
dbName The path and filename of the database file.

Definition at line 33 of file sqlite3xx.cpp.

Sqlite3Context::~Sqlite3Context (  ) 

Destructor.

Definition at line 50 of file sqlite3xx.cpp.

References close().


Member Function Documentation

void Sqlite3Context::close (  )  [virtual]

Close connection.

This will close and clean up the database connection, including freeing memory. Note: It does not delete the SqlDatabase object itself.

Implements SqlDatabase.

Definition at line 55 of file sqlite3xx.cpp.

Referenced by ~Sqlite3Context().

string Sqlite3Context::escapeString ( const string &  original  )  const

Definition at line 64 of file sqlite3xx.cpp.

string Sqlite3Context::version (  )  const [virtual]

Version information.

Get the version information of the underlying API library, not the version of SqlWrapperXX.

Returns:
The version as a string.

Implements SqlDatabase.

Definition at line 78 of file sqlite3xx.cpp.


Friends And Related Function Documentation

SqlResult SqlQuery::operator() ( const string &   )  [friend]


The documentation for this class was generated from the following files:
Generated on Sat Aug 18 16:21:45 2007 for SqlWrapperXX by  doxygen 1.5.0