symfony API

sfPostgreSQLDatabase Class

« Back to API menu

1.0 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.0 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfPostgreSQLDatabase provides connectivity for the PostgreSQL brand database.

Inheritence

sfPostgreSQLDatabase  <  sfDatabase

Method Summary

  • connect()
    Connects to the database.
  • string loadParameters()
    Loads connection parameters from an existing array.
  • shutdown()
    Executes the shutdown procedure.

Methods inherited from sfDatabase

connect , getConnection , getParameter , getParameterHolder , getResource , hasParameter , initialize , setParameter , shutdown

Method Details

  • connect () Browse code

    Connects to the database.

    throws sfDatabaseException If a connection could not be created

  • (string) loadParameters () Browse code

    Loads connection parameters from an existing array.

    returns A connection string

  • shutdown () Browse code

    Executes the shutdown procedure.

    throws sfDatabaseException If an error occurs while shutting down this database

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.