Skip to content

Commit e23e9f7

Browse files
Declare __all__ on the Connection modules to match the cursor modules
Both cursor modules declare their public surface via __all__ (just "Cursor" / "AsyncCursor"), but the connection modules did not. Export Connection and AsyncConnection symmetrically so submodule-level imports and tooling agree on the intended public API. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent e5b46d9 commit e23e9f7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/dqlitedbapi/aio/connection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
from dqlitedbapi.connection import _is_no_transaction_error
1313
from dqlitedbapi.exceptions import InterfaceError, OperationalError, ProgrammingError
1414

15+
__all__ = ["AsyncConnection"]
16+
1517

1618
class AsyncConnection:
1719
"""Async database connection."""

src/dqlitedbapi/connection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
from dqlitedbapi.cursor import Cursor
1515
from dqlitedbapi.exceptions import InterfaceError, OperationalError, ProgrammingError
1616

17+
__all__ = ["Connection"]
18+
1719
# SQLite result codes for "you tried to COMMIT/ROLLBACK but there's no
1820
# transaction active." SQLite returns ``SQLITE_ERROR`` (1) most of the
1921
# time; some code paths return ``SQLITE_MISUSE`` (21). Check the

0 commit comments

Comments
 (0)