Sha256: 604716e6961933c2cb8ef658a4fb12a054f7857f7837510b7b951bdba893aefa

Contents?: true

Size: 758 Bytes

Versions: 5

Compression:

Stored size: 758 Bytes

Contents

# -*- ruby -*-
# frozen_string_literal: true

module YSQL
	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: YSQL::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: YSQL::Coder::TIMESTAMP_DB_LOCAL)
			end
		end
	end
end # module PG

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yugabytedb-ysql-0.7 lib/ysql/binary_encoder/timestamp.rb
yugabytedb-ysql-0.6 lib/ysql/binary_encoder/timestamp.rb
yugabytedb-ysql-0.5 lib/ysql/binary_encoder/timestamp.rb
yugabytedb-ysql-0.4 lib/ysql/binary_encoder/timestamp.rb
yugabytedb-ysql-0.3 lib/pg/binary_encoder/timestamp.rb