File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed
dj_db_conn_pool/backends/jdbc Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 14
14
lock_check_jvm_status = threading .Lock ()
15
15
16
16
17
- class JdbcDialectMixin :
17
+ class JDBCDialectMixin :
18
18
def do_ping (self , dbapi_connection ):
19
19
try :
20
20
return super ().do_ping (dbapi_connection )
@@ -42,6 +42,7 @@ def jdbc_url(self):
42
42
43
43
def create_cursor (self , name = None ):
44
44
cursor = self .connection .cursor ()
45
+
45
46
return CursorWrapper (cursor )
46
47
47
48
def get_connection_params (self ):
Original file line number Diff line number Diff line change 1
1
from django .db .backends .mysql import base
2
2
from sqlalchemy .dialects .mysql .base import MySQLDialect
3
3
4
- from dj_db_conn_pool .backends .jdbc .mixins import JdbcDialectMixin
4
+ from dj_db_conn_pool .backends .jdbc .mixins import JDBCDialectMixin
5
5
from dj_db_conn_pool .backends .jdbc .oceanbase .mixins import JDBCOceanBaseDatabaseWrapperMixin
6
6
7
7
8
8
class DatabaseWrapper (JDBCOceanBaseDatabaseWrapperMixin , base .DatabaseWrapper ):
9
- class SQLAlchemyDialect (JdbcDialectMixin , MySQLDialect ):
9
+ class SQLAlchemyDialect (JDBCDialectMixin , MySQLDialect ):
10
10
pass
Original file line number Diff line number Diff line change 1
1
from django .db .backends .oracle import base
2
2
from sqlalchemy .dialects .oracle .base import OracleDialect
3
3
4
- from dj_db_conn_pool .backends .jdbc .mixins import JdbcDialectMixin
4
+ from dj_db_conn_pool .backends .jdbc .mixins import JDBCDialectMixin
5
5
from dj_db_conn_pool .backends .jdbc .oceanbase .mixins import JDBCOceanBaseDatabaseWrapperMixin
6
6
7
7
8
8
class DatabaseWrapper (JDBCOceanBaseDatabaseWrapperMixin , base .DatabaseWrapper ):
9
- class SQLAlchemyDialect (JdbcDialectMixin , OracleDialect ):
9
+ class SQLAlchemyDialect (JDBCDialectMixin , OracleDialect ):
10
10
pass
11
11
12
12
def init_connection_state (self ):
Original file line number Diff line number Diff line change 7
7
from django .db .backends .oracle import base
8
8
from sqlalchemy .dialects .oracle .base import OracleDialect
9
9
10
- from dj_db_conn_pool .backends .jdbc .mixins import JdbcDialectMixin , JDBCDatabaseWrapperMixin
10
+ from dj_db_conn_pool .backends .jdbc .mixins import JDBCDialectMixin , JDBCDatabaseWrapperMixin
11
11
12
12
logger = logging .getLogger (__name__ )
13
13
20
20
21
21
22
22
class DatabaseWrapper (JDBCDatabaseWrapperMixin , base .DatabaseWrapper ):
23
- class SQLAlchemyDialect (JdbcDialectMixin , OracleDialect ):
23
+ class SQLAlchemyDialect (JDBCDialectMixin , OracleDialect ):
24
24
pass
25
25
26
26
jdbc_driver = 'oracle.jdbc.OracleDriver'
You can’t perform that action at this time.
0 commit comments