Skip to content

Commit

Permalink
Added KeyConditionIN and KeyConditionNotIN.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpassos committed Oct 3, 2021
1 parent cb92e10 commit 27e4535
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/src/bones_api_condition_sql.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ class ConditionSQLEncoder extends ConditionEncoder {
});
}

FutureOr<String> keyToSQL(KeyCondition<dynamic> c, EncodingContext context) {
FutureOr<String> keyToSQL(
KeyCondition<dynamic, dynamic> c, EncodingContext context) {
var keys = c.keys;

if (keys.first is! ConditionKeyField) {
Expand All @@ -110,7 +111,7 @@ class ConditionSQLEncoder extends ConditionEncoder {
}

String keyFieldToSQL(
KeyCondition<dynamic> c,
KeyCondition<dynamic, dynamic> c,
EncodingContext context,
) {
var entityAlias = context.resolveEntityAlias(context.entityName);
Expand All @@ -121,7 +122,7 @@ class ConditionSQLEncoder extends ConditionEncoder {
}

FutureOr<String> keyFieldReferenceToSQL(
KeyCondition<dynamic> c,
KeyCondition<dynamic, dynamic> c,
EncodingContext context,
) {
var schemeProvider = this.schemeProvider;
Expand Down

0 comments on commit 27e4535

Please sign in to comment.