Database Class Reference

#include <example-database.h>

Inheritance diagram for Database:
Inheritance graph
[legend]
Collaboration diagram for Database:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Database (const std::string &db_name, const std::string &user_name, const std::string &passwd, const std::string &hostname="localhost") throw (std::runtime_error)
 Database (const Dv::Util::Props &config, const std::string &prefix="") throw (std::runtime_error)

Static Public Attributes

static Dv::Sql::Table::Ref account
static Dv::Sql::Table::Ref customer
static Dv::Sql::Table::Ref transaction

Private Member Functions

void init () throw (std::runtime_error)

Detailed Description

Examples:

example-database.C, and example-row.C.

Definition at line 4 of file example-database.h.


Constructor & Destructor Documentation

Database::Database ( const std::string &  db_name,
const std::string &  user_name,
const std::string &  passwd,
const std::string &  hostname = "localhost" 
) throw (std::runtime_error)
Examples:
example-database.C.
Database::Database ( const Dv::Util::Props &  config,
const std::string &  prefix = "" 
) throw (std::runtime_error)

Member Function Documentation

void Database::init (  )  throw (std::runtime_error) [private]
Examples:
example-database.C.

Member Data Documentation

Examples:
example-database.C, and example-row.C.

Definition at line 10 of file example-database.h.

Examples:
example-database.C, and example-row.C.

Definition at line 11 of file example-database.h.

Examples:
example-database.C, and example-row.C.

Definition at line 12 of file example-database.h.


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

dvmysql-1.0.3 [17 November, 2010]