Lista de todos los miembros.
Documentación del constructor y destructor
QSqlDatabaseManager::QSqlDatabaseManager |
( |
QObject * |
parent = 0 , |
|
|
const char * |
name = 0 |
|
) |
| |
Constructs an SQL database manager.
QSqlDatabaseManager::~QSqlDatabaseManager |
( |
| ) |
|
Destroys the object and frees any allocated resources. All open database connections are closed. All database connections are deleted.
Documentación de las funciones miembro
Adds a database to the SQL connection manager. The database connection is referred to by name. The newly added database connection is returned. This function will only return 0 if it is called before a QApplication object has been instantiated. Use the output of drivers() to determine whether a particular driver is available or not.
The returned QSqlDatabase object is owned by the framework and must not be deleted. If you want to explicitly remove the connection, use removeDatabase().
- Ver también:
- QSqlDatabase database()
bool QSqlDatabaseManager::contains |
( |
const QString & |
name | ) |
[static] |
Returns TRUE if the list of database connections contains name; otherwise returns FALSE.
Returns the database connection called name. If open is TRUE, the database connection is opened. If name does not exist in the list of managed databases, 0 is returned.
QDriverDict * QSqlDatabaseManager::driverDict |
( |
| ) |
[static] |
void QSqlDatabaseManager::removeDatabase |
( |
const QString & |
name | ) |
[static] |
Removes the database connection name from the SQL connection manager.
- Atención:
- There should be no open queries on the database connection when this function is called, otherwise a resource leak will occur.
void QSqlDatabaseManager::removeDatabase |
( |
QSqlDatabase * |
db | ) |
[static] |
Removes the database connection db from the SQL connection manager. The QSqlDatabase object is destroyed when it is removed from the manager.
- Atención:
- The db pointer is not valid after this function has been called.
Documentación de los datos miembro
La documentación para esta clase fue generada a partir del siguiente fichero: