Top Level Namespace

Defined Under Namespace

Classes: PGError, PGconn, PGlarge, PGresult, PGrow

Instance Method Summary collapse

Instance Method Details

#config_value(type) ⇒ Object



48
49
50
# File 'ext/extconf.rb', line 48

def config_value(type)
  ENV["POSTGRES_#{type.upcase}"] || pg_config(type)
end

#have_build_envObject



56
57
58
# File 'ext/extconf.rb', line 56

def have_build_env
  have_library($libname) && have_header('libpq-fe.h') && have_header('libpq/libpq-fs.h')
end

#pg_config(type) ⇒ Object



52
53
54
# File 'ext/extconf.rb', line 52

def pg_config(type)
  IO.popen("pg_config --#{type}dir").readline.chomp rescue nil
end