// QueryDelete deletes all records matching the query.
// note: you must provide a function that will select the relevant Key fields needed for deletion
QueryDelete deletes all records matching the query.
note: you must provide a function that will select the relevant Key fields needed for deletion
// QueryDelete deletes all records matching the query . // note : you must provide a function that will select the relevant Key fields needed for deletion
func (s *Builder) QueryDelete(ctx context.Context, keyFn KeyExtractor) error {
	if s.err != nil {
		return s.err
	}
	if s.client == nil {
		return ErrClientNotSet
	}
	query, _ := s.ToQuery()
	return s.client.QueryDeleter(ctx, s.table, &query, keyFn)
}
func ( s * Builder ) QueryDelete ( ctx context . Context , keyFn KeyExtractor ) error { if s . err != nil { return s . err } if s . client == nil { return ErrClientNotSet } query , _ := s . ToQuery ( ) return s . client . QueryDeleter ( ctx , s . table , & query , keyFn ) }
QueryDelete deletes all records matching the query.
QueryDelete deletes all records matching the query .