Query packet

The client sends a Query packet to run a SQL command or query directly, i.e. without a prepared statement or cursor/portal.

The packet object has the following methods:

  • String getQuery() : get the text of the SQL command or query

  • void setQuery(String) : set the text of the SQL command or query

A common use of query filters is to reject or modify certain queries.