|
1 | 1 | from contextlib import asynccontextmanager, contextmanager |
2 | 2 | from typing import TYPE_CHECKING, Any, Optional, Union, cast, overload |
3 | 3 |
|
4 | | -from sqlspec.base import ( |
5 | | - AsyncArrowBulkOperationsMixin, |
6 | | - AsyncDriverAdapterProtocol, |
7 | | - SyncArrowBulkOperationsMixin, |
8 | | - SyncDriverAdapterProtocol, |
9 | | - T, |
10 | | -) |
11 | | -from sqlspec.typing import ArrowTable, StatementParameterType |
| 4 | +from sqlspec.base import AsyncDriverAdapterProtocol, SyncDriverAdapterProtocol |
| 5 | +from sqlspec.mixins import AsyncArrowBulkOperationsMixin, SQLTranslatorMixin, SyncArrowBulkOperationsMixin |
| 6 | +from sqlspec.typing import ArrowTable, StatementParameterType, T |
12 | 7 |
|
13 | 8 | if TYPE_CHECKING: |
14 | 9 | from collections.abc import AsyncGenerator, Generator, Sequence |
|
21 | 16 | __all__ = ("OracleAsyncDriver", "OracleSyncDriver") |
22 | 17 |
|
23 | 18 |
|
24 | | -class OracleSyncDriver(SyncArrowBulkOperationsMixin["Connection"], SyncDriverAdapterProtocol["Connection"]): |
| 19 | +class OracleSyncDriver( |
| 20 | + SyncArrowBulkOperationsMixin["Connection"], |
| 21 | + SQLTranslatorMixin["Connection"], |
| 22 | + SyncDriverAdapterProtocol["Connection"], |
| 23 | +): |
25 | 24 | """Oracle Sync Driver Adapter.""" |
26 | 25 |
|
27 | 26 | connection: "Connection" |
@@ -433,7 +432,9 @@ def select_arrow( # pyright: ignore[reportUnknownParameterType] |
433 | 432 |
|
434 | 433 |
|
435 | 434 | class OracleAsyncDriver( |
436 | | - AsyncArrowBulkOperationsMixin["AsyncConnection"], AsyncDriverAdapterProtocol["AsyncConnection"] |
| 435 | + AsyncArrowBulkOperationsMixin["AsyncConnection"], |
| 436 | + SQLTranslatorMixin["AsyncConnection"], |
| 437 | + AsyncDriverAdapterProtocol["AsyncConnection"], |
437 | 438 | ): |
438 | 439 | """Oracle Async Driver Adapter.""" |
439 | 440 |
|
|
0 commit comments