Thread: Simple DBI question
How do I connect to a postgres sever across a network using DBI? I can not find an example of it anywhere in any docs. Thanks. Also what do I type after man to get the Pg dbi man file?
> How do I connect to a postgres sever across a network using DBI? > I can not find an example of it anywhere in any docs. > Thanks. > Also what do I type after man to get the Pg dbi man file? perldoc DBI perldoc DBD::Pg -sc -- Sean Chittenden
Where does one issue those commands, at a *nix command line, or as an argument to the perl interpreter, or what? Sean Chittenden wrote: >>How do I connect to a postgres sever across a network using DBI? >>I can not find an example of it anywhere in any docs. >>Thanks. >>Also what do I type after man to get the Pg dbi man file? > > > perldoc DBI > perldoc DBD::Pg > > -sc >
> Where does one issue those commands, at a *nix command line, or as > an argument to the perl interpreter, or what? From a *nix command line. In the DBD::Pg page, you'll see an example of how to connect to a database. Once you've connected to your database, read the DBI man page to learn how to send queries to the backend. -sc -- Sean Chittenden