flyp-inc/etabase/2.0.0

Rerouted (renamed, needs approval). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/Flyp-Inc/etabase.

What we checked: The repo moved to github.com/Flyp-Inc/etabase and tag 2.0.0 is there; its commit e27d168a55a5 is from 2024-08-30 11:03 UTC, after the version was published (2024-08-22 10:23 UTC); elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip's SHA-1 is not the published one and nothing else confirms its contents.

We could not verify this copy against what was published, so the Lamdera compiler asks before using it (y/n). Without a terminal, as in CI, it stops with an error unless approved:

  • lamdera make --auto-approve-package-rerouting approves rerouted versions for that run,
  • LAMDERA_AUTO_APPROVE_PACKAGE_REROUTING=1 does the same for every run in that environment,
  • LAMDERA_CACHE=off skips the Lamdera package server altogether: packages come from package.elm-lang.org and GitHub only, as with elm, and a rerouted version then fails to download.

Details · package.elm-lang.org's zip: https://github.com/flyp-inc/etabase/zipball/2.0.0/

Col

Represents a "column" semantic, with support for tracking changes over time.

Type

type Col a

Opaque type representing a "column".

Create, update

init : Posix -> a -> Col a

Create a new Col a.

cons : Posix -> a -> Col a -> Col a

Update a value in a Col a, tracking changes.

touch : Posix -> Col a -> Col a

Update a Col a's timestamp without adding a record to its history.

Access values

value : Col a -> a

Get a value from a Col a.

updatedAt : Col a -> Posix

Get a Col a's timestamp`.

history : Col a -> List ( Posix, a )

Get all changes on a Col a, in order from newest to oldest.

Aggregation

toUpdatedAt : List (a -> Posix) -> Posix -> a -> Posix

For a list of Col values on a record a, calculate when the record was last updated.