Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix error for cursor.connection(return not async connection) #296

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,4 @@ ENV/

# Editors
.vscode/
.idea/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.idea/

4 changes: 2 additions & 2 deletions aiosqlite/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def row_factory(self, factory: Optional[Type]) -> None:
self._cursor.row_factory = factory

@property
def connection(self) -> sqlite3.Connection:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sqlite3.

return self._cursor.connection

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_cursor.connection

def connection(self) -> "Connection":

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

" "

return self._conn

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_conn


async def __aenter__(self):
return self
Expand Down