module Dbee

Top-level namespace that provides the main public API.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Constants

VERSION

Attributes

inflector[W]

Use this to override the built in Dry::Inflector instance. This is useful is you have your own grammar/overrides you need to load. See the referenced gem here: github.com/dry-rb/dry-inflector

Public Class Methods

inflector() click to toggle source
# File lib/dbee.rb, line 34
def inflector
  @inflector ||= Dry::Inflector.new
end
sql(schema_or_model, query_input, provider) click to toggle source
# 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