Exemplo n.º 1
0
 def __init__(self, connectArgs, pool=None, verbose=False):
     if pool and not hasattr(pool, 'connect'):
         pool = ConnectionPool()
     super(PsycopgDBI, self).__init__(connectArgs, psycopg.connect, pool,
                                      verbose)
     if psycopg_version < 2:
         # try to keep state
         self._autocommit = None
Exemplo n.º 2
0
 def __init__(self, connectArgs, pool=None, verbose=False, initFunc=None):
     if pool and not hasattr(pool, 'connect'):
         pool = ConnectionPool()
     super(SqliteDBI, self).__init__(connectArgs, sqlite_connect, sqlite,
                                     pool, verbose, initFunc)
     #
     # This appears to be the correct default value
     # for isolation level on pysqlite.
     #
     self._isolation_level = ""
Exemplo n.º 3
0
   def __init__(self, connectArgs, pool=None, verbose=False, initFunc=None):
      if pool and not hasattr(pool, 'connect'):
         pool=ConnectionPool()
      super(MssqlDBI, self).__init__(connectArgs,
                                     adodbapi.connect,
                                     adodbapi,
                                     pool,
                                     verbose,
                                     initFunc)

      autocommit = False
Exemplo n.º 4
0
 def __init__(self, connectArgs, pool=None, verbose=False, initFunc=None):
     if pool and not hasattr(pool, 'connect'):
         pool = ConnectionPool()
     super(MysqlDBI, self).__init__(connectArgs, MySQLdb.connect, MySQLdb,
                                    pool, verbose, initFunc)
Exemplo n.º 5
0
 def __init__(self, connectArgs, pool=None, verbose=False, initFunc=None):
     if pool and not hasattr(pool, 'connect'):
         pool = ConnectionPool()
     super(OracleDBI, self).__init__(connectArgs, cx_Oracle.connect,
                                     cx_Oracle, pool, verbose, initFunc)
Exemplo n.º 6
0
 def __init__(self, connectArgs, pool=None, verbose=False):
     if pool and not hasattr(pool, 'connect'):
         pool = ConnectionPool()
     super(SqliteDBI, self).__init__(connectArgs, sqlite.connect, pool,
                                     verbose)