PEAR-Handbuch
Zurück
Kapitel 34. Database
Nach vorne
DB
Inhaltsverzeichnis
Einführung - DSN
-- Der
Data Source Name
Einführung - Connect
-- Datenverbindung aufbauen und beenden
Einführung - Abfrage
-- Abfragen durchführen
Einführung - Ergebnismengen
-- Daten aus einer Abfrage verarbeiten
Einführung - Prepare & Execute
-- Vorbereitung und Ausführung von SQL-Anweisungen
Einführung - autoPrepare & autoExecute
-- Automatische Vorbereitung und Ausführung von SQL-Anweisungen
Einführung - Portabilität
-- Funktionen zur Portabilität zwischen Datenbanken
Einführung - Sequenzen
-- Sequenzen und Auto-Inkrements
DB
-- Hauptklasse
DB::connect()
-- Connects to a database
DB::isError()
-- Determines if a variable is a DB_Error object
DB_common
-- Interface für den Datenbankzugriff
DB_common::affectedRows()
-- Finds number of rows affected by a data changing query
DB_common::autoCommit()
-- Turns auto-commit on or off
DB_common::autoExecute()
-- Prepares and runs an INSERT or UPDATE query based on variables you supply
DB_common::autoPrepare()
-- Prepares an INSERT or UPDATE statement based on variables you supply
DB_common::commit()
-- Commits the current transaction
DB_common::createSequence()
-- Creates a new sequence
DB_common::disconnect()
-- Disconnects from a database
DB_common::dropSequence()
-- Deletes a sequence
DB_common::escapeSimple()
-- Escapes a string according to the current DBMS's standards
DB_common::execute()
-- Executes a prepared SQL statment
DB_common::executeMultiple()
-- Runs a prepared SQL statment for each element of an array
DB_common::freePrepared()
-- Releases resources associated with a prepared SQL statement
DB_common::getAll()
-- Runs a query and returns all the data as an array
DB_common::getAssoc()
-- Runs a query and returns the data as an array
DB_common::getCol()
-- Runs a query and returns the data from a single column
DB_common::getListOf()
-- Views database system information
DB_common::getOne()
-- Runs a query and returns the first column of the first row
DB_common::getOption()
-- Determines current state of a PEAR DB configuration option
DB_common::getRow()
-- Runs a query and returns the first row
DB_common::limitQuery()
-- Sends a LIMIT query to the database
DB_common::nextId()
-- Returns the next number from a sequence
DB_common::nextQueryIsManip()
-- Informs the DB driver that the next query is a manipulation query
DB_common::prepare()
-- Prepares a SQL statement for later execution
DB_common::provides()
-- Checks if the DBMS supports a particular feature
DB_common::query()
-- Sends a query to the database
DB_common::quote()
-- DEPRECATED: Quotes a string
DB_common::quoteIdentifier()
-- Formats a string so it can be safely used as an identifier
DB_common::quoteSmart()
-- Formats input so it can be safely used as a literal
DB_common::rollback()
-- Rolls back the current transaction
DB_common::setFetchMode()
-- Sets the default fetch mode
DB_common::setOption()
-- Sets run-time configuration options for PEAR DB
DB_common::tableInfo()
-- Gets info about columns in a table or a query result
DB_result
-- DB-Ergebnismenge
DB_result::fetchInto()
-- Fetches a row of a result set into a variable
DB_result::fetchRow()
-- Fetches a row from a result set
DB_result::free()
-- Releases a result set
DB_result::nextResult()
-- Gets result sets from multiple queries
DB_result::numCols()
-- Gets number of columns in a result set
DB_result::numRows()
-- Gets number of rows in a result set
DB_Error
-- DB-Fehlerobjekt
Eine einheitliche Programmiererschnittstelle für den Datenbankzugriff.
Zurück
Zum Anfang
Nach vorne
Database
Nach oben
Einführung - DSN