Makes a new connection to the database server
Starts creation of a connection to the database server in a nonblocking manner
Try to cancel query
If input is available from the server, consume it
Get result after PQexec* functions or throw exception if pull is empty
Returns the error message most recently generated by an operation on the connection
Get next result after sending a non-blocking commands. Can return null.
Returns the blocking status of the database connection
Useful only for non-blocking operations.
Obtains the file descriptor number of the connection socket to the server
Obtains duplicate file descriptor number of the connection socket to the server
Useful only for non-blocking operations.
Begin reset the communication channel to the server, in a nonblocking manner
Sets or examines the current notice processor
Select single-row mode for the currently-executing query
Obtains std.socket.Socket of the connection to the server
Returns the status of the connection
Returns the current in-transaction status of the server. The status can be: * PQTRANS_IDLE - currently idle * PQTRANS_ACTIVE - a command is in progress (reported only when a query has been sent to the server and not yet completed) * PQTRANS_INTRANS - idle, in a valid transaction block * PQTRANS_INERROR - idle, in a failed transaction block * PQTRANS_UNKNOWN - reported if the connection is bad
Perform SQL query to DB It uses the old wire protocol and all values are returned in textual form. This means that the dpq2.conv.to_d_types.as template will likely not work for anything but strings. Try to used execParams instead, even if now parameters are present.
Perform SQL query to DB
Submits a command to the server without waiting for the result(s)
Submits a command and separate parameters to the server without waiting for the result(s)
Sends a request to execute a prepared statement with given parameters, without waiting for the result(s)
Returns null if no notifies was received
Submits a request to create a prepared statement with the given parameters, and waits for completion.
Submits a request to create a prepared statement with the given parameters, and waits for completion.
Submits a request to execute a prepared statement with given parameters, and waits for completion.
Sends a request to create a prepared statement with the given parameters, without waiting for completion.
Submits a request to obtain information about the specified prepared statement, and waits for completion.
Submits a request to obtain information about the specified prepared statement, without waiting for completion.
Sends a buffer of CSV data to the COPY command
Signals that COPY data send is finished. Finalize and flush the COPY command.
Signals that COPY data send is finished.
Connection