Skip to content

v0.3.0

Compare
Choose a tag to compare
@marcelobarreto marcelobarreto released this 05 May 16:14
· 10 commits to master since this release
7d780dd

Added more methods to the PostgREST DSL. Things like a full query already works:

db.from('todos').select(:id, :title).owners(:name, as: :owner).workers(:name, as: :worker).in(id: [112, 113]).order(id: :asc).execute

#<Postgrest::Responses::GetResponse GET OK data=[{"id"=>112, "title"=>"Eat something", "owner"=>{"name"=>"Marcelo"}, "worker"=>{"name"=>"Marcelo"}}, {"id"=>113, "title"=>"Go to the gym", "owner"=>{"name"=>"Marcelo"}, "worker"=>nil}]>