Module: Dorm
- Defined in:
- lib/dorm.rb,
lib/dorm/result.rb,
lib/dorm/version.rb,
lib/dorm/database.rb,
lib/dorm/repository.rb,
lib/dorm/query_builder.rb,
lib/dorm/connection_pool.rb,
lib/dorm/functional_helpers.rb
Defined Under Namespace
Modules: Database, FunctionalHelpers, Repository, Result Classes: ConfigurationError, ConnectionPool, Error, QueryBuilder, RecordNotFoundError, ValidationError, WhereDSL
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
- .configure(**options) ⇒ Object
-
.repository_for(data_class, **options) ⇒ Object
Convenience method for creating repositories.
Class Method Details
.configure(**options) ⇒ Object
17 18 19 |
# File 'lib/dorm.rb', line 17 def self.configure(**) Database.configure(**) end |
.repository_for(data_class, **options) ⇒ Object
Convenience method for creating repositories
22 23 24 |
# File 'lib/dorm.rb', line 22 def self.repository_for(data_class, **) Repository.for(data_class, **) end |