RepositoryHelpersMixin<T extends OrmEntity> mixin

Mixin that provides internal helper methods for repository operations.

Superclass constraints
Mixin applications

Properties

attachRuntimeMetadata → void Function(Object? model)
no setterinherited
codecs ValueCodecRegistry
no setterinherited
definition ModelDefinition<T>
no setterinherited
describeMutation StatementPreview Function(MutationPlan plan)
no setterinherited
driverName String
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
queryContext QueryContext?
no setterinherited
runMutation Future<MutationResult> Function(MutationPlan plan)
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyWhere(Query<T> query, Object? where, {String feature = 'where'}) Query<T>
Applies a repository-style where input to query.
fieldFor(String name) FieldDefinition
jsonUpdatesFor(T model, JsonUpdateBuilder<T>? builder) List<JsonUpdateClause>
mapResult(List<T> original, MutationResult result, bool returning) List<T>
mapResultWithInputs(List<T> original, List<Map<String, Object?>> inputMaps, MutationResult result, bool returning, {bool canCreateFromInputs = true}) List<T>
Maps mutation results back to model instances.
mutationRowFromModel(T model, {JsonUpdateBuilder<T>? jsonUpdates}) MutationRow
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requireKeys(List<Map<String, Object?>> keys) → void
requireModels(List<T> models, String method) → void
resolveColumnName(String input) String
resolveColumnNames(List<String>? fields) List<String>?
toString() String
A string representation of this object.
inherited

Operators

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