@loanscope/db
v0.1.1
Published
SQLite + Drizzle persistence adapter for LoanScope: schema, migrations, repositories, mappers, custom-product service, persistent lender registry, and audit sessions.
Maintainers
Readme
@loanscope/db
SQLite + Drizzle ORM persistence adapter for LoanScope. Provides typed schema, migrations, repository adapters, per-entity domain↔row mappers, a CustomProductService for user-defined product sets, a PersistentLenderRegistry that mirrors the in-memory @loanscope/lenders interface against on-disk catalogs, and an AuditSessionRepository for reproducible evaluation records.
The CLI (@loanscope/cli) is the only package that wires this to user-facing commands; the engine and other core packages remain DB-free.
Install
pnpm add @loanscope/db @loanscope/domain @loanscope/lendersUsage
import { DatabaseManager } from "@loanscope/db";
const manager = DatabaseManager.open("./loanscope.db");
const stats = manager.stats();Changelog
See CHANGELOG.md for per-package release history.
Part of the LoanScope monorepo
See the repository root for the full list of @loanscope/* packages, the underwriting engine, and the CLI.
License
MIT
