Skip to main content

PostgreSQL and SQLite WAL engine plugin for Tigrbl (auto-registered via entry points).

Project description

tigrbl_engine_pgsqli_wal

Tigrbl engine plugin providing two engines:

  • postgres_wal — PostgreSQL via SQLAlchemy + psycopg3
  • sqlite_wal — SQLite with WAL mode enabled via connection PRAGMAs

The package auto-registers with Tigrbl through the tigrbl.engine entry-point group.

Install

pip install -e .

Usage (inside Tigrbl)

from tigrbl.engine import Engine
from tigrbl.engine.engine_spec import EngineSpec

# PostgreSQL (DSN or mapping)
spec = EngineSpec(kind="postgres_wal", dsn="postgresql+psycopg://user:pwd@host:5432/db?application_name=tigrbl")

# Or with mapping (the plugin builds the URL)
spec = EngineSpec(kind="postgres_wal", mapping={
  "host": "127.0.0.1", "port": 5432, "user": "user", "pwd": "pwd", "db": "db",
  "application_name": "tigrbl", "pool_size": 10, "max_overflow": 20
})

# SQLite (file path required for WAL)
spec = EngineSpec(kind="sqlite_wal", mapping={"path": "/path/to/db.sqlite", "pool_size": 5})

engine = Engine(spec)
with engine.session() as s:
    s.execute("select 1").all()

Notes:

  • PostgreSQL WAL is a server feature; this plugin tunes connection/session parameters only.
  • SQLite WAL is enabled via PRAGMA journal_mode=WAL on each new connection.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tigrbl_engine_pgsqli_wal-0.1.1.dev5.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tigrbl_engine_pgsqli_wal-0.1.1.dev5-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file tigrbl_engine_pgsqli_wal-0.1.1.dev5.tar.gz.

File metadata

  • Download URL: tigrbl_engine_pgsqli_wal-0.1.1.dev5.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tigrbl_engine_pgsqli_wal-0.1.1.dev5.tar.gz
Algorithm Hash digest
SHA256 43ce957edcbcc090c7ff43a0adb0bdd9f366aa36ac9cf3f3a30c376ed49d8b66
MD5 ccad91c3fb584cbc9385a5927e9b7938
BLAKE2b-256 cea23221ac670e0c6a2abebc7ae16addb63f9acab880f1c5450ee6021e8a826b

See more details on using hashes here.

File details

Details for the file tigrbl_engine_pgsqli_wal-0.1.1.dev5-py3-none-any.whl.

File metadata

  • Download URL: tigrbl_engine_pgsqli_wal-0.1.1.dev5-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tigrbl_engine_pgsqli_wal-0.1.1.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 ec87736ccbb6860585ae9e35b890bf30bb0efbaf7fe5ae3a94b26be752cccb25
MD5 f816d0fe808ab726b98985b0eba61aaf
BLAKE2b-256 c94cf6087d9d2081929685cb22ede627f8ee03282e3a8c91a19f7931ee39dcd8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page