fix docs, add missing "}", fix formatting
[mdref/mdref-pq] / pq / Connection / escapeBytea.md
1 # string pq\Connection::escapeBytea(string $binary)
2
3 Escape binary data for use within a query with the type bytea.
4
5 > ***NOTE:***
6 The result is not wrapped in single quotes.
7
8 ## Params:
9
10 * string $binary
11 The binary data to escape.
12
13 ## Returns:
14
15 * string, the escaped binary data.
16 * FALSE, if escaping fails.
17
18 ## Throws:
19
20 * pq\Exception\BadMethodCallException