Module: Dbee
- Defined in:
- lib/dbee.rb,
lib/dbee/base.rb,
lib/dbee/model.rb,
lib/dbee/query.rb,
lib/dbee/schema.rb,
lib/dbee/version.rb,
lib/dbee/key_path.rb,
lib/dbee/key_chain.rb,
lib/dbee/dsl/methods.rb,
lib/dbee/query/field.rb,
lib/dbee/query/filters.rb,
lib/dbee/query/sorters.rb,
lib/dbee/schema_creator.rb,
lib/dbee/dsl/association.rb,
lib/dbee/dsl/reflectable.rb,
lib/dbee/constant_resolver.rb,
lib/dbee/model/constraints.rb,
lib/dbee/model/partitioner.rb,
lib/dbee/dsl_schema_builder.rb,
lib/dbee/query/filters/base.rb,
lib/dbee/query/sorters/base.rb,
lib/dbee/util/make_keyed_by.rb,
lib/dbee/model/relationships.rb,
lib/dbee/query/filters/equals.rb,
lib/dbee/model/constraints/base.rb,
lib/dbee/query/filters/contains.rb,
lib/dbee/dsl/association_builder.rb,
lib/dbee/providers/null_provider.rb,
lib/dbee/query/filters/less_than.rb,
lib/dbee/query/sorters/ascending.rb,
lib/dbee/model/constraints/static.rb,
lib/dbee/query/filters/not_equals.rb,
lib/dbee/query/sorters/descending.rb,
lib/dbee/model/relationships/basic.rb,
lib/dbee/query/filters/not_contain.rb,
lib/dbee/query/filters/starts_with.rb,
lib/dbee/query/filters/greater_than.rb,
lib/dbee/model/constraints/reference.rb,
lib/dbee/query/filters/not_start_with.rb,
lib/dbee/schema_from_tree_based_model.rb,
lib/dbee/query/filters/less_than_or_equal_to.rb,
lib/dbee/query/filters/greater_than_or_equal_to.rb
Overview
Copyright © 2019-present, Blue Marble Payroll, LLC
This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
Defined Under Namespace
Modules: Dsl, Providers, Util Classes: Base, ConstantResolver, DslSchemaBuilder, KeyChain, KeyPath, Model, Query, Schema, SchemaCreator, SchemaFromTreeBasedModel
Constant Summary collapse
- VERSION =
'3.1.0'
Class Attribute Summary collapse
Class Method Summary collapse
Class Attribute Details
.inflector ⇒ Object
34 35 36 |
# File 'lib/dbee.rb', line 34 def inflector @inflector ||= Dry::Inflector.new end |
Class Method Details
.sql(schema_or_model, query_input, provider) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/dbee.rb', line 38 def sql(schema_or_model, query_input, provider) raise ArgumentError, 'a provider is required' unless provider schema_compat = SchemaCreator.new(schema_or_model, query_input) provider.sql(schema_compat.schema, schema_compat.query) end |