NAME
Pg::CLI::pg_config - Wrapper for the psql utility
VERSION
version 0.05
SYNOPSIS
my $pg_config = Pg::CLI::pg_config->new();
print $pg_config()->sharedir();
print $pg_config()->version();
DESCRIPTION
This class provides a wrapper for the pg_config utility.
METHODS
This class provides the following methods:
Pg::CLI::pg_config->new()
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.
Config Info Methods
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
.
$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()
BUGS
See Pg::CLI for bug reporting details.
AUTHOR
Dave Rolsky <autarch@urth.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2010 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0