MssqlUntypedDatabase class final

A database with no generated table getters, for query-builder-only use.

Generated AppDatabase is the type users with a schema actually construct. This exists so MssqlAppDatabase.borrow / MssqlAppDatabase.open still have a concrete type when no generator output is in the program.

Inheritance

Constructors

MssqlUntypedDatabase(MssqlSession session, {MssqlClock clock = MssqlClock.serverUtc, bool owned = false, MssqlConnectionPool? pool, MssqlChangeHub? changes, MssqlCapabilityCache? capabilities, MssqlQueryObserver? observer, MssqlObserverOptions observerOptions = const MssqlObserverOptions()})

Properties

capabilities → MssqlCapabilityCache
Dialect resolution shared by every table query of this database.
finalinherited
changes → MssqlChangeHub
Committed writes visible to MssqlWatchStrategy.localWrites.
finalinherited
clock → MssqlClock
The clock timestamp columns use, inherited by transaction contexts.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
observer → MssqlQueryObserver?
ORM-level observer for compile / mapping / relation-load timings.
finalinherited
observerOptions → MssqlObserverOptions
finalinherited
owned → bool
Whether close should close session.
finalinherited
pool → MssqlConnectionPool?
The pool behind session, when this database was built with withPool.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
session → MssqlSession
The session every table query reads and writes through.
no setterinherited

Methods

close() → Future<void>
Closes the owned resource, if any.
inherited
contextFor<T>(MssqlTableBinding<T> binding, {MssqlDialect? dialect}) → MssqlQueryContext<T>
A MssqlQueryContext for the current session, for table queries that need one.
inherited
execute(MssqlStatement statement, {Duration? timeout, MssqlQueryOptions options = MssqlQueryOptions.defaults}) → Future<int>
Executes a built MssqlStatement (INSERT/UPDATE/DELETE) and returns the affected row count.
inherited
fork(MssqlSession session) → MssqlUntypedDatabase
Reconstructs this generated type over session, keeping clock.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(MssqlSelectQuery query, {MssqlDialect? dialect, Duration? timeout, MssqlQueryOptions options = MssqlQueryOptions.defaults}) → Future<List<MssqlRow>>
Executes a built MssqlSelectQuery through this database's session.
inherited
resolveDialect() → Future<MssqlDialect>
What the server is, asked once per capabilities cache.
inherited
toString() → String
A string representation of this object.
inherited
transaction<R>(Future<R> action(MssqlUntypedDatabase db)) → Future<R>
Runs action inside a transaction, with a new TSelf over the transaction's session.
inherited

Operators

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