Skip to main content

ccflow-db

ccflow models for database access

Build Status codecov License PyPI

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, parameterized SQLiteQueryModel, SQLiteKeyExistsModel, SQLiteTableWriteModel for append, replace, and primary-key upsert writes, SQLiteCheckpointStore, byte-oriented SQLiteCacheStore for use with ccflow-etl cache format models, and cache=sqlite / checkpoint=sqlite config 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 ccflow for callable model and publisher interfaces.
  • Depends on ccflow-etl for generic checkpoint records and cache format/result contracts.
  • Uses sqlite3 for 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)

Source distribution for ccflow-db 0.1.0
File Size Uploaded
ccflow_db-0.1.0.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ccflow-db 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page