Enum libsql_client::QueryResult
source · pub enum QueryResult {
Error((String, Meta)),
Success((ResultSet, Meta)),
}
Expand description
Result of a database request - a set of rows or an error
Variants§
Implementations§
source§impl QueryResult
impl QueryResult
sourcepub fn into_result_set(self) -> Result<ResultSet>
pub fn into_result_set(self) -> Result<ResultSet>
Transforms a query result into anyhow::Result<ResultSet>
for convenient chaining with the ?
iterator.
Trait Implementations§
source§impl Clone for QueryResult
impl Clone for QueryResult
source§fn clone(&self) -> QueryResult
fn clone(&self) -> QueryResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more