Sha256: dc0cce58f8e7ce5838f7b85d42445eb128379e34c12a963dd266e58077257622
Contents?: true
Size: 704 Bytes
Versions: 4
Compression:
Stored size: 704 Bytes
Contents
# -*- ruby -*- # frozen_string_literal: true module PG module BinaryEncoder # Convenience classes for timezone options class TimestampUtc < Timestamp def initialize(hash={}, **kwargs) warn "PG::Coder.new(hash) is deprecated. Please use keyword arguments instead! Called from #{caller.first}" unless hash.empty? super(flags: PG::Coder::TIMESTAMP_DB_UTC, **hash, **kwargs) end end class TimestampLocal < Timestamp def initialize(hash={}, **kwargs) warn "PG::Coder.new(hash) is deprecated. Please use keyword arguments instead! Called from #{caller.first}" unless hash.empty? super(flags: PG::Coder::TIMESTAMP_DB_LOCAL, **hash, **kwargs) end end end end # module PG
Version data entries
4 entries across 4 versions & 1 rubygems