feat: add PostgreSQL storage provider for LawNet BFF #57
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "push-zutnwvyyvypw"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements the PostgreSQL storage provider for the LawNet BFF, adding an environment-variable-driven storage provider switch (
BFF_STORAGE=filesystem|postgres).This PR has 2 commits:
lawnet.*→app.*(generic schema, not LawNet-specific)Changes
appschema (judgments, corams, catchwords, artifacts, artifact_data, citations) with indexes; mergedjudgment_sourcescolumns directly intojudgmentsLawnetStoreinterface usingpg.Poolwith parameterized queriesgetLawnetStore()readsBFF_STORAGEenv var;"postgres"creates aPoolfromDATABASE_URL, otherwise falls back toLawnetFileSystemStoreBFF_STORAGEtocompose.yamland.env.exampleDATABASE_URLis absentVerification
tsc --noEmit— cleaneslint— cleanprettier --check— cleandocker compose configpassesCloses #49
Pull request closed