Sha256: b544c5bf5adc42844174e9d8a364d1b60e9be3a0b1c868c546591ed8d38023f0
Contents?: true
Size: 460 Bytes
Versions: 9
Compression:
Stored size: 460 Bytes
Contents
module SequelRails module Storage class Sqlite < Abstract def _create return if in_memory? ::Sequel.connect(config.merge('database' => path)) end def _drop return if in_memory? path.unlink if path.file? end private def in_memory? database == ':memory:' end def path @path ||= Pathname(File.expand_path(database, Rails.root)) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems