Module: Babik

Defined in:
lib/babik.rb,
lib/babik/database.rb,
lib/babik/queryset.rb,
lib/babik/queryset/lib/field.rb,
lib/babik/queryset/mixins/none.rb,
lib/babik/queryset/lib/condition.rb,
lib/babik/queryset/lib/join/join.rb,
lib/babik/queryset/mixins/bounded.rb,
lib/babik/queryset/mixins/clonable.rb,
lib/babik/queryset/mixins/lockable.rb,
lib/babik/queryset/mixins/sortable.rb,
lib/babik/queryset/components/limit.rb,
lib/babik/queryset/components/order.rb,
lib/babik/queryset/components/where.rb,
lib/babik/queryset/mixins/countable.rb,
lib/babik/queryset/mixins/deletable.rb,
lib/babik/queryset/mixins/limitable.rb,
lib/babik/queryset/mixins/updatable.rb,
lib/babik/queryset/mixins/filterable.rb,
lib/babik/queryset/mixins/projectable.rb,
lib/babik/queryset/mixins/aggregatable.rb,
lib/babik/queryset/lib/selection/config.rb,
lib/babik/queryset/components/projection.rb,
lib/babik/queryset/lib/update/assignment.rb,
lib/babik/queryset/mixins/set_operations.rb,
lib/babik/queryset/components/aggregation.rb,
lib/babik/queryset/mixins/distinguishable.rb,
lib/babik/queryset/components/sql_renderer.rb,
lib/babik/queryset/lib/selection/path/path.rb,
lib/babik/queryset/lib/selection/selection.rb,
lib/babik/queryset/mixins/related_selector.rb,
lib/babik/queryset/mixins/sql_renderizable.rb,
lib/babik/queryset/components/select_related.rb,
lib/babik/queryset/lib/join/association_joiner.rb,
lib/babik/queryset/lib/selection/operation/base.rb,
lib/babik/queryset/lib/selection/operation/date.rb,
lib/babik/queryset/lib/selection/local_selection.rb,
lib/babik/queryset/lib/selection/operation/regex.rb,
lib/babik/queryset/lib/selection/path/local_path.rb,
lib/babik/queryset/lib/selection/foreign_selection.rb,
lib/babik/queryset/lib/selection/path/foreign_path.rb,
lib/babik/queryset/lib/selection/operation/operations.rb,
lib/babik/queryset/lib/selection/select_related_selection.rb,
lib/babik/queryset/lib/association/foreign_association_chain.rb,
lib/babik/queryset/lib/association/select_related_association_chain.rb

Overview

Common module for Babik library

Defined Under Namespace

Modules: Association, ClassMethods, InstanceMethods, QuerySet, Selection, Table Classes: Database

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Inject both class methods and instance methods to classes that include this mixin

Parameters:

  • base (Class)

    Class to be extended by mixin.



12
13
14
15
# File 'lib/babik.rb', line 12

def self.included(base)
  base.send :include, InstanceMethods
  base.extend ClassMethods
end

Instance Method Details

#included(base) ⇒ Object

Inject both class methods and instance methods to classes that include this mixin

Parameters:

  • base (Class)

    Class to be extended by mixin.



12
13
14
15
# File 'lib/babik.rb', line 12

def self.included(base)
  base.send :include, InstanceMethods
  base.extend ClassMethods
end