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

Connection's cursor method should have factory #155

Open
Andrew-Chen-Wang opened this issue Feb 1, 2022 · 0 comments
Open

Connection's cursor method should have factory #155

Andrew-Chen-Wang opened this issue Feb 1, 2022 · 0 comments

Comments

@Andrew-Chen-Wang
Copy link

Description

sqlite3's Connection object includes a factory kwarg while aiosqlite doesn't.

aiosqlite/aiosqlite/core.py

Lines 155 to 158 in cd1861c

@contextmanager
async def cursor(self) -> Cursor:
"""Create an aiosqlite cursor wrapping a sqlite3 cursor object."""
return Cursor(self, await self._execute(self._conn.cursor))

Details

  • OS:
  • Python version: 3.9
  • aiosqlite version:
  • Can you repro on 'main' branch? Yes
  • Can you repro in a clean virtualenv? Yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant