Sha256: d572289f31ce464393c5d66d0675fc8f6685e9ef04e77cd80c3c1ee8559bdd20
Contents?: true
Size: 823 Bytes
Versions: 5
Compression:
Stored size: 823 Bytes
Contents
# frozen_string_literal: true # # Copyright (c) 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. # require 'acts_as_hashable' require 'forwardable' require_relative 'dbee/base' require_relative 'dbee/key_chain' require_relative 'dbee/key_path' require_relative 'dbee/model' require_relative 'dbee/query' require_relative 'dbee/providers' # Top-level namespace that provides the main public API. module Dbee class << self def sql(model, query, provider) query = Query.make(query) model = if model.is_a?(Hash) || model.is_a?(Model) Model.make(model) else model.to_model(query.key_chain) end provider.sql(model, query) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
dbee-1.2.1 | lib/dbee.rb |
dbee-1.2.0 | lib/dbee.rb |
dbee-1.1.0 | lib/dbee.rb |
dbee-1.0.3 | lib/dbee.rb |
dbee-1.0.2 | lib/dbee.rb |