Kexi API Documentation (2.0 alpha)

Kross::KexiDB::KexiDBDriver Class Reference

#include <kexidbdriver.h>

Inheritance diagram for Kross::KexiDB::KexiDBDriver:

Class List of all members.

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 ~KexiDBDriver ()
virtual const QString getClassName () const


Constructor & Destructor Documentation

KexiDBDriver::KexiDBDriver ::KexiDB::Driver driver  ) 
 

Definition at line 31 of file kexidbdriver.cpp.

KexiDBDriver::~KexiDBDriver  )  [virtual]
 

Definition at line 50 of file kexidbdriver.cpp.


Member Function Documentation

const QString KexiDBDriver::getClassName  )  const [virtual]
 

Definition at line 54 of file kexidbdriver.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:51:06 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003