]> granicus.if.org Git - php/commitdiff
Update README
authorYasuo Ohgaki <yohgaki@php.net>
Mon, 8 Apr 2002 01:50:06 +0000 (01:50 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Mon, 8 Apr 2002 01:50:06 +0000 (01:50 +0000)
ext/pgsql/README

index 2a93349d3f90cc9e8655ecdecbed1fed4269e239..2a1b0f4212581fd6334c10367314086d341468f3 100644 (file)
@@ -42,13 +42,15 @@ You cannot specify PostgreSQL source directly to build PostgreSQL
 module with specific version. You need to install PostgreSQL 
 somewhere in your system to build PHP with PostgreSQL support.
 
-==== Note For PostgreSQL 7.2 beta ====
-Current CVS version (probably 4.0.6 or later) compiles without
-modefication.
+==== Note For PostgreSQL 7.2 ====
+I've tested upto 7.2.1.
 
 ==== TODO List ===
-pg_convert_array() - convert array elements for SQL statement.
-Support async connection create.
+Make pg_convert() smater. 
+ - Better regex
+ - User defiend type support
+Support async connection.
+Support async notification.
 
 ==== Experimental Functions =====
 
@@ -173,20 +175,49 @@ Seeks position of large object
 
 --------------------------------------------------------------------
 
-Notice messge function
+Notice message function
 
 --------------------------------------------------------------------
 
 string pg_last_notice(resource connection)
 Returns the last notice set by the backend 
-Currently pg_last_notice() does not return notice message associated
-with the connection.
+
+This function is fully implemed in only in current CVS version.
+PHP 4.3.0 supposed to included fully implemented version.
 
 NOTE: Added in PHP 4.0.6, but there is bug in notice message handling
 in PHP 4.0.6. Do no use 4.0.6 with pgsql module!!
 
 --------------------------------------------------------------------
 
+Utility functions (for PHP 4.3.0)
+
+--------------------------------------------------------------------
+array pg_metadata(resource db, string table)
+   Get metadata
+
+--------------------------------------------------------------------
+array pg_convert(resource db, string table, array values)
+   Check and convert values for PostgreSQL SQL statement
+
+--------------------------------------------------------------------
+bool pg_insert(resource db, string table, array values[, bool convert[, bool async]])
+   Insert values (filed=>value) to table 
+
+--------------------------------------------------------------------
+bool pg_update(resource db, string table, array fields, array ids[, bool convert[, bool async]])
+   Update table using values (field=>value) and ids (id=>value) 
+
+--------------------------------------------------------------------
+bool pg_delete(resource db, string table, array ids[, bool convert[, bool async]])
+   Delete records has ids (id=>value) 
+
+--------------------------------------------------------------------
+array pg_select(resource db, string table, array ids[, bool convert])
+   Select records that has ids (id=>value) 
+
+--------------------------------------------------------------------
+
 Again, experimental functions are subject to be changed without 
 notice.