Expand description
§Responses
This module provides everything that you need to handle responses from the server.
§Example
This example shows how you can directly use tuples to get data from the server. Assume that the model is declared as
create model myspace.mymodel(username: string, password: string, null email: string)
use skytable::{Config, query};
let mut db = Config::new_default("username", "password").connect().unwrap();
let q = query!("select username, password, email FROM myspace.mymodel WHERE username = ?", "some_user");
let (username, password, email): (String, String, Option<String>) = db.query_parse(&q).unwrap();
Structs§
- A row returned by the server
Enums§
- A response returned by the server
- The value directly returned by the server without any additional type parsing and/or casting
Traits§
- Types that can be parsed from a
Response
- Any type that can be parsed from a
Value
. This is generally meant for use withFromResponse
.