Re: perl namespace for postgres specific modules?

From: andrew(at)dunslane(dot)net
To: "Andrew Hammond" <andrew(dot)george(dot)hammond(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: perl namespace for postgres specific modules?
Date: 2006-08-12 00:31:06
Message-ID: 1402.24.211.165.134.1155342666.squirrel@www.dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2006-08-12 01:42:58 Re: pgstattuple extension for indexes
Previous Message David Fetter 2006-08-12 00:26:45 Re: New variable server_version_num