Represents an active database session Sessions provide user context and are required for executing queries. Unlike SQLite, GraphLite uses sessions for user authentication, permissions, and transaction isolation. # Examples ```no_run # use graphlite_sdk::GraphLite; # let db = GraphLite::open("./mydb")?; let session = db.session("admin")?; let result = session.query("MATCH (n) RETURN n")?; # Ok::
| 126 | /// # Ok::<(), graphlite_sdk::Error>(()) |
| 127 | /// ``` |
| 128 | pub struct Session { |
| 129 | id: String, |
| 130 | coordinator: Arc<QueryCoordinator>, |
| 131 | username: String, |
| 132 | } |
| 133 | |
| 134 | impl Session { |
| 135 | /// Get the session ID |