Forum OpenACS Q&A: Response to Documentation on Postresql driver?

Collapse
Posted by Roberto Mello on
I looked through the source code and found the following ns_pg functions. They are not documented well, and we need to change that. I'll add description to the best of my knowledge here. Please correct/add something I forget here:

  • ns_pg ntuples: number of rows affected by the last statement.
  • ns_pg db: returns name of database.
  • ns_pg host: ditto
  • ns_pg options: ditto
  • ns_pg port: ditto
  • ns_pg error: returns error in last statement.
  • ns_pg status: status of connection

When the driver is compiled with the FOR_ACS_USE flag, you also have these:

  • ns_pg blob_write
  • ns_pg blob_dml_file
  • ns_pg blob_select_file
  • ns_pg blob_put