typo
[mdref/mdref-pq] / pq / LOB / write.md
1 # int pq\LOB::write(string $data)
2
3 Write data to the *large object*.
4
5 ## Params:
6
7 * string $data
8 The data that should be writte to the current position.
9
10 ## Returns:
11
12 * int, the number of bytes written.
13
14 ## Throw:
15
16 * pq\Exception\InvalidArgumentException
17 * pq\Exception\BadMethodCallException
18 * pq\Exception\RuntimeException
19
20 ## Example:
21
22 <?php
23
24 $connection = new pq\Connection;
25 $transaction = $connection->startTransaction();
26
27 $transaction->createLOB()->write("Hello World!");
28 $transaction->rollback();
29
30 ?>