Method: Audrey::Engine::SQLite3::Query::Q0#aclasses
- Defined in:
- lib/audrey/engine/sqlite3/query/q0.rb
#aclasses(wheres, params) ⇒ Object
aclasses
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 |
# File 'lib/audrey/engine/sqlite3/query/q0.rb', line 231 def aclasses(wheres, params) fcs = @fquery.aclasses fcs.any? or return where = [] # loop through aclasses fcs.each do |fc| rs = Audrey::Util.randstr(40) params[rs] = fc where.push ':' + rs end # add to wheres wheres.push 'aclass in (' + where.join(', ') + ')' end |