CMS / foldkit-cms-drizzle
Main exports
| Call | Meaning |
|---|---|
sqliteTables(), pgTables() | Three CMS Drizzle tables per dialect (sqliteSchema for SQL DDL). |
Transaction.statements, Transaction.drizzle | Transaction wrapper for SQLite single connections or async drivers. |
CmsServer.make(options) | Builds sources, queries, mutations, due, import, and bindings. |
cms.due(now, { as }) | Publishes due drafts; returns an Effect of { entry, error } per item. |
cms.import({ type, values, as, at?, entry? }) | Seeds published content through the publish path in one transaction. |
CmsServer.make takes { tables, content, transaction, policy, authors,
transitions?, allow?, now?, nameOf?, maxDraftSize? }, where each content
entry is { type, entity, binding, create, update }.