diff options
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/py-aiosqlite/Makefile | 19 | ||||
-rw-r--r-- | databases/py-aiosqlite/distinfo | 3 | ||||
-rw-r--r-- | databases/py-aiosqlite/pkg-descr | 12 |
4 files changed, 35 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index d61768b44f32..d7ea13f6b430 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -757,6 +757,7 @@ SUBDIR += py-agate-sql SUBDIR += py-aiopg SUBDIR += py-aioredis + SUBDIR += py-aiosqlite SUBDIR += py-alembic SUBDIR += py-apsw SUBDIR += py-asyncpg diff --git a/databases/py-aiosqlite/Makefile b/databases/py-aiosqlite/Makefile new file mode 100644 index 000000000000..22f6aa2c8327 --- /dev/null +++ b/databases/py-aiosqlite/Makefile @@ -0,0 +1,19 @@ +# $FreeBSD$ + +PORTNAME= aiosqlite +PORTVERSION= 0.11.0 +CATEGORIES= databases python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= romain@FreeBSD.org +COMMENT= AsyncIO bridge to the standard sqlite3 module for Python 3.5+ + +LICENSE= MIT + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} + +USES= python:3.5+ +USE_PYTHON= autoplist distutils + +.include <bsd.port.mk> diff --git a/databases/py-aiosqlite/distinfo b/databases/py-aiosqlite/distinfo new file mode 100644 index 000000000000..22d497fbfc74 --- /dev/null +++ b/databases/py-aiosqlite/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1578801636 +SHA256 (aiosqlite-0.11.0.tar.gz) = 4f02314a42db6722dc26f2a6119c64e3f05f141f57bbf2b1e1f9fd741b6d7fb8 +SIZE (aiosqlite-0.11.0.tar.gz) = 10062 diff --git a/databases/py-aiosqlite/pkg-descr b/databases/py-aiosqlite/pkg-descr new file mode 100644 index 000000000000..dd2b1aa9c3f9 --- /dev/null +++ b/databases/py-aiosqlite/pkg-descr @@ -0,0 +1,12 @@ +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. + +WWW: https://pypi.python.org/pypi/aiosqlite |