Pg::CLI::pg_config - Wrapper for the psql utility
version 0.07
my $pg_config = Pg::CLI::pg_config->new(); print $pg_config()->sharedir(); print $pg_config()->version();
This class provides a wrapper for the pg_config utility.
This class provides the following methods:
The constructor accepts one parameter:
executable
The path to pg_config. By default, this will look for pg_config in your path and throw an error if it cannot be found.
This class provides the following methods, each of which returns the relevant configuration info. If there was no value for the item, the method returns undef.
undef
$pg_config->bindir()
$pg_config->docdir()
$pg_config->htmldir()
$pg_config->includedir()
$pg_config->pkgincludedir()
$pg_config->includedir_server()
$pg_config->libdir()
$pg_config->pkglibdir()
$pg_config->localedir()
$pg_config->mandir()
$pg_config->sharedir()
$pg_config->sysconfdir()
$pg_config->pgxs()
$pg_config->configure()
$pg_config->cc()
$pg_config->cppflags()
$pg_config->cflags()
$pg_config->cflags_sl()
$pg_config->ldflags()
$pg_config->ldflags_sl()
$pg_config->libs()
$pg_config->version()
See Pg::CLI for bug reporting details.
Dave Rolsky <autarch@urth.org>
This software is Copyright (c) 2010 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0
To install Pg::CLI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pg::CLI
CPAN shell
perl -MCPAN -e shell install Pg::CLI
For more information on module installation, please visit the detailed CPAN module installation guide.