src/Connection.h
branchv_0
changeset 30 629565ff82d3
parent 29 b0ef1e1dc9c8
child 36 91cb012d779a
equal deleted inserted replaced
29:b0ef1e1dc9c8 30:629565ff82d3
    23 namespace tr {
    23 namespace tr {
    24 namespace sql {
    24 namespace sql {
    25 
    25 
    26 class Connection {
    26 class Connection {
    27 private:
    27 private:
    28 	sqlite3* db;
    28 	void* db;
    29 	void begin();
    29 	void begin();
    30 public:
    30 public:
    31 	Connection(const char* filename); // TODO: add DriverManager class + support connecting using a DSN or a connectString
    31 	Connection(const char* filename); // TODO: add DriverManager class + support connecting using a DSN or a connectString
    32 	virtual ~Connection();
    32 	virtual ~Connection();
    33 	PreparedStatement* prepareStatement(const char* sql);
    33 	PreparedStatement* prepareStatement(const char* sql);