whereNotExists method

  1. @override
QueryBuilderInterface<T> whereNotExists(
  1. String callback(
    1. QueryBuilderInterface query
    )
)
override

WHERE NOT EXISTS (subquery)

Implementation

@override
QueryBuilderInterface<T> whereNotExists(
  String Function(QueryBuilderInterface<dynamic> query) callback,
) {
  final query = QueryBuilder<dynamic>(connection, grammar, '');
  callback(query);
  _wheres.add({
    'type': 'NotExists',
    'query': query,
    'boolean': 'AND',
  });
  _whereBindings.addAll(query.bindings);
  return this;
}