Sha256: a29410d12b9a81fdeaec57a2eff14bf1a2861de063601e5b01aed41920a0cb9c

Contents?: true

Size: 869 Bytes

Versions: 51

Compression:

Stored size: 869 Bytes

Contents

# frozen_string_literal: true

require "sequel"

module ReeDao
  include Ree::PackageDSL

  package do
    depends_on :ree_array
    depends_on :ree_dto
    depends_on :ree_enum
    depends_on :ree_mapper
    depends_on :ree_string
    depends_on :ree_object
    depends_on :ree_hash
  end

  require_relative "./ree_dao/dsl"
  require_relative "./ree_dao/thread_parents"
  require_relative "./ree_dao/aggregate_dsl"
  require_relative "./ree_dao/association_methods"
  require_relative "./ree_dao/associations"
  require_relative "./ree_dao/association"

  def self.load_sync_associations_enabled?
    ENV.has_key?("REE_DAO_SYNC_ASSOCIATIONS") && ENV["REE_DAO_SYNC_ASSOCIATIONS"] == "true"
  end
end

# ReeEnum::Value#sql_literal is used to properly serialize enum values
# for database queries
class ReeEnum::Value
  def sql_literal(*)
    mapped_value.to_s
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
ree_lib-1.0.124 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.123 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.122 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.121 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.120 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.119 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.118 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.117 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.116 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.115 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.114 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.113 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.112 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.111 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.110 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.109 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.108 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.107 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.106 lib/ree_lib/packages/ree_dao/package/ree_dao.rb
ree_lib-1.0.105 lib/ree_lib/packages/ree_dao/package/ree_dao.rb