Module: Bank
- Defined in:
- lib/bank/bank.rb,
lib/bank/model.rb,
lib/bank/config.rb,
lib/bank/result.rb,
lib/bank/sequel.rb,
lib/bank/serialize.rb,
lib/bank/collection.rb,
lib/bank/collection_config.rb
Defined Under Namespace
Modules: Collection, Model, Serialize Classes: CollectionConfig, Config, Result
Constant Summary collapse
- DatasetMethods =
[ :select, :select_all, :select_append, :select_group, :select_more, :join, :left_join, :right_join, :full_join, :natural_join, :natural_left_join, :natural_right_join, :natural_full_join, :cross_join, :inner_join, :left_outer_join, :right_outer_join, :full_outer_join, :join_table, :where, :filter, :exclude, :exclude_where, :and, :or, :grep, :invert, :unfiltered, :group, :group_by, :group_and_count, :select_group, :ungrouped, :having, :exclude_having, :invert, :unfiltered, :order, :order_by, :order_append, :order_prepend, :order_more, :reverse, :reverse_order, :unordered, :limit, :offset, :unlimited, :union, :intersect, :except, :for_update, :lock_style, :with, :with_recursive, :clone, :distinct, :naked, :qualify, :server, :with_sql, :count, :insert, :update, :delete, :max, :min ]
- RecordNotFound =
Class.new(RuntimeError)
- UnknownConversionType =
Class.new(RuntimeError)
Class Method Summary collapse
Class Method Details
.[](name) ⇒ Object
15 16 17 |
# File 'lib/bank/bank.rb', line 15 def [](name) self.db[name] end |
.config ⇒ Object
19 20 21 |
# File 'lib/bank/bank.rb', line 19 def config self._config ||= Bank::Config.new end |
.use_db(db) ⇒ Object
11 12 13 |
# File 'lib/bank/bank.rb', line 11 def use_db(db) self.db = db end |