Re: perl namespace for postgres specific modules? - Mailing list pgsql-hackers

From andrew@dunslane.net
Subject Re: perl namespace for postgres specific modules?
Date
Msg-id 1402.24.211.165.134.1155342666.squirrel@www.dunslane.net
Whole thread Raw
In response to perl namespace for postgres specific modules?  ("Andrew Hammond" <andrew.george.hammond@gmail.com>)
List pgsql-hackers
Andrew Hammond wrote:
> I need to write a perl module which will parse a .pgpass file into a
> reasonable data-structure in memory. I may extend it later to go in the
> other direction (given a populated datastructure, write a .pgpass).
>
> The first question that came to mind is what namespace should I put
> this under? Is there any precedent for perl modules intended to support
> postgresql administration? If not, I suggest
>
> PostgreSQL::pgpass
>


IIRC it is conventional to begin each section of a perl namespace with an
upper case char. That's what I tend to do at any rate. (Of course,
namespaces aren't really hierarchical, but it's a nice illusion.)

Other than that it seems reasonable.

cheers

andrew



pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: [PATCHES] New variable server_version_num
Next
From: Martijn van Oosterhout
Date:
Subject: Re: 8.2 features status