Sha256: c2d3c5303f65a543a08176f225aa93398c405272d3e4e77f55cab54c02df58b1
Contents?: true
Size: 569 Bytes
Versions: 1
Compression:
Stored size: 569 Bytes
Contents
require 'rom/adapter/memory/storage' require 'rom/adapter/memory/dataset' require 'rom/adapter/memory/commands' module ROM class Adapter class Memory < Adapter attr_accessor :logger def self.schemes [:memory] end def initialize(*args) super @connection = Storage.new end def dataset(name, header = []) connection.create_dataset(name, header) end def dataset?(name) connection.key?(name) end def [](name) connection[name] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-0.5.0 | lib/rom/adapter/memory.rb |