Sha256: 097da769171e13a33293fdc45af1f7a9efee6cc13219293096607a1b3eed1219
Contents?: true
Size: 855 Bytes
Versions: 53
Compression:
Stored size: 855 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 def cachable?(statement) true # optional end protected def settings @data_source.settings end end end end
Version data entries
53 entries across 53 versions & 3 rubygems