Sha256: 7d3917c508cdf9c918ffb6cc730a4e77680c1e048298f56a21ffcc13cd4f9db3

Contents?: true

Size: 412 Bytes

Versions: 4

Compression:

Stored size: 412 Bytes

Contents

# frozen_string_literal: true

require 'sequel'

# Main gateway for persisted storage
module MvcOne
  class ApplicationRepository
    class NotFoundRecord < StandardError; end

    attr_reader :table_name

    def self.db_config
      Application::Config.db_config
    end

    DB = Sequel.connect(db_config['db']['connection_line'])
    DB.loggers << Logger.new($stdout)
    DB.sql_log_level = :debug
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mvc_one-0.1.0.pre.rc7 lib/mvc_one/repositories/application_repository.rb
mvc_one-0.1.0.pre.rc6 lib/mvc_one/repositories/application_repository.rb
mvc_one-0.1.0.pre.rc5 lib/mvc_one/repositories/application_repository.rb
mvc_one-0.1.0.pre.rc4 lib/mvc_one/repositories/application_repository.rb