Kross::KexiDB::KexiDBDriver Class Reference
#include <kexidbdriver.h>
Public Member Functions | |
| KexiDBDriver (::KexiDB::Driver *driver) | |
| virtual const TQString | getClassName () const |
Detailed Description
Drivers are the implementations Kexi uses to access the driver-backends.
Example (in Python) ;
# Import the kexidb module.
import krosskexidb
# Get the drivermanager.
drivermanager = krosskexidb.DriverManager()
# Create the driver now.
driver = drivermanager.driver("SQLite3")
# Check if the driver is valid.
if not driver.isValid(): raise "Invalid driver"
# Create a connectiondata object.
connectiondata = drivermanager.createConnectionData()
# Fill the new connectiondata object with what we need to connect.
connectiondata.setFileName("/home/user/kexisqlite3file.kexi")
# Print the list of connections before.
print driver.connectionsList()
# Create the connection now.
connection = driver.createConnection(connectiondata)
# Print the list of connections again. This includes our just created connection now.
print driver.connectionsList()
Definition at line 65 of file kexidbdriver.h.
Constructor & Destructor Documentation
◆ KexiDBDriver()
| KexiDBDriver::KexiDBDriver | ( | ::KexiDB::Driver * | driver | ) |
Definition at line 31 of file kexidbdriver.cpp.
◆ ~KexiDBDriver()
|
virtual |
Definition at line 50 of file kexidbdriver.cpp.
Member Function Documentation
◆ getClassName()
|
virtual |
Definition at line 54 of file kexidbdriver.cpp.
The documentation for this class was generated from the following files:
