-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
54 lines (44 loc) · 2.24 KB
/
Copy path__init__.py
File metadata and controls
54 lines (44 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"""
SQLObject 0.11
"""
from main import *
from col import *
from sqlbuilder import AND, OR, NOT, IN, LIKE, RLIKE, DESC, CONTAINSSTRING, const, func, OVERLAPS
from styles import *
from joins import *
from index import *
from dbconnection import connectionForURI
import dberrors
## Each of these imports allows the driver to install itself
## Then we set up some backward compatibility
def _warn(msg):
import warnings
warnings.warn(msg, DeprecationWarning, stacklevel=2)
import firebird as _firebird
def FirebirdConnection(*args, **kw):
_warn('FirebirdConnection is deprecated; use connectionForURI("firebird://...") or "from sqlobject.firebird import builder; FirebirdConnection = builder()"')
return _firebird.builder()(*args, **kw)
import mysql as _mysql
def MySQLConnection(*args, **kw):
_warn('MySQLConnection is deprecated; use connectionForURI("mysql://...") or "from sqlobject.mysql import builder; MySQLConnection = builder()"')
return _mysql.builder()(*args, **kw)
import postgres as _postgres
def PostgresConnection(*args, **kw):
_warn('PostgresConnection is deprecated; use connectionForURI("postgres://...") or "from sqlobject.postgres import builder; PostgresConnection = builder()"')
return _postgres.builder()(*args, **kw)
import sqlite as _sqlite
def SQLiteConnection(*args, **kw):
_warn('SQLiteConnection is deprecated; use connectionForURI("sqlite://...") or "from sqlobject.sqlite import builder; SQLiteConnection = builder()"')
return _sqlite.builder()(*args, **kw)
import sybase as _sybase
def SybaseConnection(*args, **kw):
_warn('SybaseConnection is deprecated; use connectionForURI("sybase://...") or "from sqlobject.sybase import builder; SybaseConnection = builder()"')
return _sybase.builder()(*args, **kw)
import maxdb as _maxdb
def MaxdbConnection(*args, **kw):
_warn('MaxdbConnection is deprecated; use connectionForURI("maxdb://...") or "from sqlobject.maxdb import builder; MaxdbConnection = builder()"')
return _maxdb.builder()(*args, **kw)
import mssql as _mssql
def MSSQLConnection(*args, **kw):
_warn('MssqlConnection is deprecated; use connectionForURI("mssql://...") or "from sqlobject.mssql import builder; MSSQLConnection = builder()"')
return _mssql.builder()(*args, **kw)