kexidbdrivermanager.cpp
45 this->addFunction0< Kross::Api::Variant >("driverNames", this, &KexiDBDriverManager::driverNames);
47 this->addFunction1< KexiDBDriver, Kross::Api::Variant >("driver", this, &KexiDBDriverManager::driver);
48 this->addFunction1< Kross::Api::Variant, Kross::Api::Variant >("lookupByMime", this, &KexiDBDriverManager::lookupByMime);
49 this->addFunction1< Kross::Api::Variant, Kross::Api::Variant >("mimeForFile", this, &KexiDBDriverManager::mimeForFile);
51 this->addFunction0< KexiDBConnectionData >("createConnectionData", this, &KexiDBDriverManager::createConnectionData);
52 this->addFunction1< KexiDBConnectionData, Kross::Api::Variant >("createConnectionDataByFile", this, &KexiDBDriverManager::createConnectionDataByFile);
54 this->addFunction1< KexiDBTableSchema, Kross::Api::Variant >("tableSchema", this, &KexiDBDriverManager::tableSchema);
69 throw Kross::Api::Exception::Ptr( new Kross::Api::Exception(TQString("KexiDB::DriverManager error: %1").arg(m_drivermanager.errorMsg())) );
78 TQGuardedPtr< ::KexiDB::Driver > driver = driverManager().driver(drivername); // caching is done by the DriverManager
80 if(driver->error()) throw Kross::Api::Exception::Ptr( new Kross::Api::Exception(TQString("KexiDB::Driver error for drivername '%1': %2").arg(drivername).arg(driver->errorMsg())) );
106 if(mimename == "application/x-kexiproject-shortcut" || mimename == "application/x-kexi-connectiondata") {
118 kdDebug() << "No groupkey in KexiDBDriverManager::createConnectionDataByFile filename=" << filename << endl;
157 kdDebug() << "No driver in KexiDBDriverManager::createConnectionDataByFile filename=" << filename << " mimename=" << mimename << endl;
bool savePassword
True if password should be saved to a file for the connection.
Definition connectiondata.h:127
TQString driverName
the name of the driver that should be used to create a connection
Definition connectiondata.h:76
bool useLocalSocketFile
True if local socket file should be used instead of TCP/IP port.
Definition connectiondata.h:102
Database specific connection data, e.g. host, port.
Definition connectiondata.h:163
void setFileName(const TQString &fn)
Set the filename used by the connection.
Definition connectiondata.cpp:85
Database driver management, e.g. finding and loading drivers.
Definition drivermanager.h:43
TQString lookupByMime(const TQString &mimeType)
Definition drivermanager.cpp:375
A KexiDBConnectionData is used to store the details needed for a connection with a database.
Definition kexidbconnectiondata.h:40
The drivermanager is the base class to access KexiDBDriver objects and provides common functionality ...
Definition kexidbdrivermanager.h:60
Drivers are the implementations Kexi uses to access the driver-backends.
Definition kexidbdriver.h:66
The KexiDBTableSchema object implements a KexiDBSchema for queries.
Definition kexidbschema.h:113
The KexiDBTableSchema object implements a KexiDBSchema for tables.
Definition kexidbschema.h:94
KrossKexiDB provides access to the KexiDB database functionality.
Definition kexidbconnection.h:34
