MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / Session

Class Session

sdk-rust/src/connection.rs:128–132  ·  view source on GitHub ↗

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::

Source from the content-addressed store, hash-verified

126/// # Ok::<(), graphlite_sdk::Error>(())
127/// ```
128pub struct Session {
129 id: String,
130 coordinator: Arc<QueryCoordinator>,
131 username: String,
132}
133
134impl Session {
135 /// Get the session ID

Callers 1

sessionMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected