Sha256: 226eea3359f46d59b7a135f07e5be84eb126462e0bdc03a6fd6cdf06adfa2fcf

Contents?: true

Size: 704 Bytes

Versions: 7

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(**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}" unless hash.empty?
				super(**hash, **kwargs, flags: PG::Coder::TIMESTAMP_DB_LOCAL)
			end
		end
	end
end # module PG

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pg-1.5.2-x64-mingw32 lib/pg/binary_encoder/timestamp.rb
pg-1.5.2-x64-mingw-ucrt lib/pg/binary_encoder/timestamp.rb
pg-1.5.2 lib/pg/binary_encoder/timestamp.rb
pg-1.5.1-x86-mingw32 lib/pg/binary_encoder/timestamp.rb
pg-1.5.1-x64-mingw-ucrt lib/pg/binary_encoder/timestamp.rb
pg-1.5.1-x64-mingw32 lib/pg/binary_encoder/timestamp.rb
pg-1.5.1 lib/pg/binary_encoder/timestamp.rb