kexi
Kross::KexiDB::KexiDBDriver Class Reference
#include <kexidbdriver.h>
Inherits Kross::Api::Class< Kross::KexiDB::KexiDBDriver >.
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.
Public Member Functions | |
KexiDBDriver (::KexiDB::Driver *driver) | |
virtual const QString | getClassName () const |
The documentation for this class was generated from the following files: