Introduce cdk-sql-common

The primary purpose of this new crate is to have a common and shared codebase
for all SQL storage systems. It would force us to write standard SQL using best
practices for all databases.

This crate has been extracted from #878
This commit is contained in:
Cesar Rodas
2025-07-15 12:17:25 +02:00
parent 0b79121de4
commit 349c773406
78 changed files with 4507 additions and 3870 deletions

View File

@@ -70,7 +70,7 @@ CREATE TABLE IF NOT EXISTS "proof" (
amount INTEGER NOT NULL,
keyset_id TEXT NOT NULL, -- no FK constraint here
secret TEXT NOT NULL,
c BLOB NOT NULL,
c BLOBNOT NULL,
witness TEXT,
state TEXT CHECK (state IN ('SPENT', 'PENDING', 'UNSPENT', 'RESERVED', 'UNKNOWN')) NOT NULL,
quote_id TEXT,