Sha256: 10c646578f8a11e7c8f31055d0b2cabc1cdf6c7896bbec8c897868a205929f54
Contents?: true
Size: 487 Bytes
Versions: 6
Compression:
Stored size: 487 Bytes
Contents
require "sequel" require "rom" Sequel.database_timezone = :utc Sequel.application_timezone = :local <%= config[:camel_cased_app_name] %>::Container.namespace "persistence" do |container| config = ROM::Configuration.new(:sql, container.settings.database_url, extensions: [:error_sql]) container.register "config", config container.finalize :rom do config.auto_registration container.root.join("lib/persistence") container.register "rom", ROM.container(config) end end
Version data entries
6 entries across 6 versions & 1 rubygems