NAME
Pg::CLI::pg_config - Wrapper for the psql utility
VERSION
version 0.14
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->cc()
$pg_config->cflags()
$pg_config->cflags_sl()
$pg_config->configure()
$pg_config->cppflags()
$pg_config->docdir()
$pg_config->htmldir()
$pg_config->includedir()
$pg_config->includedir_server()
$pg_config->ldflags()
$pg_config->ldflags_sl()
$pg_config->libdir()
$pg_config->libs()
$pg_config->localedir()
$pg_config->mandir()
$pg_config->pgxs()
$pg_config->pkgincludedir()
$pg_config->pkglibdir()
$pg_config->sharedir()
$pg_config->sysconfdir()
$pg_config->version()
SUPPORT
Bugs may be submitted at http://rt.cpan.org/Public/Dist/Display.html?Name=Pg-CLI or via email to bug-pg-cli@rt.cpan.org.
I am also usually active on IRC as 'autarch' on irc://irc.perl.org
.
SOURCE
The source code repository for Pg-CLI can be found at https://github.com/houseabsolute/Pg-CLI.
AUTHOR
Dave Rolsky <autarch@urth.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2018 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
The full text of the license can be found in the LICENSE file included with this distribution.