How to use the aiosqlite.core.Cursor function in aiosqlite

To help you get started, we’ve selected a few aiosqlite examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jreese / aiosqlite / aiosqlite / core.py View on Github external
async def execute(self, sql: str, parameters: Iterable[Any] = None) -> Cursor:
        """Helper to create a cursor and execute the given query."""
        if parameters is None:
            parameters = []
        cursor = await self._execute(self._conn.execute, sql, parameters)
        return Cursor(self, cursor)
github jreese / aiosqlite / aiosqlite / core.py View on Github external
async def cursor(self) -> Cursor:
        """Create an aiosqlite cursor wrapping a sqlite3 cursor object."""
        return Cursor(self, await self._execute(self._conn.cursor))

aiosqlite

asyncio bridge to the standard sqlite3 module

MIT
Latest version published 10 months ago

Package Health Score

90 / 100
Full package analysis

Similar packages