cf-modkit-db 0.2.12

ModKit database library
Documentation

ModKit DB

Database abstractions for CyberFabric / ModKit with optional SeaORM integration.

Overview

The cf-modkit-db crate provides:

  • Typed database configuration / connection options
  • SQLx backend support (SQLite / Postgres / MySQL via features)
  • SeaORM integration
  • Secure-by-default ORM wrapper (see secure module)
  • Per-module migration runner (see migration_runner module)

Features

  • pg, mysql, sqlite: enable SQLx backends

Security Model

Modules cannot access raw database connections. All database operations go through the SecureConn API which enforces tenant isolation at compile time. Migrations are provided as definitions and executed by the runtime with a privileged connection.

License

Licensed under Apache-2.0.