pub fn get<T, R>(conn: &Connection, entity: &T) -> Result<R, Error>
👎Deprecated since 0.3.7: Renamed to
fetch
. Please use fetch
function instead.Expand description
§get
Retrieves a single record from the database based on a specific condition.
§Deprecated
This function has been renamed to fetch
. Please use fetch
instead.
§Parameters
conn
: SQLite database connectionentity
: Query parameter object (must implement SqlQuery, FromRow, and SqlParams traits)
§Return Value
Result<T, Error>
: On success, returns the queried record; on failure, returns Error