1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! # supabase-rust
//!
//! An unofficial Rust client for [Supabase](https://supabase.com).
//!
//! Provides typed access to Supabase Auth and PostgREST (database) APIs.
//!
//! ## Quick start
//!
//! ```rust,no_run
//! use supabase_rust::{Supabase, AuthResponse, Error};
//!
//! # async fn run() -> Result<(), Error> {
//! let client = Supabase::new(
//! Some("https://your-project.supabase.co"),
//! Some("your-api-key"),
//! None,
//! )?;
//!
//! // Sign in
//! let auth: AuthResponse = client
//! .sign_in_password("user@example.com", "password")
//! .await?;
//! println!("access token: {}", auth.access_token);
//!
//! // Query the database
//! let response = client
//! .from("todos")
//! .select("*")
//! .eq("user_id", &auth.access_token)
//! .execute()
//! .await?;
//! # Ok(())
//! # }
//! ```
use Client;
pub use ;
pub use QueryBuilder;
pub use Error;
/// The Supabase client. Entry point for all operations.