Sha256: f112336f93222492436e06c6831a62dac27a93b67982f17c6212d99b0bb33d71
Contents?: true
Size: 1.17 KB
Versions: 4
Compression:
Stored size: 1.17 KB
Contents
# frozen_string_literal: true require 'active_record' module Stairwell class Error < StandardError; end class InvalidBindType < StandardError; end class InvalidBindCount < StandardError; end class SqlBindMismatch < StandardError; end TYPE_CLASSES = { string: 'Stairwell::Types::StringType', integer: 'Stairwell::Types::IntegerType', boolean: 'Stairwell::Types::BooleanType', float: 'Stairwell::Types::FloatType', date: 'Stairwell::Types::DateType', date_time: 'Stairwell::Types::DateTimeType', null: 'Stairwell::Types::NullType', column_name: 'Stairwell::Types::ColumnNameType', table_name: 'Stairwell::Types::TableNameType' }.freeze class << self def configuration @configuration ||= Stairwell::Configuration.new end def configure yield configuration end end # for development and testing unless defined?(Rails) ::ActiveRecord::Base.establish_connection( adapter: 'sqlite3', database: 'test.db' ) end end require 'date' require 'zeitwerk' loader = Zeitwerk::Loader.for_gem loader.ignore("#{__dir__}/kamal/sshkit_with_ext.rb") loader.setup loader.eager_load # We need all commands loaded.
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
stairwell-0.6.5 | lib/stairwell.rb |
stairwell-0.6.4 | lib/stairwell.rb |
stairwell-0.6.3 | lib/stairwell.rb |
stairwell-0.6.2 | lib/stairwell.rb |