The connection to the server.
* public (readonly) string $name
The identifiying name of the prepared statement.
+* public (readonly) string $query
+ The query string used to prepare the statement.
+* public (readonly) array $types
+ List of corresponding query parameter type OIDs for the prepared statement.
--- /dev/null
+# void pq\Statement::deallocate()
+
+Free the server resources used by the prepared statement, so it can no longer be executed.
+This is done implicitly when the object is destroyed.
+
+## Params:
+
+None.
+
+## Throws:
+
+* pq\Exception\InvalidArgumentException
+* pq\Exception\BadMethodCallException
+* pq\Exception\RuntimeException
+
+## Example:
+
+ <?php
+
+ $connection = new pq\Connection;
+ $types = new pq\Types($connection);
+ $statement = $connection->prepare("st1",
+ "SELECT \$1, \$2", [pq\Types::XML, pq\Types::JSON]);
+
+ // some code which executes the statement
+
+ $statement->deallocate();
+
+ ?>
+
--- /dev/null
+# void pq\Statement::deallocateAsync()
+
+[Asynchronously](pq/Connection/: Asynchronous Usage) free the server resources used by the
+prepared statement, so it can no longer be executed.
+
+## Params:
+
+None.
+
+## Throws:
+
+* pq\Exception\InvalidArgumentException
+* pq\Exception\BadMethodCallException
+* pq\Exception\RuntimeException
+
--- /dev/null
+# void pq\Statement::prepare()
+
+Re-prepare a statement that has been deallocated. This is a no-op on already open statements.
+
+## Params:
+
+None.
+
+## Throws:
+
+* pq\Exception\InvalidArgumentException
+* pq\Exception\BadMethodCallException
+* pq\Exception\RuntimeException
+
+## Example:
+
+ <?php
+
+ $connection = new pq\Connection;
+ $types = new pq\Types($connection);
+ $statement = $connection->prepare("st1",
+ "SELECT \$1, \$2", [pq\Types::XML, pq\Types::JSON]);
+
+ // some code which executes the statement
+
+ $statement->deallocate();
+ $statement->prepare();
+
+ ?>
+
--- /dev/null
+# void pq\Statement::prepareAsync()
+
+[Asynchronously](pq/Connection/: Asynchronous Usage) re-prepare a statement that has been
+deallocated. This is a no-op on already open statements.
+
+## Params:
+
+None.
+
+## Throws:
+
+* pq\Exception\InvalidArgumentException
+* pq\Exception\BadMethodCallException
+* pq\Exception\RuntimeException
+