Module: Babik::Selection::Operation

Defined in:
lib/babik/queryset/lib/selection/operation/base.rb,
lib/babik/queryset/lib/selection/operation/date.rb,
lib/babik/queryset/lib/selection/operation/regex.rb,
lib/babik/queryset/lib/selection/operation/operations.rb

Overview

SQL operation module

Defined Under Namespace

Modules: ValidDBMS Classes: Base, Between, BinaryOperation, Contains, DateOperation, Day, Different, EndsWith, Equal, Exact, GreaterThan, GreaterThanOrEqual, Hour, IContains, IEndsWith, IExact, IRegex, IStartsWith, IfNotNullOperation, In, IsNull, LessThan, LessThanOrEqual, Minute, Month, Quarter, Regex, Second, StartsWith, Time, Week, WeekDay, Year

Constant Summary collapse

CORRESPONDENCE =
{
  default: Equal,
  equal: Equal,
  equals: Equal,
  equals_to: Equal,
  exact: Exact,
  iexact: IExact,
  different: Different,
  in: In,
  isnull: IsNull,
  lt: LessThan,
  lte: LessThanOrEqual,
  gt: GreaterThan,
  gte: GreaterThanOrEqual,
  between: Between,
  range: Between,
  startswith: StartsWith,
  endswith: EndsWith,
  contains: Contains,
  istartswith: IStartsWith,
  iendswith: IEndsWith,
  icontains: IContains,
  regex: Babik::Selection::Operation::Regex,
  iregex: IRegex,
  year: Year,
  quarter: Quarter,
  month: Month,
  day: Day,
  week_day: WeekDay,
  week: Week,
  hour: Hour,
  minute: Minute,
  second: Second,
  time: Babik::Selection::Operation::Time
}.freeze