PQsendQueryParams Interface

public interface PQsendQueryParams

Contents


Module Procedures

private function PQsendQueryParams_int32(conn, command, nParams, paramTypes, paramValues) result(res)

Submit a command and separate parameter to the server without waiting for the result(s). This is equivalent to PQsendQuery, except that query parameters can be specified separately form the query string. This function's parameters are handled identically PQexecParams. Like PQexecParams, it allows only one command in the query.

cf. PostgreSQL Documentation

Arguments

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

Return Value integer(kind=int32)

private function PQsendQueryParams_int64(conn, command, nParams, paramTypes, paramValues) result(res)

Submit a command and separate parameter to the server without waiting for the result(s). This is equivalent to PQsendQuery, except that query parameters can be specified separately form the query string. This function's parameters are handled identically PQexecParams. Like PQexecParams, it allows only one command in the query.

cf. PostgreSQL Documentation

Arguments

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

Return Value integer(kind=int32)