Class: YugabyteYSQL::BinaryDecoder::TimestampLocal

Inherits:
Timestamp
  • Object
show all
Defined in:
lib/pg/binary_decoder/timestamp.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}, **kwargs) ⇒ TimestampLocal

Returns a new instance of TimestampLocal.



20
21
22
23
# File 'lib/pg/binary_decoder/timestamp.rb', line 20

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 | YugabyteYSQL::Coder::TIMESTAMP_APP_LOCAL)
end