Sha256: a09f0ce15b89f138a00fd402f1ed52102ce97537149ca6612545058a1d5454de
Contents?: true
Size: 601 Bytes
Versions: 2
Compression:
Stored size: 601 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 Adapter.register(self) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rom-0.4.2 | lib/rom/adapter/memory.rb |
rom-0.4.1 | lib/rom/adapter/memory.rb |