pub struct Connection { /* private fields */ }Expand description
A connection to a ScopeDB instance.
Implementations§
Source§impl Connection
impl Connection
Sourcepub fn connect(endpoint: &str) -> Self
pub fn connect(endpoint: &str) -> Self
Connect to a ScopeDB instance. The endpoint is the base URL of the instance.
Sourcepub async fn insert(
&self,
database: &str,
schema: &str,
table: &str,
data: &[RecordBatch],
) -> Result<(), Error>
pub async fn insert( &self, database: &str, schema: &str, table: &str, data: &[RecordBatch], ) -> Result<(), Error>
Sourcepub async fn insert_with_transform(
&self,
database: &str,
schema: &str,
table: &str,
data: &[RecordBatch],
transform: &str,
) -> Result<(), Error>
pub async fn insert_with_transform( &self, database: &str, schema: &str, table: &str, data: &[RecordBatch], transform: &str, ) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Connection
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
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