john-kelly / elm-postgrest

Make PostgREST requests in Elm
109 stars 14 forks source link

where_ vs filter vs (equiv) #51

Closed john-kelly closed 6 years ago

john-kelly commented 7 years ago

leaning towards where_ -- current thoughts are leaning me towards having things as close to sql as possible.

here are some rough naming changes that would facilitate this (probably should make a meta issue for this at this point)

    PG.from Schema.school School
        |> PG.select .ipedsId
        |> PG.select .name
        |> PG.select .streetAddress
        |> PG.select .city
        |> PG.select .stateAbbrev
        |> PG.readMany "http://localhost:3000"
            { where_ = []
            , orderBy = []
            , limit = Nothing
            , offset = 0
            }