예제 #1
0
from sqlobject.dbconnection import registerConnection


def builder():
    from . import sqliteconnection
    return sqliteconnection.SQLiteConnection


registerConnection(['sqlite'], builder)
예제 #2
0
파일: __init__.py 프로젝트: Antexa/htpc_ynh
from sqlobject.dbconnection import registerConnection

def builder():
    import maxdbconnection
    return maxdbconnection.MaxdbConnection

registerConnection(['maxdb','sapdb'],builder)
예제 #3
0
파일: __init__.py 프로젝트: pacoqueen/bbinn
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)
예제 #4
0
from sqlobject.dbconnection import registerConnection


def builder():
    from . import pgconnection
    return pgconnection.PostgresConnection


registerConnection(['postgres', 'postgresql', 'psycopg'], builder)
예제 #5
0
파일: __init__.py 프로젝트: fregaham/DISP
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)
예제 #6
0
파일: __init__.py 프로젝트: fregaham/DISP
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)
예제 #7
0
from sqlobject.dbconnection import registerConnection


def builder():
    from . import rdbhostconnection
    return rdbhostconnection.RdbhostConnection

registerConnection(['rdbhost'], builder)
예제 #8
0
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)
예제 #9
0
from sqlobject.dbconnection import registerConnection

def builder():
    import firebirdconnection
    return firebirdconnection.FirebirdConnection

registerConnection(['firebird', 'interbase'], builder)
예제 #10
0
파일: __init__.py 프로젝트: bieschke/nuffle
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)
예제 #11
0
파일: __init__.py 프로젝트: Antexa/htpc_ynh
from sqlobject.dbconnection import registerConnection

def builder():
    import sqliteconnection
    return sqliteconnection.SQLiteConnection

registerConnection(['sqlite'], builder)
예제 #12
0
파일: __init__.py 프로젝트: fregaham/DISP
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)
예제 #13
0
파일: __init__.py 프로젝트: pacoqueen/bbinn
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)
예제 #14
0
from sqlobject.dbconnection import registerConnection


def builder():
    from . import pgconnection
    return pgconnection.PostgresConnection

registerConnection(['postgres', 'postgresql', 'psycopg'], builder)
예제 #15
0
from sqlobject.dbconnection import registerConnection
#import mysqltypes


def builder():
    import mysqlconnection
    return mysqlconnection.MySQLConnection


registerConnection(['mysql'], builder)
예제 #16
0
from sqlobject.dbconnection import registerConnection


def builder():
    import sybaseconnection
    return sybaseconnection.SybaseConnection


registerConnection(['sybase'], builder)
예제 #17
0
from sqlobject.dbconnection import registerConnection


def builder():
    from . import sybaseconnection

    return sybaseconnection.SybaseConnection


registerConnection(["sybase"], builder)
예제 #18
0
from sqlobject.dbconnection import registerConnection


def builder():
    from . import maxdbconnection
    return maxdbconnection.MaxdbConnection

registerConnection(['maxdb', 'sapdb'], builder)
예제 #19
0
파일: __init__.py 프로젝트: Antexa/htpc_ynh
from sqlobject.dbconnection import registerConnection
#import mysqltypes

def builder():
    import mysqlconnection
    return mysqlconnection.MySQLConnection

registerConnection(['mysql'], builder)
예제 #20
0
파일: __init__.py 프로젝트: Antexa/htpc_ynh
from sqlobject.dbconnection import registerConnection

def builder():
    import sybaseconnection
    return sybaseconnection.SybaseConnection

registerConnection(['sybase'], builder)
예제 #21
0
파일: __init__.py 프로젝트: pacoqueen/bbinn
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)
예제 #22
0
from sqlobject.dbconnection import registerConnection


def builder():
    from . import sqliteconnection

    return sqliteconnection.SQLiteConnection


registerConnection(["sqlite"], builder)