Skip to content
Snippets Groups Projects
Commit c6d66142 authored by Stephen R. van den Berg's avatar Stephen R. van den Berg
Browse files

pgsql: Update docs.

parent 2e5304a2
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
//! @ul //! @ul
//! @item //! @item
//! PostgreSQL network protocol version 3, authentication methods //! PostgreSQL network protocol version 3, authentication methods
//! currently supported are: cleartext and MD5 (recommended). //! currently supported are: cleartext, md5 and scram (recommended).
//! @item //! @item
//! Streaming queries which do not buffer the whole resultset in memory. //! Streaming queries which do not buffer the whole resultset in memory.
//! @item //! @item
...@@ -312,8 +312,7 @@ protected void create(void|string host, void|string database, ...@@ -312,8 +312,7 @@ protected void create(void|string host, void|string database,
//! @[reload()], @[resync()] //! @[reload()], @[resync()]
//! //!
//! @note //! @note
//! This function is PostgreSQL-specific, and thus it is not available //! This function is PostgreSQL-specific.
//! through the generic SQL-interface.
/*semi*/final void cancelquery() { /*semi*/final void cancelquery() {
PD("CancelRequest\n"); PD("CancelRequest\n");
.pgsql_util.conxion lcon = .pgsql_util.conxion(this, 0, 2); .pgsql_util.conxion lcon = .pgsql_util.conxion(this, 0, 2);
...@@ -387,8 +386,7 @@ protected void create(void|string host, void|string database, ...@@ -387,8 +386,7 @@ protected void create(void|string host, void|string database,
//! @url{http://www.postgresql.org/search/?u=%2Fdocs%2Fcurrent%2F&q=client+connection+search_path@} //! @url{http://www.postgresql.org/search/?u=%2Fdocs%2Fcurrent%2F&q=client+connection+search_path@}
//! //!
//! @note //! @note
//! This function is PostgreSQL-specific, and thus it is not available //! This function is PostgreSQL-specific.
//! through the generic SQL-interface.
/*semi*/final mapping(string:string) getruntimeparameters() { /*semi*/final mapping(string:string) getruntimeparameters() {
waitauthready(); waitauthready();
return _runtimeparameter+([]); return _runtimeparameter+([]);
...@@ -429,8 +427,7 @@ protected void create(void|string host, void|string database, ...@@ -429,8 +427,7 @@ protected void create(void|string host, void|string database,
//! @endmapping //! @endmapping
//! //!
//! @note //! @note
//! This function is PostgreSQL-specific, and thus it is not available //! This function is PostgreSQL-specific.
//! through the generic SQL-interface.
/*semi*/final mapping(string:mixed) getstatistics() { /*semi*/final mapping(string:mixed) getstatistics() {
mapping(string:mixed) stats=([ mapping(string:mixed) stats=([
"warnings_dropped":warningsdropcount, "warnings_dropped":warningsdropcount,
...@@ -455,8 +452,7 @@ protected void create(void|string host, void|string database, ...@@ -455,8 +452,7 @@ protected void create(void|string host, void|string database,
//! The previous cachedepth. //! The previous cachedepth.
//! //!
//! @note //! @note
//! This function is PostgreSQL-specific, and thus it is not available //! This function is PostgreSQL-specific.
//! through the generic SQL-interface.
/*semi*/final int setcachedepth(void|int newdepth) { /*semi*/final int setcachedepth(void|int newdepth) {
int olddepth=cachedepth; int olddepth=cachedepth;
if(!undefinedp(newdepth) && newdepth>=0) if(!undefinedp(newdepth) && newdepth>=0)
...@@ -471,8 +467,7 @@ protected void create(void|string host, void|string database, ...@@ -471,8 +467,7 @@ protected void create(void|string host, void|string database,
//! The previous timeout. //! The previous timeout.
//! //!
//! @note //! @note
//! This function is PostgreSQL-specific, and thus it is not available //! This function is PostgreSQL-specific.
//! through the generic SQL-interface.
/*semi*/final int settimeout(void|int newtimeout) { /*semi*/final int settimeout(void|int newtimeout) {
int oldtimeout=timeout; int oldtimeout=timeout;
if(!undefinedp(newtimeout) && newtimeout>0) if(!undefinedp(newtimeout) && newtimeout>0)
...@@ -487,8 +482,7 @@ protected void create(void|string host, void|string database, ...@@ -487,8 +482,7 @@ protected void create(void|string host, void|string database,
//! The previous portalbuffersize. //! The previous portalbuffersize.
//! //!
//! @note //! @note
//! This function is PostgreSQL-specific, and thus it is not available //! This function is PostgreSQL-specific.
//! through the generic SQL-interface.
/*semi*/final int setportalbuffersize(void|int newportalbuffersize) { /*semi*/final int setportalbuffersize(void|int newportalbuffersize) {
int oldportalbuffersize=portalbuffersize; int oldportalbuffersize=portalbuffersize;
if(!undefinedp(newportalbuffersize) && newportalbuffersize>0) if(!undefinedp(newportalbuffersize) && newportalbuffersize>0)
...@@ -503,8 +497,7 @@ protected void create(void|string host, void|string database, ...@@ -503,8 +497,7 @@ protected void create(void|string host, void|string database,
//! The previous fetchlimit. //! The previous fetchlimit.
//! //!
//! @note //! @note
//! This function is PostgreSQL-specific, and thus it is not available //! This function is PostgreSQL-specific.
//! through the generic SQL-interface.
/*semi*/final int setfetchlimit(void|int newfetchlimit) { /*semi*/final int setfetchlimit(void|int newfetchlimit) {
int oldfetchlimit=_fetchlimit; int oldfetchlimit=_fetchlimit;
if(!undefinedp(newfetchlimit) && newfetchlimit>=0) if(!undefinedp(newfetchlimit) && newfetchlimit>=0)
...@@ -1328,8 +1321,7 @@ private void procmessage() { ...@@ -1328,8 +1321,7 @@ private void procmessage() {
//! terminated instantly. //! terminated instantly.
//! //!
//! @note //! @note
//! This function is PostgreSQL-specific, and thus it is not available //! This function is PostgreSQL-specific.
//! through the generic SQL-interface.
/*semi*/final void close() { /*semi*/final void close() {
throwdelayederror(this); throwdelayederror(this);
Thread.MutexKey lock; Thread.MutexKey lock;
...@@ -1423,8 +1415,7 @@ private void sendsync() { ...@@ -1423,8 +1415,7 @@ private void sendsync() {
//! @[cancelquery()], @[reload()] //! @[cancelquery()], @[reload()]
//! //!
//! @note //! @note
//! This function is PostgreSQL-specific, and thus it is not available //! This function is PostgreSQL-specific.
//! through the generic SQL-interface.
/*semi*/final void resync() { /*semi*/final void resync() {
mixed err; mixed err;
if(is_open()) { if(is_open()) {
...@@ -1490,8 +1481,7 @@ private void sendsync() { ...@@ -1490,8 +1481,7 @@ private void sendsync() {
//! Extra arguments to pass to @ref{notify_cb@}. //! Extra arguments to pass to @ref{notify_cb@}.
//! //!
//! @note //! @note
//! This function is PostgreSQL-specific, and thus it is not available //! This function is PostgreSQL-specific.
//! through the generic SQL-interface.
/*semi*/final void set_notify_callback(string condition, /*semi*/final void set_notify_callback(string condition,
void|function(int,string,string,mixed ...:void) notify_cb,void|int selfnotify, void|function(int,string,string,mixed ...:void) notify_cb,void|int selfnotify,
mixed ... args) { mixed ... args) {
...@@ -1545,8 +1535,7 @@ private void runcallback(int pid,string condition,string extrainfo) { ...@@ -1545,8 +1535,7 @@ private void runcallback(int pid,string condition,string extrainfo) {
//! @[big_query()], @[quote()] //! @[big_query()], @[quote()]
//! //!
//! @note //! @note
//! This function is PostgreSQL-specific, and thus it is not available //! This function is PostgreSQL-specific.
//! through the generic SQL-interface.
/*semi*/final string quotebinary(string s) { /*semi*/final string quotebinary(string s) {
return replace(s, ({ "'", "\\", "\0" }), ({ "''", "\\\\", "\\000" }) ); return replace(s, ({ "'", "\\", "\0" }), ({ "''", "\\\\", "\\000" }) );
} }
...@@ -1777,8 +1766,7 @@ private string trbackendst(int c) { ...@@ -1777,8 +1766,7 @@ private string trbackendst(int c) {
//! @endstring //! @endstring
//! //!
//! @note //! @note
//! This function is PostgreSQL-specific, and thus it is not available //! This function is PostgreSQL-specific.
//! through the generic SQL-interface.
final string status_commit() { final string status_commit() {
return trbackendst(backendstatus); return trbackendst(backendstatus);
} }
......
...@@ -699,8 +699,7 @@ class sql_result { ...@@ -699,8 +699,7 @@ class sql_result {
//! @[affected_rows()] //! @[affected_rows()]
//! //!
//! @note //! @note
//! This function is PostgreSQL-specific, and thus it is not available //! This function is PostgreSQL-specific.
//! through the generic SQL-interface.
/*semi*/final string status_command_complete() { /*semi*/final string status_command_complete() {
return statuscmdcomplete; return statuscmdcomplete;
} }
...@@ -711,8 +710,7 @@ class sql_result { ...@@ -711,8 +710,7 @@ class sql_result {
//! @[status_command_complete()] //! @[status_command_complete()]
//! //!
//! @note //! @note
//! This function is PostgreSQL-specific, and thus it is not available //! This function is PostgreSQL-specific.
//! through the generic SQL-interface.
/*semi*/final int affected_rows() { /*semi*/final int affected_rows() {
int rows; int rows;
if(statuscmdcomplete) if(statuscmdcomplete)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment