tigrbl_engine_pgsqli_wal 0.1.1.dev23__tar.gz → 0.1.12.dev1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tigrbl_engine_pgsqli_wal-0.1.12.dev1/PKG-INFO +51 -0
- tigrbl_engine_pgsqli_wal-0.1.12.dev1/README.md +23 -0
- {tigrbl_engine_pgsqli_wal-0.1.1.dev23 → tigrbl_engine_pgsqli_wal-0.1.12.dev1}/pyproject.toml +4 -4
- tigrbl_engine_pgsqli_wal-0.1.12.dev1/src/tigrbl_engine_pgsqli_wal.egg-info/PKG-INFO +51 -0
- tigrbl_engine_pgsqli_wal-0.1.1.dev23/PKG-INFO +0 -69
- tigrbl_engine_pgsqli_wal-0.1.1.dev23/README.md +0 -41
- tigrbl_engine_pgsqli_wal-0.1.1.dev23/src/tigrbl_engine_pgsqli_wal.egg-info/PKG-INFO +0 -69
- {tigrbl_engine_pgsqli_wal-0.1.1.dev23 → tigrbl_engine_pgsqli_wal-0.1.12.dev1}/LICENSE +0 -0
- {tigrbl_engine_pgsqli_wal-0.1.1.dev23 → tigrbl_engine_pgsqli_wal-0.1.12.dev1}/setup.cfg +0 -0
- {tigrbl_engine_pgsqli_wal-0.1.1.dev23 → tigrbl_engine_pgsqli_wal-0.1.12.dev1}/src/tigrbl_engine_pgsqli_wal/__init__.py +0 -0
- {tigrbl_engine_pgsqli_wal-0.1.1.dev23 → tigrbl_engine_pgsqli_wal-0.1.12.dev1}/src/tigrbl_engine_pgsqli_wal/engines/postgres_wal_engine.py +0 -0
- {tigrbl_engine_pgsqli_wal-0.1.1.dev23 → tigrbl_engine_pgsqli_wal-0.1.12.dev1}/src/tigrbl_engine_pgsqli_wal/engines/sqlite_wal_engine.py +0 -0
- {tigrbl_engine_pgsqli_wal-0.1.1.dev23 → tigrbl_engine_pgsqli_wal-0.1.12.dev1}/src/tigrbl_engine_pgsqli_wal/sessions/postgres_wal_session.py +0 -0
- {tigrbl_engine_pgsqli_wal-0.1.1.dev23 → tigrbl_engine_pgsqli_wal-0.1.12.dev1}/src/tigrbl_engine_pgsqli_wal/sessions/sqlite_wal_session.py +0 -0
- {tigrbl_engine_pgsqli_wal-0.1.1.dev23 → tigrbl_engine_pgsqli_wal-0.1.12.dev1}/src/tigrbl_engine_pgsqli_wal.egg-info/SOURCES.txt +0 -0
- {tigrbl_engine_pgsqli_wal-0.1.1.dev23 → tigrbl_engine_pgsqli_wal-0.1.12.dev1}/src/tigrbl_engine_pgsqli_wal.egg-info/dependency_links.txt +0 -0
- {tigrbl_engine_pgsqli_wal-0.1.1.dev23 → tigrbl_engine_pgsqli_wal-0.1.12.dev1}/src/tigrbl_engine_pgsqli_wal.egg-info/entry_points.txt +0 -0
- {tigrbl_engine_pgsqli_wal-0.1.1.dev23 → tigrbl_engine_pgsqli_wal-0.1.12.dev1}/src/tigrbl_engine_pgsqli_wal.egg-info/requires.txt +0 -0
- {tigrbl_engine_pgsqli_wal-0.1.1.dev23 → tigrbl_engine_pgsqli_wal-0.1.12.dev1}/src/tigrbl_engine_pgsqli_wal.egg-info/top_level.txt +0 -0
- {tigrbl_engine_pgsqli_wal-0.1.1.dev23 → tigrbl_engine_pgsqli_wal-0.1.12.dev1}/tests/test_smoke.py +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tigrbl_engine_pgsqli_wal
|
|
3
|
+
Version: 0.1.12.dev1
|
|
4
|
+
Summary: PostgreSQL and SQLite WAL engine plugin for Tigrbl (auto-registered via entry points).
|
|
5
|
+
Author-email: Jacob Stewart <jacob@swarmauri.com>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/swarmauri/swarmauri-sdk
|
|
8
|
+
Project-URL: Repository, https://github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/experimental/tigrbl_engine_pgsqli_wal
|
|
9
|
+
Keywords: tigrbl,engine,plugin,postgres,sqlite,wal
|
|
10
|
+
Classifier: Development Status :: 1 - Planning
|
|
11
|
+
Classifier: Programming Language :: Python
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Environment :: Plugins
|
|
19
|
+
Classifier: Intended Audience :: Developers
|
|
20
|
+
Classifier: Topic :: Database
|
|
21
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
22
|
+
Requires-Python: <3.14,>=3.10
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: SQLAlchemy<3.0,>=2.0
|
|
26
|
+
Requires-Dist: psycopg[binary]<4.0,>=3.1
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
|
|
29
|
+
# tigrbl_engine_pgsqli_wal
|
|
30
|
+
|
|
31
|
+
This file is a package-local distribution entry point.
|
|
32
|
+
It is not the authoritative location for repository governance, current target status, current state reporting, certification claims, or release evidence.
|
|
33
|
+
|
|
34
|
+
## Canonical repository docs
|
|
35
|
+
|
|
36
|
+
- `README.md`
|
|
37
|
+
- `docs/README.md`
|
|
38
|
+
- `docs/conformance/CURRENT_TARGET.md`
|
|
39
|
+
- `docs/conformance/CURRENT_STATE.md`
|
|
40
|
+
- `docs/conformance/NEXT_STEPS.md`
|
|
41
|
+
- `docs/governance/DOC_POINTERS.md`
|
|
42
|
+
- `docs/developer/PACKAGE_CATALOG.md`
|
|
43
|
+
- `docs/developer/PACKAGE_LAYOUT.md`
|
|
44
|
+
|
|
45
|
+
## Package identity
|
|
46
|
+
|
|
47
|
+
- workspace path: `pkgs/engines/tigrbl_engine_pgsqli_wal`
|
|
48
|
+
- workspace class: engine package
|
|
49
|
+
- implementation layout: `src/tigrbl_engine_pgsqli_wal/`
|
|
50
|
+
|
|
51
|
+
Long-form repository documentation is governed from `docs/`.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# tigrbl_engine_pgsqli_wal
|
|
2
|
+
|
|
3
|
+
This file is a package-local distribution entry point.
|
|
4
|
+
It is not the authoritative location for repository governance, current target status, current state reporting, certification claims, or release evidence.
|
|
5
|
+
|
|
6
|
+
## Canonical repository docs
|
|
7
|
+
|
|
8
|
+
- `README.md`
|
|
9
|
+
- `docs/README.md`
|
|
10
|
+
- `docs/conformance/CURRENT_TARGET.md`
|
|
11
|
+
- `docs/conformance/CURRENT_STATE.md`
|
|
12
|
+
- `docs/conformance/NEXT_STEPS.md`
|
|
13
|
+
- `docs/governance/DOC_POINTERS.md`
|
|
14
|
+
- `docs/developer/PACKAGE_CATALOG.md`
|
|
15
|
+
- `docs/developer/PACKAGE_LAYOUT.md`
|
|
16
|
+
|
|
17
|
+
## Package identity
|
|
18
|
+
|
|
19
|
+
- workspace path: `pkgs/engines/tigrbl_engine_pgsqli_wal`
|
|
20
|
+
- workspace class: engine package
|
|
21
|
+
- implementation layout: `src/tigrbl_engine_pgsqli_wal/`
|
|
22
|
+
|
|
23
|
+
Long-form repository documentation is governed from `docs/`.
|
{tigrbl_engine_pgsqli_wal-0.1.1.dev23 → tigrbl_engine_pgsqli_wal-0.1.12.dev1}/pyproject.toml
RENAMED
|
@@ -4,21 +4,21 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tigrbl_engine_pgsqli_wal"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.12.dev1"
|
|
8
8
|
description = "PostgreSQL and SQLite WAL engine plugin for Tigrbl (auto-registered via entry points)."
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.10,<3.
|
|
11
|
-
license =
|
|
10
|
+
requires-python = ">=3.10,<3.14"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
12
|
authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
|
|
13
13
|
classifiers = [
|
|
14
14
|
"Development Status :: 1 - Planning",
|
|
15
|
-
"License :: OSI Approved :: Apache Software License",
|
|
16
15
|
"Programming Language :: Python",
|
|
17
16
|
"Programming Language :: Python :: 3",
|
|
18
17
|
"Programming Language :: Python :: 3 :: Only",
|
|
19
18
|
"Programming Language :: Python :: 3.10",
|
|
20
19
|
"Programming Language :: Python :: 3.11",
|
|
21
20
|
"Programming Language :: Python :: 3.12",
|
|
21
|
+
"Programming Language :: Python :: 3.13",
|
|
22
22
|
"Environment :: Plugins",
|
|
23
23
|
"Intended Audience :: Developers",
|
|
24
24
|
"Topic :: Database",
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tigrbl_engine_pgsqli_wal
|
|
3
|
+
Version: 0.1.12.dev1
|
|
4
|
+
Summary: PostgreSQL and SQLite WAL engine plugin for Tigrbl (auto-registered via entry points).
|
|
5
|
+
Author-email: Jacob Stewart <jacob@swarmauri.com>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/swarmauri/swarmauri-sdk
|
|
8
|
+
Project-URL: Repository, https://github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/experimental/tigrbl_engine_pgsqli_wal
|
|
9
|
+
Keywords: tigrbl,engine,plugin,postgres,sqlite,wal
|
|
10
|
+
Classifier: Development Status :: 1 - Planning
|
|
11
|
+
Classifier: Programming Language :: Python
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Environment :: Plugins
|
|
19
|
+
Classifier: Intended Audience :: Developers
|
|
20
|
+
Classifier: Topic :: Database
|
|
21
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
22
|
+
Requires-Python: <3.14,>=3.10
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: SQLAlchemy<3.0,>=2.0
|
|
26
|
+
Requires-Dist: psycopg[binary]<4.0,>=3.1
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
|
|
29
|
+
# tigrbl_engine_pgsqli_wal
|
|
30
|
+
|
|
31
|
+
This file is a package-local distribution entry point.
|
|
32
|
+
It is not the authoritative location for repository governance, current target status, current state reporting, certification claims, or release evidence.
|
|
33
|
+
|
|
34
|
+
## Canonical repository docs
|
|
35
|
+
|
|
36
|
+
- `README.md`
|
|
37
|
+
- `docs/README.md`
|
|
38
|
+
- `docs/conformance/CURRENT_TARGET.md`
|
|
39
|
+
- `docs/conformance/CURRENT_STATE.md`
|
|
40
|
+
- `docs/conformance/NEXT_STEPS.md`
|
|
41
|
+
- `docs/governance/DOC_POINTERS.md`
|
|
42
|
+
- `docs/developer/PACKAGE_CATALOG.md`
|
|
43
|
+
- `docs/developer/PACKAGE_LAYOUT.md`
|
|
44
|
+
|
|
45
|
+
## Package identity
|
|
46
|
+
|
|
47
|
+
- workspace path: `pkgs/engines/tigrbl_engine_pgsqli_wal`
|
|
48
|
+
- workspace class: engine package
|
|
49
|
+
- implementation layout: `src/tigrbl_engine_pgsqli_wal/`
|
|
50
|
+
|
|
51
|
+
Long-form repository documentation is governed from `docs/`.
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: tigrbl_engine_pgsqli_wal
|
|
3
|
-
Version: 0.1.1.dev23
|
|
4
|
-
Summary: PostgreSQL and SQLite WAL engine plugin for Tigrbl (auto-registered via entry points).
|
|
5
|
-
Author-email: Jacob Stewart <jacob@swarmauri.com>
|
|
6
|
-
License: Apache-2.0
|
|
7
|
-
Project-URL: Homepage, https://github.com/swarmauri/swarmauri-sdk
|
|
8
|
-
Project-URL: Repository, https://github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/experimental/tigrbl_engine_pgsqli_wal
|
|
9
|
-
Keywords: tigrbl,engine,plugin,postgres,sqlite,wal
|
|
10
|
-
Classifier: Development Status :: 1 - Planning
|
|
11
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
-
Classifier: Programming Language :: Python
|
|
13
|
-
Classifier: Programming Language :: Python :: 3
|
|
14
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
-
Classifier: Environment :: Plugins
|
|
19
|
-
Classifier: Intended Audience :: Developers
|
|
20
|
-
Classifier: Topic :: Database
|
|
21
|
-
Classifier: Topic :: Software Development :: Libraries
|
|
22
|
-
Requires-Python: <3.13,>=3.10
|
|
23
|
-
Description-Content-Type: text/markdown
|
|
24
|
-
License-File: LICENSE
|
|
25
|
-
Requires-Dist: SQLAlchemy<3.0,>=2.0
|
|
26
|
-
Requires-Dist: psycopg[binary]<4.0,>=3.1
|
|
27
|
-
Dynamic: license-file
|
|
28
|
-
|
|
29
|
-
# tigrbl_engine_pgsqli_wal
|
|
30
|
-
|
|
31
|
-
**Tigrbl engine plugin providing two engines:**
|
|
32
|
-
|
|
33
|
-
- `postgres_wal` — PostgreSQL via SQLAlchemy + psycopg3
|
|
34
|
-
- `sqlite_wal` — SQLite with WAL mode enabled via connection PRAGMAs
|
|
35
|
-
|
|
36
|
-
The package **auto-registers** with Tigrbl through the `tigrbl.engine` entry-point group.
|
|
37
|
-
|
|
38
|
-
## Install
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
pip install -e .
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
## Usage (inside Tigrbl)
|
|
45
|
-
|
|
46
|
-
```python
|
|
47
|
-
from tigrbl.engine import Engine
|
|
48
|
-
from tigrbl.engine.engine_spec import EngineSpec
|
|
49
|
-
|
|
50
|
-
# PostgreSQL (DSN or mapping)
|
|
51
|
-
spec = EngineSpec(kind="postgres_wal", dsn="postgresql+psycopg://user:pwd@host:5432/db?application_name=tigrbl")
|
|
52
|
-
|
|
53
|
-
# Or with mapping (the plugin builds the URL)
|
|
54
|
-
spec = EngineSpec(kind="postgres_wal", mapping={
|
|
55
|
-
"host": "127.0.0.1", "port": 5432, "user": "user", "pwd": "pwd", "db": "db",
|
|
56
|
-
"application_name": "tigrbl", "pool_size": 10, "max_overflow": 20
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
# SQLite (file path required for WAL)
|
|
60
|
-
spec = EngineSpec(kind="sqlite_wal", mapping={"path": "/path/to/db.sqlite", "pool_size": 5})
|
|
61
|
-
|
|
62
|
-
engine = Engine(spec)
|
|
63
|
-
with engine.session() as s:
|
|
64
|
-
s.execute("select 1").all()
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
> Notes:
|
|
68
|
-
> - PostgreSQL WAL is a server feature; this plugin tunes connection/session parameters only.
|
|
69
|
-
> - SQLite WAL is enabled via `PRAGMA journal_mode=WAL` on each new connection.
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# tigrbl_engine_pgsqli_wal
|
|
2
|
-
|
|
3
|
-
**Tigrbl engine plugin providing two engines:**
|
|
4
|
-
|
|
5
|
-
- `postgres_wal` — PostgreSQL via SQLAlchemy + psycopg3
|
|
6
|
-
- `sqlite_wal` — SQLite with WAL mode enabled via connection PRAGMAs
|
|
7
|
-
|
|
8
|
-
The package **auto-registers** with Tigrbl through the `tigrbl.engine` entry-point group.
|
|
9
|
-
|
|
10
|
-
## Install
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
pip install -e .
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Usage (inside Tigrbl)
|
|
17
|
-
|
|
18
|
-
```python
|
|
19
|
-
from tigrbl.engine import Engine
|
|
20
|
-
from tigrbl.engine.engine_spec import EngineSpec
|
|
21
|
-
|
|
22
|
-
# PostgreSQL (DSN or mapping)
|
|
23
|
-
spec = EngineSpec(kind="postgres_wal", dsn="postgresql+psycopg://user:pwd@host:5432/db?application_name=tigrbl")
|
|
24
|
-
|
|
25
|
-
# Or with mapping (the plugin builds the URL)
|
|
26
|
-
spec = EngineSpec(kind="postgres_wal", mapping={
|
|
27
|
-
"host": "127.0.0.1", "port": 5432, "user": "user", "pwd": "pwd", "db": "db",
|
|
28
|
-
"application_name": "tigrbl", "pool_size": 10, "max_overflow": 20
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
# SQLite (file path required for WAL)
|
|
32
|
-
spec = EngineSpec(kind="sqlite_wal", mapping={"path": "/path/to/db.sqlite", "pool_size": 5})
|
|
33
|
-
|
|
34
|
-
engine = Engine(spec)
|
|
35
|
-
with engine.session() as s:
|
|
36
|
-
s.execute("select 1").all()
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
> Notes:
|
|
40
|
-
> - PostgreSQL WAL is a server feature; this plugin tunes connection/session parameters only.
|
|
41
|
-
> - SQLite WAL is enabled via `PRAGMA journal_mode=WAL` on each new connection.
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: tigrbl_engine_pgsqli_wal
|
|
3
|
-
Version: 0.1.1.dev23
|
|
4
|
-
Summary: PostgreSQL and SQLite WAL engine plugin for Tigrbl (auto-registered via entry points).
|
|
5
|
-
Author-email: Jacob Stewart <jacob@swarmauri.com>
|
|
6
|
-
License: Apache-2.0
|
|
7
|
-
Project-URL: Homepage, https://github.com/swarmauri/swarmauri-sdk
|
|
8
|
-
Project-URL: Repository, https://github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/experimental/tigrbl_engine_pgsqli_wal
|
|
9
|
-
Keywords: tigrbl,engine,plugin,postgres,sqlite,wal
|
|
10
|
-
Classifier: Development Status :: 1 - Planning
|
|
11
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
-
Classifier: Programming Language :: Python
|
|
13
|
-
Classifier: Programming Language :: Python :: 3
|
|
14
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
-
Classifier: Environment :: Plugins
|
|
19
|
-
Classifier: Intended Audience :: Developers
|
|
20
|
-
Classifier: Topic :: Database
|
|
21
|
-
Classifier: Topic :: Software Development :: Libraries
|
|
22
|
-
Requires-Python: <3.13,>=3.10
|
|
23
|
-
Description-Content-Type: text/markdown
|
|
24
|
-
License-File: LICENSE
|
|
25
|
-
Requires-Dist: SQLAlchemy<3.0,>=2.0
|
|
26
|
-
Requires-Dist: psycopg[binary]<4.0,>=3.1
|
|
27
|
-
Dynamic: license-file
|
|
28
|
-
|
|
29
|
-
# tigrbl_engine_pgsqli_wal
|
|
30
|
-
|
|
31
|
-
**Tigrbl engine plugin providing two engines:**
|
|
32
|
-
|
|
33
|
-
- `postgres_wal` — PostgreSQL via SQLAlchemy + psycopg3
|
|
34
|
-
- `sqlite_wal` — SQLite with WAL mode enabled via connection PRAGMAs
|
|
35
|
-
|
|
36
|
-
The package **auto-registers** with Tigrbl through the `tigrbl.engine` entry-point group.
|
|
37
|
-
|
|
38
|
-
## Install
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
pip install -e .
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
## Usage (inside Tigrbl)
|
|
45
|
-
|
|
46
|
-
```python
|
|
47
|
-
from tigrbl.engine import Engine
|
|
48
|
-
from tigrbl.engine.engine_spec import EngineSpec
|
|
49
|
-
|
|
50
|
-
# PostgreSQL (DSN or mapping)
|
|
51
|
-
spec = EngineSpec(kind="postgres_wal", dsn="postgresql+psycopg://user:pwd@host:5432/db?application_name=tigrbl")
|
|
52
|
-
|
|
53
|
-
# Or with mapping (the plugin builds the URL)
|
|
54
|
-
spec = EngineSpec(kind="postgres_wal", mapping={
|
|
55
|
-
"host": "127.0.0.1", "port": 5432, "user": "user", "pwd": "pwd", "db": "db",
|
|
56
|
-
"application_name": "tigrbl", "pool_size": 10, "max_overflow": 20
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
# SQLite (file path required for WAL)
|
|
60
|
-
spec = EngineSpec(kind="sqlite_wal", mapping={"path": "/path/to/db.sqlite", "pool_size": 5})
|
|
61
|
-
|
|
62
|
-
engine = Engine(spec)
|
|
63
|
-
with engine.session() as s:
|
|
64
|
-
s.execute("select 1").all()
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
> Notes:
|
|
68
|
-
> - PostgreSQL WAL is a server feature; this plugin tunes connection/session parameters only.
|
|
69
|
-
> - SQLite WAL is enabled via `PRAGMA journal_mode=WAL` on each new connection.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tigrbl_engine_pgsqli_wal-0.1.1.dev23 → tigrbl_engine_pgsqli_wal-0.1.12.dev1}/tests/test_smoke.py
RENAMED
|
File without changes
|