Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
chore: add readme for alias and join (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ponytailer authored Oct 7, 2022
1 parent 9d75db5 commit b696edb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ postgresClient.from<Message>("messages")
.select()
.neq(Message::content, "abc")
.execute()

// select item_id AS itemId, age from messages...
postgresClient.from<Message>("messages")
.select("itemId:item_id,age")
.neq(Message::content, "abc")
.execute()

// https://postgrest.org/en/stable/api.html#embedding-top-level-filter
postgresClient.from<Message>("messages")
.select("name,age,company(name, address, phone)")
.neq(Message::content, "abc")
.execute()
```

#### rpc<T>
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/io/supabase/postgrest/PostgrestClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import io.supabase.postgrest.json.PostgrestJsonConverter
import java.net.URI

/**
* Main client and entry point for using PostgREST client.
* Main client and entry point for using PostgresREST client.
*
* @param[uri] URL of the PostgREST endpoint.
* @param[uri] URL of the PostgresREST endpoint.
* @param[headers] Custom headers.
* @param[schema] Postgres schema to switch to.
* @param[httpClient] Implementation of the [PostgrestHttpClient] interface.
Expand Down

0 comments on commit b696edb

Please sign in to comment.