CMS / API
foldkit-cms-drizzle
foldkit-cms-drizzle — the server half of foldkit-cms.
It keeps an author's unpublished work in three tables beside the
application's own, and it is where the audience boundary is enforced, by a
foldkit-guard guard set: a principal its authors guards refuse is refused
entries, drafts and revisions outright, and sees of the content only the
rows the content's own Read rules show. Both are a binding's visible, so
they hold on every path a table is read by.
Publishing runs the application's own mutation with the draft's value, inside a transaction that also appends the revision and removes the draft, so a publish happened entirely or did not happen.
Namespaces
CmsServer | |
Transaction | Runs some work so that it happened entirely or did not. Drizzle's own transactions differ by driver, so the application says which this is. It fails as the… |
Functions
Values
sqliteSchema | The create table statements for SQLite, for a test or a first migration. |
Interfaces
CmsServerConfig | |
EntryRow | A row of cms_entries, as the server's rules see it. |
ImportItem | One import: content published already, such as a site's first pages or what another CMS held. as is whom it is imported as (an editor, so the create handler… |
ServedContent | A content type as the server holds it: its declaration, its Entity with the guards attached that its binding was bound from, the binding of its table, and… |