GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  HAILO::STORAGE::POSTGRESQL (3)

.ds Aq ’

NAME

Hailo::Storage::PostgreSQL - A storage backend for Hailo using DBD::Pg

CONTENTS

SYNOPSIS

First create a PostgreSQL database for failo:



    # Run it as a dedicated hailo user
    createdb -E UTF8 -O hailo hailo

    # Just create database..
    createdb -E UTF8 hailo



As a module:



    my $hailo = Hailo->new(
        storage_class => Pg,
        storage_args => {
            dbname   => hailo,
        },
    );
    $hailo->train("hailo.trn");



Or with complex connection options:



    my $hailo = Hailo->new(
        storage_class => Pg,
        storage_args => {
            dbname   => hailo,
            host     => localhost,
            port     => 5432,
            options  => ...,
            username => hailo,
            password => hailo
        },
    );
    $hailo->train("hailo.trn");



From the command line:



    hailo --train hailo.trn \
        --storage      Pg \
        --storage-args dbname=hailo



Or with complex connection options:



    hailo --train hailo.trn \
        --storage      Pg \
        --storage-args dbname=hailo \
        --storage-args host=localhost \
        --storage-args port=5432 \
        --storage-args options=... \
        --storage-args username=hailo \
        --storage-args password=hailo



Almost all of these options can be omitted, see DBD::Pg’s documentation for the default values.

See Hailo’s documentation for other non-Pg specific options.

DESCRIPTION

This backend maintains information in a PostgreSQL database.

ATTRIBUTES

CWstorage_args

This is a hash reference which can have the following keys:

<B>’dbname’B>, the name of the database to use (required).

<B>’host’B>, the host to connect to (required).

<B>’port’B>, the port to connect to (required).

<B>’options’B>, additional options to pass to PostgreSQL.

<B>’username’B>, the username to use.

<B>’password’B>, the password to use.

AUTHOR

AEvar Arnfjoerd` Bjarmason <avar@cpan.org>

LICENSE AND COPYRIGHT

Copyright 2010 AEvar Arnfjoerd` Bjarmason.

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 HAILO::STORAGE::POSTGRESQL (3) 2011-09-18

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.