NAME ^

php_pgsql.pir - PHP pgsql Library

DESCRIPTION ^

Functions ^

int pg_affected_rows(resource result)

Returns the number of affected tuples

NOT IMPLEMENTED.

bool pg_cancel_query(resource connection)

Cancel request

NOT IMPLEMENTED.

string pg_client_encoding([resource connection])

Get the current client encoding

NOT IMPLEMENTED.

bool pg_close([resource connection])

Close a PostgreSQL connection

NOT IMPLEMENTED.

resource pg_connect(string connection_string[, int connect_type] | [string host, string port [, string options [, string tty,]]] string database)

Open a PostgreSQL connection

NOT IMPLEMENTED.

bool pg_connection_busy(resource connection)

Get connection is busy or not

NOT IMPLEMENTED.

bool pg_connection_reset(resource connection)

Reset connection (reconnect)

NOT IMPLEMENTED.

int pg_connection_status(resource connnection)

Get connection status

NOT IMPLEMENTED.

array pg_convert(resource db, string table, array values[, int options])

Check and convert values for PostgreSQL SQL statement

NOT IMPLEMENTED.

bool pg_copy_from(resource connection, string table_name , array rows [, string delimiter [, string null_as]])

Copy table from array

NOT IMPLEMENTED.

array pg_copy_to(resource connection, string table_name [, string delimiter [, string null_as]])

Copy table to array

NOT IMPLEMENTED.

string pg_dbname([resource connection])

Get the database name

NOT IMPLEMENTED.

mixed pg_delete(resource db, string table, array ids[, int options])

Delete records has ids (id=>value)

NOT IMPLEMENTED.

bool pg_end_copy([resource connection])

Sync with backend. Completes the Copy command

NOT IMPLEMENTED.

string pg_escape_bytea([resource connection,] string data)

Escape binary for bytea type

NOT IMPLEMENTED.

string pg_escape_string([resource connection,] string data)

Escape string for text/char type

NOT IMPLEMENTED.

resource pg_execute([resource connection,] string stmtname, array params)

Execute a prepared query

NOT IMPLEMENTED.

array pg_fetch_all(resource result)

Fetch all rows into array

NOT IMPLEMENTED.

array pg_fetch_all_columns(resource result [, int column_number])

Fetch all rows into array

NOT IMPLEMENTED.

array pg_fetch_array(resource result [, int row [, int result_type]])

Fetch a row as an array

NOT IMPLEMENTED.

array pg_fetch_assoc(resource result [, int row])

Fetch a row as an assoc array

NOT IMPLEMENTED.

object pg_fetch_object(resource result [, int row [, string class_name [, NULL|array ctor_params]]])

Fetch a row as an object

NOT IMPLEMENTED.

mixed pg_fetch_result(resource result, [int row_number,] mixed field_name)

Returns values from a result identifier

NOT IMPLEMENTED.

array pg_fetch_row(resource result [, int row [, int result_type]])

Get a row as an enumerated array

NOT IMPLEMENTED.

int pg_field_is_null(resource result, [int row,] mixed field_name_or_number)

Test if a field is NULL

NOT IMPLEMENTED.

string pg_field_name(resource result, int field_number)

Returns the name of the field

NOT IMPLEMENTED.

int pg_field_num(resource result, string field_name)

Returns the field number of the named field

NOT IMPLEMENTED.

int pg_field_prtlen(resource result, [int row,] mixed field_name_or_number)

Returns the printed length

NOT IMPLEMENTED.

int pg_field_size(resource result, int field_number)

Returns the internal size of the field

NOT IMPLEMENTED.

mixed pg_field_table(resource result, int field_number[, bool oid_only])

Returns the name of the table field belongs to, or table's oid if oid_only is true

NOT IMPLEMENTED.

string pg_field_type(resource result, int field_number)

Returns the type name for the given field

NOT IMPLEMENTED.

string pg_field_type_oid(resource result, int field_number)

Returns the type oid for the given field

NOT IMPLEMENTED.

bool pg_free_result(resource result)

Free result memory

NOT IMPLEMENTED.

array pg_get_notify([resource connection[, result_type]])

Get asynchronous notification

NOT IMPLEMENTED.

