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

File metadata

  • Download URL: tigrbl_engine_pgsqli_wal-0.1.1.dev20.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.dev20.tar.gz
Algorithm Hash digest
SHA256 4ccbace6d61508333b921ce305cd64f41d94acd708ad73469dfb1b7065843290
MD5 cf685cf008a6a4e62872f46bbc0cf882
BLAKE2b-256 2875ed7fc7fdb9654c470b3ad8471f14153734632318b33846821771ffc17c6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tigrbl_engine_pgsqli_wal-0.1.1.dev20-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.dev20-py3-none-any.whl
Algorithm Hash digest
SHA256 eb243182e3c26a4e3563497497ce8b63e309af1e4abcdb3fbc7501e39b32f844
MD5 1391b083bf568c03c4c62610bbfd8eaf
BLAKE2b-256 92ca54f9f4a30c621192e75d2fdd84d1438d9e2e2c752458a656739c26213b82

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