func (f *filterBuilder) generateWhereClauses() (clause string, args []interface{}) {
	clause, args = f.andClauses(f.whereClauses)

	if f.subFilter != nil {
		c, a := f.subFilter.generateWhereClauses()
		if c != "" {
			clause = f.getSubFilterClause(clause, c)
			if len(a) > 0 {
				args = append(args, a...)
			}
		}
	}

	return
}
// generateWhereClauses generates the SQL where clause for this filter.
// All where clauses within the filter are ANDed together. This is combined
// with the sub-filter, which will use the applicable operator (AND/OR/AND NOT).
generateWhereClauses generates the SQL where clause for this filter.
All where clauses within the filter are ANDed together. This is combined
with the sub-filter, which will use the applicable operator (AND/OR/AND NOT).
// generateWhereClauses generates the SQL where clause for this filter . // All where clauses within the filter are ANDed together . This is combined // with the sub - filter which will use the applicable operator ( AND / OR / AND NOT ) .
func (f *filterBuilder) generateWhereClauses() (clause string, args []interface{}) {
	clause, args = f.andClauses(f.whereClauses)
	if f.subFilter != nil {
		c, a := f.subFilter.generateWhereClauses()
		if c != "" {
			clause = f.getSubFilterClause(clause, c)
			if len(a) > 0 {
				args = append(args, a...)
			}
		}
	}
	return
}
func ( f * filterBuilder ) generateWhereClauses ( ) ( clause string , args [ ] interface { } ) { clause , args = f . andClauses ( f . whereClauses ) if f . subFilter != nil { c , a := f . subFilter . generateWhereClauses ( ) if c != " " { clause = f . getSubFilterClause ( clause , c ) if len ( a ) > 0 { args = append ( args , a ... ) } } } return }
generateWhereClauses generates the SQL where clause for this filter.
generateWhereClauses generates the SQL where clause for this filter .