Sha256: 8d4389506b51ef609546cbbd9b1db478290fb1e89104699f7ebfb890700f581a
Contents?: true
Size: 782 Bytes
Versions: 3
Compression:
Stored size: 782 Bytes
Contents
# -*- ruby -*- # frozen_string_literal: true module YugabyteYSQL 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: YugabyteYSQL::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: YugabyteYSQL::Coder::TIMESTAMP_DB_LOCAL) end end end end # module PG
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yugabyte_ysql-0.3 | lib/pg/binary_encoder/timestamp.rb |
yugabyte_ysql-0.2 | lib/pg/binary_encoder/timestamp.rb |
yugabyte_ysql-0.1 | lib/pg/binary_encoder/timestamp.rb |