|
Wt
3.3.8
|
A Firebird connection. More...
#include <Wt/Dbo/backend/Firebird>

Public Member Functions | |
| Firebird () | |
| Creates a Firebird backend connection. More... | |
| Firebird (const std::string &ServerName, const std::string &DatabaseName, const std::string &UserName, const std::string &UserPassword, const std::string &RoleName, const std::string &CharSet=std::string(), const std::string &CreateParams=std::string()) | |
| Creates and opens a Firebird backend connection. | |
| Firebird (IBPP::Database db) | |
| Creates and opens a Firebird backend connection. | |
| Firebird (const Firebird &other) | |
| Copy constructor. More... | |
| virtual | ~Firebird () |
| Destructor. More... | |
| bool | connect (const std::string &ServerName, const std::string &DatabaseName, const std::string &UserName, const std::string &UserPassword, const std::string &RoleName, const std::string &CharSet=std::string(), const std::string &CreateParams=std::string()) |
| Tries to connect. More... | |
| virtual Firebird * | clone () const |
| Clones the connection. More... | |
| IBPP::Database | connection () |
| Returns the underlying connection handle. | |
| virtual void | startTransaction () |
| Starts a transaction. More... | |
| virtual void | commitTransaction () |
| Commits a transaction. More... | |
| virtual void | rollbackTransaction () |
| Rolls back a transaction. More... | |
| virtual SqlStatement * | prepareStatement (const std::string &sql) |
| Prepares a statement. More... | |
| virtual void | prepareForDropTables () |
| Execute code before dropping the tables. More... | |
Methods that return dialect information | |
| virtual std::string | autoincrementSql () const |
| Returns the 'autoincrement' SQL type modifier. More... | |
| virtual std::vector< std::string > | autoincrementCreateSequenceSql (const std::string &table, const std::string &id) const |
| Returns the SQL statement(s) required to create an id sequence. More... | |
| virtual std::vector< std::string > | autoincrementDropSequenceSql (const std::string &table, const std::string &id) const |
| Returns the SQL statement(s) required to drop an id sequence. More... | |
| virtual std::string | autoincrementType () const |
| Returns the 'autoincrement' SQL type. More... | |
| virtual std::string | autoincrementInsertSuffix (const std::string &id) const |
| Returns the suffix for an 'autoincrement' insert statement. More... | |
| virtual const char * | dateTimeType (SqlDateTimeType type) const |
| Returns the date/time type. More... | |
| virtual const char * | blobType () const |
| Returns the blob type. More... | |
| virtual std::string | textType (int size) const |
| Returns the text type. More... | |
| virtual const char * | booleanType () const |
| Returns the boolean type. More... | |
| virtual LimitQuery | limitQueryMethod () const |
| Returns the 'autoincrement' SQL type modifier. More... | |
| virtual bool | supportAlterTable () const |
| Returns true if the backend support Alter Table. More... | |
| virtual bool | usesRowsFromTo () const |
| Returns whether the SQL dialect uses 'ROWS ? TO ?', limit or rownum for partial select results. More... | |
Public Member Functions inherited from Wt::Dbo::SqlConnection | |
| virtual | ~SqlConnection () |
| Destructor. | |
| virtual void | executeSql (const std::string &sql) |
| Executes an SQL statement. More... | |
| virtual SqlStatement * | getStatement (const std::string &id) const |
| Returns the statement with the given id. More... | |
| virtual void | saveStatement (const std::string &id, SqlStatement *statement) |
| Saves a statement with the given id. More... | |
| void | setProperty (const std::string &name, const std::string &value) |
| Sets a property. More... | |
| std::string | property (const std::string &name) const |
| Returns a property. More... | |
| virtual std::string | longLongType () const |
| Returns the 64-bit integer type. More... | |
| virtual bool | supportUpdateCascade () const |
| Returns the true if the database supports Update Cascade. More... | |
| virtual bool | requireSubqueryAlias () const |
| Returns the true if the database require subquery alias. More... | |
| virtual bool | supportDeferrableFKConstraint () const |
| Returns true if the backend supports "deferrable initially
deferred" foreign key constraints. More... | |
| virtual const char * | alterTableConstraintString () const |
| Returns the command used in alter table .. drop constraint .. More... | |
A Firebird connection.
This class provides the backend implementation for Firebird databases. It supports Firebird databases with version 2.1 or higher.
| Wt::Dbo::backend::Firebird::Firebird | ( | ) |
Creates a Firebird backend connection.
The connection is not yet open, and requires a connect() before it can be used.
| Wt::Dbo::backend::Firebird::Firebird | ( | const Firebird & | other | ) |
Copy constructor.
This creates a new backend connection with the same settings as another connection.
|
virtual |
Destructor.
Closes the connection.
|
virtual |
Returns the SQL statement(s) required to create an id sequence.
This is used by Session::createTables() to create the id sequence for a table. The table's name and primary key are passed as arguments to this function and can be used to construct an SQL sequence that is unique for the table.
Implements Wt::Dbo::SqlConnection.
|
virtual |
Returns the SQL statement(s) required to drop an id sequence.
This is used by Session::dropTables() to drop the id sequence for a table. The table's name and primary key are passed as arguments to this function and can be used to construct an SQL sequence that is unique for the table.
Implements Wt::Dbo::SqlConnection.
|
virtual |
Returns the suffix for an 'autoincrement' insert statement.
This is appended to the insert statement, since some back-ends need to be indicated that they should return the autoincrement id.
Implements Wt::Dbo::SqlConnection.
|
virtual |
Returns the 'autoincrement' SQL type modifier.
This is used by Session::createTables() to create the id column.
Implements Wt::Dbo::SqlConnection.
|
virtual |
Returns the 'autoincrement' SQL type.
This is used by Session::createTables() to create the id column.
Implements Wt::Dbo::SqlConnection.
|
virtual |
Returns the blob type.
Implements Wt::Dbo::SqlConnection.
|
virtual |
Returns the boolean type.
This method will return "boolean" by default.
Reimplemented from Wt::Dbo::SqlConnection.
|
virtual |
Clones the connection.
Returns a new connection object that is configured like this object. This is used by connection pool implementations to create its connections.
Implements Wt::Dbo::SqlConnection.
|
virtual |
| bool Wt::Dbo::backend::Firebird::connect | ( | const std::string & | ServerName, |
| const std::string & | DatabaseName, | ||
| const std::string & | UserName, | ||
| const std::string & | UserPassword, | ||
| const std::string & | RoleName, | ||
| const std::string & | CharSet = std::string(), |
||
| const std::string & | CreateParams = std::string() |
||
| ) |
Tries to connect.
Throws an exception if there was a problem, otherwise returns true.
|
virtual |
Returns the date/time type.
Implements Wt::Dbo::SqlConnection.
|
virtual |
Returns the 'autoincrement' SQL type modifier.
This is used by Session::createTables() to create the id column.
Reimplemented from Wt::Dbo::SqlConnection.
|
virtual |
Execute code before dropping the tables.
This method is called before calling Session::dropTables(). The default implementation is empty.
Reimplemented from Wt::Dbo::SqlConnection.
|
virtual |
|
virtual |
Rolls back a transaction.
This function rolls back a transaction.
Implements Wt::Dbo::SqlConnection.
|
virtual |
|
virtual |
Returns true if the backend support Alter Table.
This method will return false by default.
Reimplemented from Wt::Dbo::SqlConnection.
|
virtual |
Returns the text type.
This is the text type for a string. If size = -1, then a type should be returned which does not require size information, otherwise a type should be returned that limits the size of the stored string to size.
This method will return "text" by default if size = -1, and "varchar(size)" otherwise.
Reimplemented from Wt::Dbo::SqlConnection.
|
virtual |
Returns whether the SQL dialect uses 'ROWS ? TO ?', limit or rownum for partial select results.
This is an alternative SQL dialect option to the (non-standard) 'OFFSET ? LIMIT ?' syntax.
The default implementation returns Limit.
Reimplemented from Wt::Dbo::SqlConnection.
1.8.11