Sha256: 231f68c7babe4e436c6827825ffaece785ff4ef79f8fd328b3436ef20af97fcc
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 Bytes
Contents
# frozen_string_literal: true module Mimi module DB module Extensions def self.start adapter_name = Mimi::DB.sequel_config[:adapter] require_relative 'extensions/sequel-database' case adapter_name when 'sqlite' require_relative 'extensions/sequel-sqlite' when 'postgres' require_relative 'extensions/sequel-postgres' when 'cockroachdb' require_relative 'extensions/sequel-postgres' require_relative 'extensions/sequel-cockroachdb' else # load nothing end Sequel::Model.plugin :timestamps end end # module Extensions end # module DB end # module Mimi
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mimi-db-0.3.5 | lib/mimi/db/extensions.rb |