Connect to the database server with the provided connection string conninfo.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | conninfo |
PostgreSQL connection string |
Connect to the database server with connection infomation provided as pairs of keywords and values arrays.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | keywords(:) |
Keywords, such as |
||
| character(len=*), | intent(in) | :: | values(:) |
The array of each value corresponding to that keyword. |
||
| integer | :: | expand_dbname |
Connect to the database server with connection infomation provided as each argument
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | host |
Hostname |
||
| character(len=*), | intent(in) | :: | port |
Port number |
||
| character(len=*), | intent(in) | :: | options |
Options |
||
| character(len=*), | intent(in) | :: | tty |
Empty string |
||
| character(len=*), | intent(in) | :: | dbName |
The name of the database |
||
| character(len=*), | intent(in) | :: | login |
The user name at this login |
||
| character(len=*), | intent(in) | :: | pwd |
The password of the user |
Connect to the database server in a nonblocking manner.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | keywords(:) | |||
| character(len=*), | intent(in) | :: | values(:) | |||
| integer | :: | expand_dbname |
Connect to the database server in a nonblocking manner.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | conninfo |
Connect to the database server in a nonblocking manner.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | keywords(:) | |||
| character(len=*), | intent(in) | :: | values(:) | |||
| integer, | intent(in) | :: | expand_dbname |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | conninfo |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn | |||
| character(len=*), | intent(in) | :: | paramName |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
Returns the error message most recently generated by an operation on the connection.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
Obtain the file descriptor number of the connection socket to the server.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
Returns the process ID (PID) of the backend process handling this connection.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
Retuens true if the connection authentication method required a password, but none was available. Returns false if not.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
Returns true if the connection authentication method used a password. Returns false if not.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
Requests that the server abandon processing of the current command.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | cancel | |||
| character(len=*), | intent(inout) | :: | errbuf | |||
| integer(kind=int32), | intent(in) | :: | errbufsize |
Returns the client encoding.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn | |||
| character(len=*), | intent(in) | :: | encoding |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn | |||
| integer(kind=int32), | intent(in) | :: | verbosity |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn | |||
| integer(kind=int32), | intent(in) | :: | show_context |
Return the default connection options.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(PQconninfoOption), | intent(out), | dimension(:), allocatable, target | :: | options |
Returns the connection options used by a live connection.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn | |||
| type(PQconninfoOption), | intent(out), | dimension(:), allocatable, target | :: | options |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | conninfo | |||
| type(PQconninfoOption), | intent(out), | dimension(:), allocatable, target | :: | options | ||
| character(len=*), | intent(out) | :: | errmsg | |||
| logical | :: | errflag |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(inout) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(inout) | :: | conn |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn | |||
| character(len=*), | intent(in) | :: | attribute_name | |||
| character(len=:), | allocatable | :: | resultstr |
Subroutine for retrieving SSL attribute names from a PostgreSQL database connection and populating an array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | conn | |||
| character(len=len), | allocatable | :: | strings(:) | |||
| integer(kind=int32), | intent(in) | :: | len |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | cancel |