Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
c6d66142
Commit
c6d66142
authored
7 years ago
by
Stephen R. van den Berg
Browse files
Options
Downloads
Patches
Plain Diff
pgsql: Update docs.
parent
2e5304a2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/modules/Sql.pmod/pgsql.pike
+13
-25
13 additions, 25 deletions
lib/modules/Sql.pmod/pgsql.pike
lib/modules/Sql.pmod/pgsql_util.pmod
+2
-4
2 additions, 4 deletions
lib/modules/Sql.pmod/pgsql_util.pmod
with
15 additions
and
29 deletions
lib/modules/Sql.pmod/pgsql.pike
+
13
−
25
View file @
c6d66142
...
@@ -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);
}
}
...
...
This diff is collapsed.
Click to expand it.
lib/modules/Sql.pmod/pgsql_util.pmod
+
2
−
4
View file @
c6d66142
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment