PQsendPrepare Interface

public interface PQsendPrepare

Contents


Module Procedures

private function PQsendPrepare_int32(conn, stmtName, query, nParams, paramTypes) result(res)

Sends a request to create a prepared statement with the given parameters, without waiting for completion.

This is an asynchronous version of PQprepare: it returns 1 if it was able to dispatch the request, and 0 if not. After a successfull call, call PQgetResult to determine whether the server successfully created the prepared statement. The function's parameters are handled identically to PQprepare.

cf. PostgreSQL Documentation

Arguments

Type IntentOptional Attributes Name
type(c_ptr), intent(in) :: conn
character(len=*), intent(in) :: stmtName
character(len=*), intent(in) :: query
integer(kind=int32), intent(in) :: nParams
integer(kind=int32), intent(in) :: paramTypes(:)

Return Value integer(kind=int32)

private function PQsendPrepare_int64(conn, stmtName, query, nParams, paramTypes) result(res)

Sends a request to create a prepared statement with the given parameters, without waiting for completion.

This is an asynchronous version of PQprepare: it returns 1 if it was able to dispatch the request, and 0 if not. After a successfull call, call PQgetResult to determine whether the server successfully created the prepared statement. The function's parameters are handled identically to PQprepare.

cf. PostgreSQL Documentation cf. PostgreSQL Documentation

Arguments

Type IntentOptional Attributes Name
type(c_ptr), intent(in) :: conn
character(len=*), intent(in) :: stmtName
character(len=*), intent(in) :: query
integer(kind=int32), intent(in) :: nParams
integer(kind=int64), intent(in) :: paramTypes(:)

Return Value integer(kind=int32)