pub fn query(prepared: &str, params: &[&dyn SQLType]) -> Result<Vec<u8>>Expand description
Query a prepared statement with parameters.
This func is often used to read records from the database.
The query result is returned in json format.
Examples
use ws-sdk::database::sql::query
let ret = query("SELECT * FROM table;", &[])?;