Pelzini

This is the code documentation for the Pelzini project

file /viewer/database_postgresql.php

Namespace: viewer

Available since:

View source


The PostgreSQL wrapper functions

Authors

Functions

db_affected_rows

Returns the number of rows affected by the last PostgreSQL query that was executed

db_connect

Connects to the PostgreSQL database

db_escape

Escapses a string for use by the PostgreSQL database

db_fetch_assoc

Fetches a PostgreSQL result set as an associative array

db_insert_id

Returns the last unique ID generated by a query

db_num_rows

Returns the number of rows in a PostgreSQL result set

db_query

Makes a query to the PostgreSQL database

db_quote

Quotes a string as nessasary for use by hte PostgreSQL database
The result will be different depending on the type of the input.
 - a number will be left as is
 - a string will be quoted
 - a null value will be returned as NULL