Examples
-Here's a small example of how to use the routines:
+ >
+ Here's a small example of how to use the routines:
+
# getDBs :
# get the names of all the databases at a given host and port number
# with the defaults being the localhost and port 5432
return $datnames
}
-
->
+
+ >
-
Built in registered functions
+
Server-side Built-in Functions
There are two built-in registered functions,
lo_import
-sample">
-
Sample Program
+example">
+
Example Program
+
+
Large Objects with Libpq Example Program
/*--------------------------------------------------------------
*
#define BUFSIZE 1024
/*
- * importFile * import file "in_filename" into database as large object "lob
-jOid"
+ * importFile
+ * import file "in_filename" into database as large object "lobjOid"
*
*/
Oid
exit(0);
}
-para>
+example>