maca/postgrest-admin-preview/11.3.2

NOTE: the latest version is 15.0.0

Rerouted (regenerated, verified). Same repository and tag, but GitHub now builds the zip with different bytes, so it no longer matches the SHA-1 package.elm-lang.org recorded. The Lamdera package server serves a copy recovered from https://github.com/maca/postgrest-admin-preview.

What we checked: Rebuilt with git archive from commit 9f2b9c2aec40 of https://github.com/maca/postgrest-admin-preview (zip prefix maca-postgrest-admin-preview-9f2b9c2/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 9b765247fde25526743959f6c72a97b56de08137.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/maca/postgrest-admin-preview/zipball/11.3.2/

PostgRestAdmin.Record

Record

type alias Record =
Record

A Record.

fromTable : Table -> Record

Create a blank record from a Table.

Record Values

type Value
= RFloat Float
| RInt Int
| RString String
| RBool Bool
| RPosix Posix
| RValue Value
value : String -> Record -> Maybe Value

Properties

id : Record -> Maybe String

Get the Record id.

location : Record -> Maybe String

Obtain the location for a record

tableName record == "posts"
-- True
id record == Just 1
-- True
location record == Just "/posts?id=eq.1"
-- True
label : Record -> Maybe String

Obtain a label identifying the record, could be the title or name attribute.

Errors

errors : Record -> Dict String (Maybe String)

Get the Record errors after saving.

hasErrors : Record -> Bool

Check if the Record has errors after saving.

Decode/Encode

decoder : Table -> Decoder Record

A decoder for a Record.

encode : Record -> Value

Encode a Record.

Table

getTable : Record -> Table

Get the Table for the Record.

tableName : Record -> String

Get the Record Table name.