database.pgsql.inc

Version

1.29.2.4 (checked in on 2006/11/15 at 21:51:38 by killes)

Description

Database interface code for PostgreSQL database servers.

Functions

Namesort iconDescription
db_affected_rowsDetermine the number of rows changed by the preceding query.
db_check_setupVerify if the database is set up correctly.
db_connectInitialize a database connection.
db_decode_blobReturns text from a Binary Large OBject value. In case of PostgreSQL decodes data after select from bytea field.
db_distinct_fieldWraps the given table.field entry with a DISTINCT(). The wrapper is added to the SELECT list entry of the given query and the resulting query is returned. This function only applies the wrapper if a DISTINCT doesn't already exist in the query.
db_encode_blobReturns a properly formatted Binary Large OBject value. In case of PostgreSQL encodes data for insert into bytea field.
db_errorDetermine whether the previous query caused an error.
db_escape_stringPrepare user input for use in a database query, preventing SQL injection attacks. Note: This function requires PostgreSQL 7.2 or later.
db_fetch_arrayFetch one result row from the previous query as an array.
db_fetch_objectFetch one result row from the previous query as an object.
db_lock_tableLock a table. This function automatically starts a transaction.
db_next_idReturn a new unique ID in the given sequence.
db_num_rowsDetermine how many result rows were found by the preceding query.
db_query_rangeRuns a limited-range query in the active database.
db_query_temporaryRuns a SELECT query and stores its results in a temporary table.
db_resultReturn an individual result field from the previous query.
db_unlock_tablesUnlock all locked tables. This function automatically commits a transaction.
_db_queryHelper function for db_query().
 
 

Drupal is a registered trademark of Dries Buytaert.