Scope SQL verification to main PRs and render deployment configuration
Bedrock SQL storage / sql (pull_request) Has been cancelled

This commit is contained in:
2026-11-30 00:26:15 +08:00
parent 807a02e081
commit 632c3a8882
5 changed files with 94 additions and 1 deletions
+2
View File
@@ -24,3 +24,5 @@ The database must already exist for PostgreSQL and MySQL. Bedrock creates its ow
Applications connect with `db_connection::connect`. A write batch commits at one new revision if its expected deployment revision still matches. Reads can target the primary or prefer replicas. Use an explicit revision to require that snapshot and fall back when replicas have fallen behind. A tombstone removes a document from subsequent snapshots while preserving earlier revisions. JSON null remains a stored value.
For MySQL, use `Connection::mysql_writer` to acquire, renew or release a writer lease. An active lease blocks ordinary writes. Use `commit_with_lease` while holding it. `delete_deployment` requires an active lease, deletes that deployment's documents and permanently retires its ID in the database.
See [deployment configuration](deploy/README.md) for the PostgreSQL configuration renderer and deployment-only variables.