Sha256: 369856ed8794a7a7a0ca4e8f3780b00d3af8c51761026c570a74808b3f9253d9
Contents?: true
Size: 345 Bytes
Versions: 2
Compression:
Stored size: 345 Bytes
Contents
require 'rom/types' module ROM module SQL module Types include ROM::Types def self.Constructor(*args, &block) ROM::Types.Constructor(*args, &block) end Serial = Int.constrained(gt: 0).meta(primary_key: true) Blob = Constructor(Sequel::SQL::Blob, &Sequel::SQL::Blob.method(:new)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rom-sql-1.0.0.rc1 | lib/rom/sql/types.rb |
rom-sql-1.0.0.beta3 | lib/rom/sql/types.rb |