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

File metadata

  • Download URL: tigrbl_engine_pgsqli_wal-0.1.1.dev23.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.dev23.tar.gz
Algorithm Hash digest
SHA256 868f74c684bf9d6d4fb7de303b558103d0fee478e4405e34807194d3d337fa77
MD5 ca01ce9f9f7385d831531c297ca3b038
BLAKE2b-256 0d5eaa99909b866b90ed00f92bc9fd23d95571f75e580261035e2b15f605efb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tigrbl_engine_pgsqli_wal-0.1.1.dev23-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.dev23-py3-none-any.whl
Algorithm Hash digest
SHA256 110915f3e14ec15cbcebccd9b3fbaa76ac29d321dac42968f7af48d140041efc
MD5 85e926b1c5e91d78b0e088e005d5b7bc
BLAKE2b-256 f487dfbe534464c8608c75b551fbdc8d65005aaccb6b2bc0bbe78213ecf95159

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