Class Rubernate::Queries::Factory
In: rubernate/queries.rb
Parent: Object

Defines query elements factory. By default it creates elements defined in module Queries. This behaviour can be changed to provide support for kinds of queries other then ANSI SQL. Following example changes implementation of BinOpConst


  f =
  f.bin_op = MyBinOpImpl
  f.bin_op expr1, expr2, '='  -> instance of MyBinOpImpl properly initialized

New implementations of elements MUST accept factory as it’s first parameter.


new   query  


cache  [R] 

Public Class methods

Initalizes default implementations

Public Instance methods