dillonkearns/elm-pages/12.2.1

NOTE: the latest version is 12.3.0

Pages.Internal.DbRequest

Exposed for internal use only (used in generated code).

Backs the elm-pages CLI-generated Pages.Db and MigrateChain modules. Each function targets exactly one elm-pages-internal://db-* runtime handler — the endpoint name is hardcoded so callers cannot pivot to non-DB internal routes.

{ body : Body
, decoder : Decoder a
}
-> BackendTask FatalError a

Read the on-disk db.bin metadata + payload for a connection. Targets elm-pages-internal://db-read-meta.

{ headers : List ( String, String )
, body : Body
, decoder : Decoder a
}
-> BackendTask FatalError a

Write a new db.bin payload. Targets elm-pages-internal://db-write.

{ body : Body
, decoder : Decoder a
}
-> BackendTask FatalError a

Acquire the write lock for a connection. Targets elm-pages-internal://db-lock-acquire.

{ body : Body
, decoder : Decoder a
}
-> BackendTask FatalError a

Release a previously-acquired write lock. Targets elm-pages-internal://db-lock-release.

{ body : Body
, decoder : Decoder a
}
-> BackendTask FatalError a

Read raw db.bin during a migration script. Targets elm-pages-internal://db-migrate-read.

{ headers : List ( String, String )
, body : Body
, decoder : Decoder a
}
-> BackendTask FatalError a

Write a migrated db.bin. Targets elm-pages-internal://db-migrate-write. Used both by Pages.Db (with connection headers) and by MigrateChain (with no headers).