symfony API

sfMySQLDatabase Class

« Back to API menu

action

addon

cache

config

controller

countable

database

debug

exception

filter

generator

helper

i18n

log

request

response

storage

test

user

util

validator

view

You are currently browsing the symfony documentation for the 1.0 version. Switch to:

sfMySQLDatabase provides connectivity for the MySQL brand database.

Inheritence

sfMySQLDatabase  <  sfDatabase

Method Summary

  • shutdown()
    Execute the shutdown procedure
  • connect()
    Connects to the database.
  • array&amp; loadParameters([[[amp]]]$array)
    Loads connection parameters from an existing array.

Methods inherited from sfDatabase

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

Method Details

  • shutdown ()

    Execute the shutdown procedure

    throws sfDatabaseException If an error occurs while shutting down this database

  • connect ()

    Connects to the database.

    throws sfDatabaseException If a connection could not be created

  • (array&amp;) loadParameters ([[[amp]]]$array)

    Loads connection parameters from an existing array.

    returns An associative array of connection parameters