File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1+ from typing import Union
2+
3+ from .async_client import AsyncClient
4+ from .sync_client import SyncClient
5+
6+ Client = Union [AsyncClient , SyncClient ]
Original file line number Diff line number Diff line change 1212
1313import aiopg # type: ignore
1414from psycopg2 .extras import register_uuid
15- # importing for the sole purpose of re-exporting
16- # pylint: disable=unused-import
1715from psycopg2 import sql
1816
19- from .connection import ConnectionParameters , connect
17+ from db_wrapper .connection import ConnectionParameters , connect
2018
2119# add uuid support to psycopg2 & Postgres
2220register_uuid ()
2624# pylint: disable=invalid-name
2725T = TypeVar ('T' )
2826
29- # pylint: disable=unsubscriptable-object
3027Query = Union [str , sql .Composed ]
3128
3229
33- class Client :
30+ class AsyncClient :
3431 """Class to manage database connection & expose necessary methods to user.
3532
3633 Stores connection parameters on init, then exposes methods to
Original file line number Diff line number Diff line change 1111 Dict )
1212
1313from psycopg2 .extras import register_uuid
14- # importing for the sole purpose of re-exporting
15- # pylint: disable=unused-import
1614from psycopg2 import sql
1715from psycopg2 ._psycopg import cursor
1816
19- from .connection import (
17+ from db_wrapper .connection import (
2018 sync_connect ,
2119 ConnectionParameters ,
2220)
3230Query = Union [str , sql .Composed ]
3331
3432
35- class Client :
33+ class SyncClient :
3634 """Class to manage database connection & expose necessary methods to user.
3735
3836 Stores connection parameters on init, then exposes methods to
You can’t perform that action at this time.
0 commit comments