postgrest_query/client.rs
1use crate::builder::PostgresQueryBuilder;
2
3pub struct PostgrestClient {
4 pub url: String
5}
6
7impl PostgrestClient {
8 pub fn new(url: String) -> PostgrestClient {
9 PostgrestClient { url }
10 }
11
12 pub fn from(&self, relation: &str) {
13 let url = format!("{}/{}", self.url, relation);
14 // This will just return a new PostgresQueryBuilder
15 }
16}