pub struct TablesApi<'a> { /* private fields */ }Expand description
Tables (uploads) API
Implementations§
Source§impl<'a> TablesApi<'a>
impl<'a> TablesApi<'a>
Sourcepub async fn create(
&self,
request: &CreateTableRequest,
) -> Result<CreateTableResponse>
pub async fn create( &self, request: &CreateTableRequest, ) -> Result<CreateTableResponse>
Create a new table
Sourcepub async fn upload_csv(
&self,
request: &UploadCsvRequest,
) -> Result<UploadCsvResponse>
pub async fn upload_csv( &self, request: &UploadCsvRequest, ) -> Result<UploadCsvResponse>
Upload CSV data to create or update a table
Sourcepub async fn list(&self) -> Result<ListTablesResponse>
pub async fn list(&self) -> Result<ListTablesResponse>
List all tables
Sourcepub async fn list_with_options(
&self,
options: &ListTablesOptions,
) -> Result<ListTablesResponse>
pub async fn list_with_options( &self, options: &ListTablesOptions, ) -> Result<ListTablesResponse>
List tables with options
Sourcepub async fn get(&self, namespace: &str, table_name: &str) -> Result<Table>
pub async fn get(&self, namespace: &str, table_name: &str) -> Result<Table>
Get a specific table
Sourcepub async fn insert(
&self,
namespace: &str,
table_name: &str,
data: &Value,
) -> Result<InsertResponse>
pub async fn insert( &self, namespace: &str, table_name: &str, data: &Value, ) -> Result<InsertResponse>
Insert rows into a table
Data should be a JSON array of objects, where each object represents a row.
Auto Trait Implementations§
impl<'a> Freeze for TablesApi<'a>
impl<'a> !RefUnwindSafe for TablesApi<'a>
impl<'a> Send for TablesApi<'a>
impl<'a> Sync for TablesApi<'a>
impl<'a> Unpin for TablesApi<'a>
impl<'a> !UnwindSafe for TablesApi<'a>
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