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.dev19.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.dev19-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.dev19.tar.gz.

File metadata

  • Download URL: tigrbl_engine_pgsqli_wal-0.1.1.dev19.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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.dev19.tar.gz
Algorithm Hash digest
SHA256 6570a4a7b35e8fa17e08a4efa31800f63982de952373d9d1fb4234acc4e436dc
MD5 781b660499b3d768f02f0f4fae24e76b
BLAKE2b-256 edf2dfe75ca7fd92efdc0e0741c3882527effc5767d0cdb60003ed24a0fc208d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tigrbl_engine_pgsqli_wal-0.1.1.dev19-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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.dev19-py3-none-any.whl
Algorithm Hash digest
SHA256 40377fa73cec442c105cf8ade6c08ee257573f99e2063c82c573d2ad0737a0f3
MD5 39725c2d0184e08b6b2eb44aed05c4d8
BLAKE2b-256 62726e0d095c1c4027210485f53a1eb804d1648d0eb27db9a68b0331d60d08d9

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