![]() |
Zen
A cross-platform functional programming language
|
Intrinsic database type. More...
#include <zbl.hpp>
Public Member Functions | |
| database () | |
| Default constructor. | |
| ~database () | |
| Destructor. | |
| bool | open (const z::string &type, const z::string &name) |
| Open the database. | |
| bool | create (const z::string &type, const z::string &name, const char *schema[]) |
| Create the database. | |
| void | close () |
| Close the database. | |
| bool | begin () |
| Begin a transaction on the database. | |
| bool | commit () |
| Commit a transaction. | |
| bool | rollback () |
| Rollback a transaction. | |
| QSqlDatabase & | get () |
| Returns the stored value. | |
Private Attributes | |
| QSqlDatabase | _val |
| The value. | |
Intrinsic database type.
| bool begin | ( | ) | [inline] |
Begin a transaction on the database.
| bool commit | ( | ) | [inline] |
Commit a transaction.
Create the database.
| type | The database type |
| name | Database name |
| schema | The database schema |
| QSqlDatabase& get | ( | ) | [inline] |
Returns the stored value.
Open the database.
| type | The database type |
| name | Database name |
| bool rollback | ( | ) | [inline] |
Rollback a transaction.