File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change 7
7
//! ## Usage
8
8
//!
9
9
//! Simple example:
10
- //! ```rust,no_run
10
+ //! ```ignore
11
11
//! use postgrest::Postgrest;
12
12
//!
13
13
//! let client = Postgrest::new("https://your-postgrest-endpoint");
18
18
//! .await?;
19
19
//! let body = resp
20
20
//! .text()
21
- //! .await() ;
21
+ //! .await? ;
22
22
//! ```
23
23
//!
24
24
//! Using filters:
25
- //! ```rust,no_run
26
- //! # use postgrest::Postgrest;
27
- //! # let client = Postgrest::new("https://your-postgrest-endpoint");
25
+ //! ```ignore
28
26
//! let resp = client
29
27
//! .from("your_table")
30
28
//! .eq("country", "Germany")
35
33
//! ```
36
34
//!
37
35
//! Updating a table:
38
- //! ```rust,no_run
39
- //! # use postgrest::Postgrest;
40
- //! # let client = Postgrest::new("https://your-postgrest-endpoint");
36
+ //! ```ignore
41
37
//! let resp = client
42
38
//! .from("your_table")
43
39
//! .eq("username", "soedirgo")
47
43
//! ```
48
44
//!
49
45
//! Executing stored procedures:
50
- //! ```rust,no_run
51
- //! # use postgrest::Postgrest;
52
- //! # let client = Postgrest::new("https://your-postgrest-endpoint");
46
+ //! ```ignore
53
47
//! let resp = client
54
48
//! .rpc("add", "{\"a\": 1, \"b\": 2}")
55
49
//! .execute()
You can’t perform that action at this time.
0 commit comments