Sha256: 1d3e9042764348b7430a3813a1873b63bd3af81f3f7e57b1541a3f42cbf3cc7f
Contents?: true
Size: 708 Bytes
Versions: 1
Compression:
Stored size: 708 Bytes
Contents
require 'sequel/core' require 'sequel/sql' require 'rom/types' require 'rom/sql/type_dsl' module ROM module SQL module Types include ROM::Types def self.Constructor(*args, &block) ROM::Types.Constructor(*args, &block) end def self.Definition(*args, &block) ROM::Types.Definition(*args, &block) end def self.ForeignKey(relation, type = Types::Int.meta(index: true)) super end def self.define(value_type, &block) TypeDSL.new(value_type).call(&block) end Serial = Int.meta(primary_key: true) Blob = Constructor(Sequel::SQL::Blob, &Sequel::SQL::Blob.method(:new)) Void = Nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-sql-2.0.0.beta3 | lib/rom/sql/types.rb |