Eneboo - Documentación para desarrolladores
|
#include <qsqlite.h>
SqliteDriver::SqliteDriver | ( | QObject * | parent = 0 , |
const char * | name = 0 |
||
) |
SqliteDriver::~SqliteDriver | ( | ) |
bool SqliteDriver::alterTable | ( | const QString & | mtd1, |
const QString & | mtd2, | ||
const QString & | key = QString::null |
||
) | [virtual] |
Ver FLSqlDatabase::alterTable()
Reimplementado de FLSqlDriver.
bool SqliteDriver::beginTransaction | ( | ) | [virtual] |
Protected function which derived classes can reimplement to begin a transaction. If successful, return TRUE, otherwise return FALSE. The default implementation returns FALSE.
Reimplementado de QSqlDriver.
void SqliteDriver::close | ( | void | ) | [virtual] |
Derived classes must reimplement this abstract virtual function in order to close the database connection. Return TRUE on success, FALSE on failure.
Implementa QSqlDriver.
bool SqliteDriver::commitTransaction | ( | ) | [virtual] |
Protected function which derived classes can reimplement to commit a transaction. If successful, return TRUE, otherwise return FALSE. The default implementation returns FALSE.
Reimplementado de QSqlDriver.
QSqlQuery SqliteDriver::createQuery | ( | ) | const [virtual] |
Creates an empty SQL result on the database. Derived classes must reimplement this function and return a QSqlQuery object appropriate for their database to the caller.
Implementa QSqlDriver.
SqliteDatabase * SqliteDriver::dataBase | ( | ) |
Obtiene el nombre de la base de datos formateado correctamente para realizar una conexin
name | Nombre de la base de datos |
Reimplementado de FLSqlDriver.
Ver FLSqlDatabase::formatValue()
Reimplementado de FLSqlDriver.
QString SqliteDriver::formatValueLike | ( | int | t, |
const QVariant & | v, | ||
const bool | upper = false |
||
) | [virtual] |
Ver FLSqlDatabase::formatValueLike()
Reimplementado de FLSqlDriver.
bool SqliteDriver::hasFeature | ( | QSqlDriver::DriverFeature | f | ) | const [virtual] |
Returns TRUE if the driver supports feature f; otherwise returns FALSE.
Note that some databases need to be open() before this can be determined.
Implementa QSqlDriver.
void SqliteDriver::Mr_Proper | ( | ) | [virtual] |
Ver FLSqlDatabase::Mr_Proper()
Reimplementado de FLSqlDriver.
Ver FLSqlDatabase::nextSerialVal()
Reimplementado de FLSqlDriver.
bool SqliteDriver::open | ( | const QString & | db, |
const QString & | user, | ||
const QString & | password, | ||
const QString & | host, | ||
int | port, | ||
const QString & | connOpts | ||
) |
Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. Open a database connection on database db, using user name user, password password, host host, port port and connection options connOpts.
Returns TRUE on success and FALSE on failure.
Reimplementado de QSqlDriver.
bool SqliteDriver::open | ( | const QString & | db, |
const QString & | user = QString::null , |
||
const QString & | password = QString::null , |
||
const QString & | host = QString::null , |
||
int | port = -1 |
||
) | [virtual] |
Derived classes must reimplement this abstract virtual function in order to open a database connection on database db, using user name user, password password, host host and port port.
The function must return TRUE on success and FALSE on failure.
Implementa QSqlDriver.
Returns the primary index for table tableName. Returns an empty QSqlIndex if the table doesn't have a primary index. The default implementation returns an empty index.
Reimplementado de QSqlDriver.
QSqlRecord SqliteDriver::record | ( | const QSqlQuery & | query | ) | const [virtual] |
Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. Returns a QSqlRecord populated with the names of the fields in the SQL query. The default implementation returns an empty record.
Reimplementado de QSqlDriver.
QSqlRecord SqliteDriver::record | ( | const QString & | tableName | ) | const [virtual] |
Returns a QSqlRecord populated with the names of the fields in table tableName. If no such table exists, an empty record is returned. The default implementation returns an empty record.
Reimplementado de QSqlDriver.
QSqlRecordInfo SqliteDriver::recordInfo | ( | const QSqlQuery & | query | ) | const [virtual] |
Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. Returns a QSqlRecordInfo object with meta data for the QSqlQuery query. Note that this overloaded function may return less information than the recordInfo() function which takes the name of a table as parameter.
Reimplementado de QSqlDriver.
QSqlRecordInfo SqliteDriver::recordInfo | ( | const QString & | tablename | ) | const [virtual] |
Returns a QSqlRecordInfo object with meta data about the table tablename.
Reimplementado de QSqlDriver.
bool SqliteDriver::rollbackTransaction | ( | ) | [virtual] |
Protected function which derived classes can reimplement to rollback a transaction. If successful, return TRUE, otherwise return FALSE. The default implementation returns FALSE.
Reimplementado de QSqlDriver.
QString SqliteDriver::sqlCreateTable | ( | FLTableMetaData * | tmd | ) | [virtual] |
Sentencia SQL especfica de la base de datos que soporta el controlador, necesaria para crear la tabla solicitada.
tmd | Metadatos con la descripcin de la tabla que se desea crear |
Reimplementado de FLSqlDriver.
QStringList SqliteDriver::tables | ( | const QString & | tableType | ) | const [virtual] |
Returns a list of tables in the database. The default implementation returns an empty list.
The tableType argument describes what types of tables should be returned. Due to binary compatibility, the string contains the value of the enum QSql::TableTypes as text. An empty string should be treated as QSql::Tables for downward compatibility.
Reimplementado de QSqlDriver.
bool SqliteDriver::tryConnect | ( | const QString & | db, |
const QString & | user = QString::null , |
||
const QString & | password = QString::null , |
||
const QString & | host = QString::null , |
||
int | port = -1 |
||
) | [virtual] |
Intentar realizar una conexin a una base de datos.
Si la base de datos no existe intenta crearla.
database | Nombre de la base de datos a la que conectar |
user | Usuario |
password | Contrasea |
host | Servidor de la base de datos |
port | Puerto TCP de conexin |
Reimplementado de FLSqlDriver.