Session class

Configuration of a session, containing the config, aliases, and globals to be used when executing a query.

Constructors

Session({String module = 'default', Map<String, String>? moduleAliases, Map<String, Object>? config, Map<String, dynamic>? globals})
Creates a new Session object with the given options.

Properties

config Map<String, Object>
final
globals Map<String, dynamic>
final
hashCode int
The hash code for this object.
no setterinherited
module String
final
moduleAliases Map<String, String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withConfig(Map<String, Object> config) Session
Returns a new Session with the specified client session configuration.
withGlobals(Map<String, dynamic> globals) Session
Returns a new Session with the specified global values.
withModuleAliases(Map<String, String> aliases) Session
Returns a new Session with the specified module aliases.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

defaults() Session
Creates a new Session with all options set to their defaults.