Sha256: ee7f326bcd6871526a66dcf47f9270b164769401de80b5d51d3ee7b86d616feb
Contents?: true
Size: 752 Bytes
Versions: 33
Compression:
Stored size: 752 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}", category: :deprecated) unless hash.empty? super(**hash, **kwargs, flags: PG::Coder::TIMESTAMP_DB_UTC) 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}", category: :deprecated) unless hash.empty? super(**hash, **kwargs, flags: PG::Coder::TIMESTAMP_DB_LOCAL) end end end end # module PG
Version data entries
33 entries across 33 versions & 1 rubygems