BSD Ports

databases/py-aiosqlite 0.19.0 DragonFly

AsyncIO bridge to the standard sqlite3 module for Python 3.7+

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
databases, python
Package size
37.1 KiB, 238.7 KiB installed

Description

aiosqlite allows interaction with SQLite databases on the main AsyncIO event loop without blocking execution of other coroutines while waiting for queries or data fetches. It does this by using a single, shared thread per connection. This thread executes all actions within a shared request queue to prevent overlapping actions.

Connection objects are proxies to the real connections, contain the shared execution thread, and provide context managers to handle automatically closing connections. Cursors are similarly proxies to the real cursors, and provide async iterators to query results.

In the other systems

SystemPortVersion
DragonFlydatabases/py-aiosqlite0.19.0
FreeBSDdatabases/py-aiosqlite0.22.1
OpenBSDdatabases/py-aiosqlite0.22.1
NetBSDdatabases/py-aiosqlite0.22.1
MidnightBSDdatabases/py-aiosqlite0.15.0_1
HardenedBSDdatabases/py-aiosqlite0.22.1
GhostBSDdatabases/py-aiosqlite0.22.1

Install

Binary package:

pkg install py311-aiosqlite

From DPorts:

cd /usr/dports/databases/py-aiosqlite && make install clean

Dependencies

Run dependencies 2