Sha256: 5bc68e784dfa7c3cf9957f0a928723977fe4fdcb15e3fd787fa99c2d818039c9
Contents?: true
Size: 690 Bytes
Versions: 1
Compression:
Stored size: 690 Bytes
Contents
<%= config[:camel_cased_app_name] %>::Container.namespace "persistence" do |persistence| persistence.finalize(:rom) do init do require "sequel" require "rom" use :monitor Sequel.database_timezone = :utc Sequel.application_timezone = :local rom_config = ROM::Configuration.new( :sql, persistence.settings.database_url, extensions: [:error_sql] ) persistence.register("config", rom_config) end start do config = persistence["persistence.config"] config.auto_registration(persistence.root.join("lib/persistence")) persistence.register("rom", ROM.container(config)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-web-roda-0.6.2 | lib/dry/web/roda/skeletons/flat_project/system/boot/rom.rb.tt |