Sha256: bfac9339e5704c2ec4a63a24528dde31917f5bd1441b87b3fba002792fc153dd
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
module Helpers def qualified_attribute(*args) ROM::SQL::QualifiedAttribute[*args] end def assoc_name(*args) ROM::SQL::Association::Name[*args] end def define_schema(name, attrs) ROM::SQL::Schema.define( name, attributes: attrs.map { |key, value| value.meta(name: key, source: ROM::Relation::Name.new(name)) }, type_class: ROM::SQL::Type ) end def define_type(name, id, **opts) ROM::SQL::Type.new(ROM::Types.const_get(id).meta(name: name, **opts)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-sql-1.0.0.beta3 | spec/support/helpers.rb |