Module: PG

Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/lib/pg.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/lib/pg/coder.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/lib/pg/version.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/lib/pg/exceptions.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/lib/pg/text_decoder.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/lib/pg/text_encoder.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/lib/pg/binary_decoder.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/ext/postgresql_lib_path.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/lib/pg/postgresql_lib_path.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/pg-1.4.5/pg/postgresql_lib_path.rb

Overview

-*- ruby -*- frozen_string_literal: true

Defined Under Namespace

Modules: BinaryDecoder, Constants, TextDecoder, TextEncoder Classes: BasicTypeMapBasedOnResult, BasicTypeMapForQueries, BasicTypeMapForResults, BasicTypeRegistry, Coder, CompositeCoder, Connection, CopyCoder, Error, NotAllCopyDataRetrieved, NotInBlockingMode, RecordCoder, Result, Tuple, TypeMapByColumn

Constant Summary collapse

POSTGRESQL_LIB_PATH =
"/usr/lib/x86_64-linux-gnu"
VERSION =

Library version

'1.4.5'

Class Method Summary collapse

Class Method Details

.connect(*args, &block) ⇒ Object

Convenience alias for PG::Connection.new.



68
69
70
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/lib/pg.rb', line 68

def self.connect( *args, &block )
	Connection.new( *args, &block )
end

.version_string(include_buildnum = nil) ⇒ Object

Get the PG library version.

include_buildnum is no longer used and any value passed will be ignored.



62
63
64
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/lib/pg.rb', line 62

def self.version_string( include_buildnum=nil )
	"%s %s" % [ self.name, VERSION ]
end