Sha256: 3a92cf2269fd63e96990cc9ab864654d3dc9a252b9a39662552fe94d808f2566

Contents?: true

Size: 657 Bytes

Versions: 88

Compression:

Stored size: 657 Bytes

Contents

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

module PG
	module BinaryDecoder
		# Convenience classes for timezone options
		class TimestampUtc < Timestamp
			def initialize(params={})
				super(params.merge(flags: PG::Coder::TIMESTAMP_DB_UTC | PG::Coder::TIMESTAMP_APP_UTC))
			end
		end
		class TimestampUtcToLocal < Timestamp
			def initialize(params={})
				super(params.merge(flags: PG::Coder::TIMESTAMP_DB_UTC | PG::Coder::TIMESTAMP_APP_LOCAL))
			end
		end
		class TimestampLocal < Timestamp
			def initialize(params={})
				super(params.merge(flags: PG::Coder::TIMESTAMP_DB_LOCAL | PG::Coder::TIMESTAMP_APP_LOCAL))
			end
		end
	end
end # module PG

Version data entries

88 entries across 88 versions & 4 rubygems

Version Path
pg-1.3.5-x86-mingw32 lib/pg/binary_decoder.rb
pg-1.3.5 lib/pg/binary_decoder.rb
postgresql-lambda-1.3.4.3 ./lib/pg/binary_decoder.rb
postgresql-lambda-1.3.4.1 ./lib/pg/binary_decoder.rb
pg-1.3.4-x64-mingw32 lib/pg/binary_decoder.rb
pg-1.3.4-x64-mingw-ucrt lib/pg/binary_decoder.rb
pg-1.3.4-x86-mingw32 lib/pg/binary_decoder.rb
pg-1.3.4 lib/pg/binary_decoder.rb
pg-1.3.3-x64-mingw-ucrt lib/pg/binary_decoder.rb
pg-1.3.3-x64-mingw32 lib/pg/binary_decoder.rb
pg-1.3.3-x86-mingw32 lib/pg/binary_decoder.rb
pg-1.3.3 lib/pg/binary_decoder.rb
pg-1.3.2-x86-mingw32 lib/pg/binary_decoder.rb
pg-1.3.2-x64-mingw-ucrt lib/pg/binary_decoder.rb
pg-1.3.2-x64-mingw32 lib/pg/binary_decoder.rb
pg-1.3.2 lib/pg/binary_decoder.rb
pg-1.3.1 lib/pg/binary_decoder.rb
pg-1.3.0-x86-mingw32 lib/pg/binary_decoder.rb
pg-1.3.0-x64-mingw32 lib/pg/binary_decoder.rb
pg-1.3.0-x64-mingw-ucrt lib/pg/binary_decoder.rb