Parse packet

The client sends a Parse packet to set up a prepared statement.

The packet object has the following methods:

  • String getPreparedStatementName() : gets the name to give to the prepared statements. Can be empty string for the default prepared statement.

  • void setPreparedStatementName(String s) : sets the name.

  • String getQuery() : gets the SQL query

  • void setQuery(String s) : sets the SQL query

  • List<Integer> getParameterTypes() : gets the OID of the type of the parameters, can be changed.