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.dev4.tar.gz (9.3 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.dev4-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tigrbl_engine_pgsqli_wal-0.1.1.dev4.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.dev4.tar.gz
Algorithm Hash digest
SHA256 6df6fd8f03be5b321bcde2871674b07e73ba53f5d8367d1454e0978481d14756
MD5 d1e637f76d80206bb04a2004db07e806
BLAKE2b-256 7ddcc4042e4f488cfccbeb7e5c87d5503117c89934deb047e25a44d9e1ceb25b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tigrbl_engine_pgsqli_wal-0.1.1.dev4-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 d7166045f29ffa433481ee75077feee854a06415b16f58acdcd7b72de606c1e7
MD5 e82d3e7afeca8f66b0785489bb8dc726
BLAKE2b-256 ad042926c15b3db54756dff52b927dd49d68aafc4bacfc5298f9a4da3bc64177

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