from sqlobject.dbconnection import registerConnection def builder(): from . import sqliteconnection return sqliteconnection.SQLiteConnection registerConnection(['sqlite'], builder)
from sqlobject.dbconnection import registerConnection def builder(): import maxdbconnection return maxdbconnection.MaxdbConnection registerConnection(['maxdb','sapdb'],builder)
from sqlobject.dbconnection import registerConnection def builder(): import mysqlconnection return mysqlconnection.MySQLConnection def isSupported(): try: import MySQLdb except ImportError: return False return True registerConnection(["mysql"], builder, isSupported)
from sqlobject.dbconnection import registerConnection def builder(): from . import pgconnection return pgconnection.PostgresConnection registerConnection(['postgres', 'postgresql', 'psycopg'], builder)
from sqlobject.dbconnection import registerConnection def builder(): import mssqlconnection return mssqlconnection.MSSQLConnection def isSupported(cls): try: import pymssql except ImportError: try: import adodbapi except ImportError: return False return True registerConnection(['mssql'], builder, isSupported)
from sqlobject.dbconnection import registerConnection def builder(): import pgconnection return pgconnection.PostgresConnection def isSupported(): try: import psycopg2 except ImportError: try: import psycopg except ImportError: return False return True registerConnection(['postgres', 'postgresql', 'psycopg'], builder, isSupported)
from sqlobject.dbconnection import registerConnection def builder(): from . import rdbhostconnection return rdbhostconnection.RdbhostConnection registerConnection(['rdbhost'], builder)
from sqlobject.dbconnection import registerConnection def builder(): import sybaseconnection return sybaseconnection.SybaseConnection def isSupported(cls): try: import Sybase except ImportError: return False return True registerConnection(["sybase"], builder, isSupported)
from sqlobject.dbconnection import registerConnection def builder(): import firebirdconnection return firebirdconnection.FirebirdConnection registerConnection(['firebird', 'interbase'], builder)
from sqlobject.dbconnection import registerConnection def builder(): import maxdbconnection return maxdbconnection.MaxdbConnection def isSupported(): try: import sapdb except ImportError: return False return True registerConnection(['maxdb','sapdb'],builder, isSupported)
from sqlobject.dbconnection import registerConnection def builder(): import sqliteconnection return sqliteconnection.SQLiteConnection registerConnection(['sqlite'], builder)
from sqlobject.dbconnection import registerConnection def builder(): import sqliteconnection return sqliteconnection.SQLiteConnection def isSupported(): try: from pysqlite2 import dbapi2 as sqlite except ImportError: try: import sqlite except ImportError: return False return True registerConnection(['sqlite'], builder, isSupported)
from sqlobject.dbconnection import registerConnection def builder(): import maxdbconnection return maxdbconnection.MaxdbConnection def isSupported(): try: import sapdb except ImportError: return False return False registerConnection(["maxdb", "sapdb"], builder, isSupported)
from sqlobject.dbconnection import registerConnection #import mysqltypes def builder(): import mysqlconnection return mysqlconnection.MySQLConnection registerConnection(['mysql'], builder)
from sqlobject.dbconnection import registerConnection def builder(): import sybaseconnection return sybaseconnection.SybaseConnection registerConnection(['sybase'], builder)
from sqlobject.dbconnection import registerConnection def builder(): from . import sybaseconnection return sybaseconnection.SybaseConnection registerConnection(["sybase"], builder)
from sqlobject.dbconnection import registerConnection def builder(): from . import maxdbconnection return maxdbconnection.MaxdbConnection registerConnection(['maxdb', 'sapdb'], builder)
from sqlobject.dbconnection import registerConnection def builder(): import firebirdconnection return firebirdconnection.FirebirdConnection def isSupported(): try: import kinterbasdb except ImportError: return False registerConnection(['firebird', 'interbase'], builder, isSupported)
from sqlobject.dbconnection import registerConnection def builder(): from . import sqliteconnection return sqliteconnection.SQLiteConnection registerConnection(["sqlite"], builder)