Back to index

lshw  02.16
Public Member Functions | Private Member Functions | Private Attributes | Friends
sqlite::database Class Reference

#include <db.h>

Collaboration diagram for sqlite::database:
Collaboration graph

List of all members.

Public Member Functions

 database (const std::string &filename)
 database (const database &db)
 ~database ()
database operator= (const database &)
void execute (const std::string &sql)

Private Member Functions

 database ()

Private Attributes

struct database_iimplementation


class statement

Detailed Description

Definition at line 9 of file db.h.

Constructor & Destructor Documentation

database::database ( const std::string &  filename)

Definition at line 39 of file

  implementation = new database_i;

    if(sqlite3_open(filename.c_str(), &implementation->connection) != SQLITE_OK)
      throw exception(implementation->connection);
database::database ( const database db)

Definition at line 49 of file

Definition at line 57 of file

    delete implementation;

Member Function Documentation

void database::execute ( const std::string &  sql)

Definition at line 66 of file

    statement s(*this, sql);

Here is the call graph for this function:

Here is the caller graph for this function:

database sqlite::database::operator= ( const database )

Friends And Related Function Documentation

friend class statement [friend]

Definition at line 21 of file db.h.

Member Data Documentation

Definition at line 26 of file db.h.

The documentation for this class was generated from the following files: