Changeset 384 for trunk/docs


Ignore:
Timestamp:
Dec 2, 2008, 7:17:15 PM (11 years ago)
Author:
cito
Message:

Reimplemented "protocol_version" and "server_version" as attributes instead of methods.

Location:
trunk/docs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/changelog.txt

    r383 r384  
    3535- Removed compatibility code for old OID munging style.
    3636- Added "return_changes" flag to insert method.
    37 - Added protocol_version() and server_version() methods.
     37- Added "protocol_version" and "server_version" attributes.
     38- Revived the "user" attribute.
    3839
    3940Version 3.8.1 (2006-06-05)
  • trunk/docs/pg.txt

    r383 r384  
    523523  to the database. This is useful for use in select calls, etc.
    524524
    525 protocol_version - interrogates the frontend/backend protocol being used
    526 ------------------------------------------------------------------------
    527 Syntax::
    528 
    529   protocol_version()
    530 
    531 Parameters:
    532   None
    533 
    534 Exceptions raised:
    535   :TypeError: too many (any) arguments
    536 
    537 Description:
    538   Applications might wish to use this to determine whether certain
    539   features are supported. Currently, the possible values are 2
    540   (2.0 protocol), 3 (3.0 protocol), or zero (connection bad).
    541   This will not change after connection startup is complete,
    542   but it could theoretically change during a connection reset.
    543 
    544 server_version - interrogates the frontend/backend protocol being used
    545 ----------------------------------------------------------------------
    546 Syntax::
    547 
    548   server_version()
    549 
    550 Parameters:
    551   None
    552 
    553 Exceptions raised:
    554   :TypeError: too many (any) arguments
    555 
    556 Description:
    557   Applications might use this to determine the version of the database
    558   server they are connected to. The number is formed by converting
    559   the major, minor, and revision numbers into two-decimal-digit numbers
    560   and appending them together. For example, version 8.1.5 will be returned
    561   as 80105, and version 8.2 will be returned as 80200 (leading zeroes are
    562   not shown). Zero is returned if the connection is bad.
    563 
    564525getnotify - gets the last notify from the server
    565526------------------------------------------------
     
    741702connection and its status. These attributes are:
    742703
    743   :host:    the host name of the server (string)
    744   :port:    the port of the server (integer)
    745   :db:      the selected database (string)
    746   :options: the connection options (string)
    747   :tty:     the connection debug terminal (string)
    748   :user:    user name on the database system (string)
    749   :status:  the status of the connection (integer: 1 - OK, 0 - bad)
    750   :error:   the last warning/error message from the server (string)
     704  :host:             the host name of the server (string)
     705  :port:             the port of the server (integer)
     706  :db:               the selected database (string)
     707  :options:          the connection options (string)
     708  :tty:              the connection debug terminal (string)
     709  :user:             user name on the database system (string)
     710  :protocol_version: the frontend/backend protocol being used (integer)
     711  :server_version:   the backend version (integer, e.g. 80305 for 8.3.5)
     712  :status:           the status of the connection (integer: 1 - OK, 0 - bad)
     713  :error:            the last warning/error message from the server (string)
    751714
    752715
Note: See TracChangeset for help on using the changeset viewer.