Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
soedirgo committed May 24, 2020
1 parent 3c2ed33 commit 78629ee
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//! ## Usage
//!
//! Simple example:
//! ```rust,no_run
//! ```ignore
//! use postgrest::Postgrest;
//!
//! let client = Postgrest::new("https://your-postgrest-endpoint");
Expand All @@ -18,13 +18,11 @@
//! .await?;
//! let body = resp
//! .text()
//! .await();
//! .await?;
//! ```
//!
//! Using filters:
//! ```rust,no_run
//! # use postgrest::Postgrest;
//! # let client = Postgrest::new("https://your-postgrest-endpoint");
//! ```ignore
//! let resp = client
//! .from("your_table")
//! .eq("country", "Germany")
Expand All @@ -35,9 +33,7 @@
//! ```
//!
//! Updating a table:
//! ```rust,no_run
//! # use postgrest::Postgrest;
//! # let client = Postgrest::new("https://your-postgrest-endpoint");
//! ```ignore
//! let resp = client
//! .from("your_table")
//! .eq("username", "soedirgo")
Expand All @@ -47,9 +43,7 @@
//! ```
//!
//! Executing stored procedures:
//! ```rust,no_run
//! # use postgrest::Postgrest;
//! # let client = Postgrest::new("https://your-postgrest-endpoint");
//! ```ignore
//! let resp = client
//! .rpc("add", "{\"a\": 1, \"b\": 2}")
//! .execute()
Expand Down

0 comments on commit 78629ee

Please sign in to comment.