Function get_session

Source
pub fn get_session(model_bytes: Vec<u8>) -> Result<Session, SurrealError>
Expand description

Creates a session for a model.

§Arguments

  • model_bytes - The model bytes (usually extracted fromt the surml file)

§Returns

A session object.