ccflow-db
ccflow models for database access
Overview
ccflow-db provides public, domain-neutral database callable models and publishers for ccflow workflows. It owns connection configuration, SQL execution, tabular reads, bulk writes, transaction handling, upsert/merge patterns, database-backed checkpoint/cache adapters, and Hydra config groups exposed through the lerna plugin entry point.
It should stay generic across domains and database backends. Domain schemas, provider-specific assumptions, and application deployment conventions belong outside this package.
Current Status
- Implemented: package scaffold, version metadata,
SQLiteConfig, parameterizedSQLiteQueryModel,SQLiteKeyExistsModel,SQLiteTableWriteModelfor append, replace, and primary-key upsert writes,SQLiteCheckpointStore, byte-orientedSQLiteCacheStorefor use withccflow-etlcache format models, andcache=sqlite/checkpoint=sqliteconfig groups. - Partial: SQLite uses the Python standard library as the first local backend; broad SQLAlchemy-style engine/session management and backend extras remain future work.
- Missing: dataframe reads, chunked writes, dry-run SQL rendering, merge helpers beyond SQLite upsert, and non-SQLite integration tests.
Dependency Contract
- Depends on
ccflowfor callable model and publisher interfaces. - Depends on
ccflow-etlfor generic checkpoint records and cache format/result contracts. - Uses
sqlite3for the first local backend and may add a broader abstraction layer such as SQLAlchemy plus optional backend extras later. - Must not depend on finance packages or application-specific packages.
Test Convention
Default tests should use SQLite or in-memory database fixtures. Backend-specific tests such as Postgres should be opt-in and skipped unless the required environment variables are set.
[!NOTE] This library was generated using copier from the Base Python Project Template repository.
Metadata
Release files for ccflow-db 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ccflow_db-0.1.0.tar.gz | 12.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ccflow_db-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.1 kB
Release files / ccflow_db-0.1.0.tar.gz
| Download URL | ccflow_db-0.1.0.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d9c43d1288d5ff18628f261fc8735de64dcdadc1ac77dc481c2b54621cfb535
|
|
BLAKE2b-256 checksum How to use checksums |
8866ba84dbe6414978a2de11da9b89857d9e22be16aa7e676038f12da6559ba7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / ccflow_db-0.1.0-py3-none-any.whl
| Download URL | ccflow_db-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
004d30524abf86e607f06ee8378d26c5b896ab95c1879d5de73d46dbe69fbaa9
|
|
BLAKE2b-256 checksum How to use checksums |
a8d979621640baec4a104d15d110b68b6a91a0993bb6ec75d63878a7652fc02e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|