int pg_get_pid([resource connection)

Get backend(server) pid

NOT IMPLEMENTED.

resource pg_get_result(resource connection)

Get asynchronous query result

NOT IMPLEMENTED.

string pg_host([resource connection])

Returns the host name associated with the connection

NOT IMPLEMENTED.

mixed pg_insert(resource db, string table, array values[, int options])

Insert values (filed=>value) to table

NOT IMPLEMENTED.

string pg_last_error([resource connection])

Get the error message string

NOT IMPLEMENTED.

string pg_last_notice(resource connection)

Returns the last notice set by the backend

NOT IMPLEMENTED.

string pg_last_oid(resource result)

Returns the last object identifier

NOT IMPLEMENTED.

bool pg_lo_close(resource large_object)

Close a large object

NOT IMPLEMENTED.

int pg_lo_create([resource connection])

Create a large object

NOT IMPLEMENTED.

bool pg_lo_export([resource connection, ] int objoid, string filename)

Export large object direct to filesystem

NOT IMPLEMENTED.

int pg_lo_import([resource connection, ] string filename)

Import large object direct from filesystem

NOT IMPLEMENTED.

resource pg_lo_open([resource connection,] int large_object_oid, string mode)

Open a large object and return fd

NOT IMPLEMENTED.

string pg_lo_read(resource large_object [, int len])

Read a large object

NOT IMPLEMENTED.

int pg_lo_read_all(resource large_object)

Read a large object and send straight to browser

NOT IMPLEMENTED.

bool pg_lo_seek(resource large_object, int offset [, int whence])

Seeks position of large object

NOT IMPLEMENTED.

int pg_lo_tell(resource large_object)

Returns current position of large object

NOT IMPLEMENTED.

bool pg_lo_unlink([resource connection,] string large_object_oid)

Delete a large object

NOT IMPLEMENTED.

int pg_lo_write(resource large_object, string buf [, int len])

Write a large object

NOT IMPLEMENTED.

array pg_meta_data(resource db, string table)

Get meta_data

NOT IMPLEMENTED.

int pg_num_fields(resource result)

Return the number of fields in the result

NOT IMPLEMENTED.

int pg_num_rows(resource result)

Return the number of rows in the result

NOT IMPLEMENTED.

string pg_options([resource connection])

Get the options associated with the connection

NOT IMPLEMENTED.

string|false pg_parameter_status([resource connection,] string param_name)

Returns the value of a server parameter

NOT IMPLEMENTED.

resource pg_pconnect(string connection_string | [string host, string port [, string options [, string tty,]]] string database)

Open a persistent PostgreSQL connection

NOT IMPLEMENTED.

bool pg_ping([resource connection])

Ping database. If connection is bad, try to reconnect.

NOT IMPLEMENTED.

int pg_port([resource connection])

Return the port number associated with the connection

NOT IMPLEMENTED.

resource pg_prepare([resource connection,] string stmtname, string query)

Prepare a query for future execution

NOT IMPLEMENTED.

bool pg_put_line([resource connection,] string query)

Send null-terminated string to backend server

NOT IMPLEMENTED.

resource pg_query([resource connection,] string query)

Execute a query

NOT IMPLEMENTED.

resource pg_query_params([resource connection,] string query, array params)

Execute a query

NOT IMPLEMENTED.

string pg_result_error(resource result)

Get error message associated with result

NOT IMPLEMENTED.

string pg_result_error_field(resource result, int fieldcode)

Get error message field associated with result

NOT IMPLEMENTED.

bool pg_result_seek(resource result, int offset)

Set internal row offset

NOT IMPLEMENTED.

mixed pg_result_status(resource result[, long result_type])

Get status of query result

NOT IMPLEMENTED.

mixed pg_select(resource db, string table, array ids[, int options])

Select records that has ids (id=>value)

NOT IMPLEMENTED.

bool pg_send_execute(resource connection, string stmtname, array params)

Executes prevriously prepared stmtname asynchronously

NOT IMPLEMENTED.

bool pg_send_prepare(resource connection, string stmtname, string query)

Asynchronously prepare a query for future execution

NOT IMPLEMENTED.

bool pg_send_query(resource connection, string query)

Send asynchronous query

NOT IMPLEMENTED.

bool pg_send_query_params(resource connection, string query)

Send asynchronous parameterized query

NOT IMPLEMENTED.

int pg_set_client_encoding([resource connection,] string encoding)

Set client encoding

NOT IMPLEMENTED.

int pg_set_error_verbosity([resource connection,] int verbosity)

Set error verbosity

NOT IMPLEMENTED.

bool pg_trace(string filename [, string mode [, resource connection]])

Enable tracing a PostgreSQL connection

NOT IMPLEMENTED.

int pg_transaction_status(resource connnection)

Get transaction status

NOT IMPLEMENTED.

string pg_tty([resource connection])

Return the tty name associated with the connection

NOT IMPLEMENTED.

string pg_unescape_bytea(string data)

Unescape binary for bytea type

NOT IMPLEMENTED.

bool pg_untrace([resource connection])

Disable tracing of a PostgreSQL connection

NOT IMPLEMENTED.

mixed pg_update(resource db, string table, array fields, array ids[, int options])

Update table using values (field=>value) and ids (id=>value)

NOT IMPLEMENTED.

array pg_version([resource connection])

Returns an array with client, protocol and server version (when available)

NOT IMPLEMENTED.


parrot