Sha256: 3a04cfaba2a11a38b91acaa282cc00be5f6d9736effc8afc4b445e722a4c1949
Contents?: true
Size: 789 Bytes
Versions: 2
Compression:
Stored size: 789 Bytes
Contents
module Blazer module Adapters class BaseAdapter attr_reader :data_source def initialize(data_source) @data_source = data_source end def run_statement(statement, comment) # the one required method end def tables [] # optional, but nice to have end def schema [] # optional, but nice to have end def preview_statement "" # also optional, but nice to have end def reconnect # optional end def cost(statement) # optional end def explain(statement) # optional end def cancel(run_id) # optional end protected def settings @data_source.settings end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blazer-1.7.1 | lib/blazer/adapters/base_adapter.rb |
blazer-1.7.0 | lib/blazer/adapters/base_adapter.rb |