Top Level Namespace
Defined Under Namespace
Modules: DataObjects
Instance Method Summary collapse
Instance Method Details
#config_value(type) ⇒ Object
9 10 11 |
# File 'ext/do_postgres/extconf.rb', line 9 def config_value(type) ENV["POSTGRES_#{type.upcase}"] || pg_config(type) end |
#have_build_env ⇒ Object
17 18 19 20 21 22 |
# File 'ext/do_postgres/extconf.rb', line 17 def have_build_env (have_library('pq') || have_library('libpq')) && have_header('libpq-fe.h') && have_header('libpq/libpq-fs.h') && have_header('postgres.h') && have_header('mb/pg_wchar.h') && have_header('catalog/pg_type.h') end |
#pg_config(type) ⇒ Object
13 14 15 |
# File 'ext/do_postgres/extconf.rb', line 13 def pg_config(type) IO.popen("pg_config --#{type}").readline.chomp rescue nil end |