Kross::KexiDB::KexiDBDriverManager Class Reference

#include <kexidbdrivermanager.h>

Inherits Kross::Api::Class< KexiDBDriverManager >.

Public Member Functions

virtual const TQString getClassName () const
 

Detailed Description

The drivermanager is the base class to access KexiDBDriver objects and provides common functionality to deal with the KexiDB module.

Example (in Python) ;

# Import the kexidb module.
import krosskexidb
# Get the drivermanager.
drivermanager = krosskexidb.DriverManager()
# Let's determinate the mimetype (e.g. "application/x-sqlite3").
mimetype = drivermanager.mimeForFile("/home/user/mykexidbfile.kexi")
# Now we use that mimetype to get the name of the driver to handle that file (e.g. "SQLite3")
drivername = drivermanager.lookupByMime(mimetype)
# We are able to create the driver now.
driver = drivermanager.driver(drivername)

Definition at line 59 of file kexidbdrivermanager.h.

Constructor & Destructor Documentation

◆ KexiDBDriverManager()

KexiDBDriverManager::KexiDBDriverManager ( )

Definition at line 40 of file kexidbdrivermanager.cpp.

◆ ~KexiDBDriverManager()

KexiDBDriverManager::~KexiDBDriverManager ( )
virtual

Definition at line 58 of file kexidbdrivermanager.cpp.

Member Function Documentation

◆ getClassName()

const TQString KexiDBDriverManager::getClassName ( ) const
virtual

Definition at line 62 of file kexidbdrivermanager.cpp.


The documentation for this class was generated from the following files: