Sha256: 862d52ac4d9cb54d0a577d72a6bac0dca84d17841a73b079d188dc455ac90692

Contents?: true

Size: 627 Bytes

Versions: 18

Compression:

Stored size: 627 Bytes

Contents

# -*- ruby -*-

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

18 entries across 18 versions & 1 rubygems

Version Path
pg-1.1.4-x86-mingw32 lib/pg/binary_decoder.rb
pg-1.1.4-x64-mingw32 lib/pg/binary_decoder.rb
pg-1.1.4 lib/pg/binary_decoder.rb
pg-1.1.3-x86-mingw32 lib/pg/binary_decoder.rb
pg-1.1.3-x64-mingw32 lib/pg/binary_decoder.rb
pg-1.1.3 lib/pg/binary_decoder.rb
pg-1.1.2-x86-mingw32 lib/pg/binary_decoder.rb
pg-1.1.2-x64-mingw32 lib/pg/binary_decoder.rb
pg-1.1.2 lib/pg/binary_decoder.rb
pg-1.1.1-x86-mingw32 lib/pg/binary_decoder.rb
pg-1.1.1-x64-mingw32 lib/pg/binary_decoder.rb
pg-1.1.1 lib/pg/binary_decoder.rb
pg-1.1.0-x86-mingw32 lib/pg/binary_decoder.rb
pg-1.1.0-x64-mingw32 lib/pg/binary_decoder.rb
pg-1.1.0 lib/pg/binary_decoder.rb
pg-1.1.0.pre20180730171000-x86-mingw32 lib/pg/binary_decoder.rb
pg-1.1.0.pre20180730171000-x64-mingw32 lib/pg/binary_decoder.rb
pg-1.1.0.pre20180730171000 lib/pg/binary_decoder.rb