pub struct Database { /* private fields */ }
Expand description
Database client for REST API operations
Implementations§
Source§impl Database
impl Database
Sourcepub fn new(
config: Arc<SupabaseConfig>,
http_client: Arc<HttpClient>,
) -> Result<Self>
pub fn new( config: Arc<SupabaseConfig>, http_client: Arc<HttpClient>, ) -> Result<Self>
Create a new Database instance
Sourcepub fn from(&self, table: &str) -> QueryBuilder
pub fn from(&self, table: &str) -> QueryBuilder
Start a query from a table
Sourcepub fn insert(&self, table: &str) -> InsertBuilder
pub fn insert(&self, table: &str) -> InsertBuilder
Insert data into a table
Sourcepub fn update(&self, table: &str) -> UpdateBuilder
pub fn update(&self, table: &str) -> UpdateBuilder
Update data in a table
Sourcepub fn delete(&self, table: &str) -> DeleteBuilder
pub fn delete(&self, table: &str) -> DeleteBuilder
Delete data from a table
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Database
impl !RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl !UnwindSafe for Database
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more