Lines Matching refs:conn
10 $conn = pg_connect($conn_str);
17 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 1));
18 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 2));
19 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 2));
20 pg_insert($conn, 'foo', array('id' => 3, 'id2' => 3));
22 pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 1));
23 pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 2));
24 pg_insert($conn, 'phptests.foo', array('id' => 2, 'id2' => 3));
25 pg_insert($conn, 'phptests.foo', array('id' => 2, 'id2' => 3));
27 pg_delete($conn, 'foo', array('id' => 1, 'id2' => 0));
28 pg_delete($conn, 'foo', array('id' => 1, 'id2' => 2));
29 var_dump(pg_delete($conn, 'foo', array('id' => 1, 'id2' => 2), PGSQL_DML_STRING));
31 pg_delete($conn, 'phptests.foo', array('id' => 2, 'id2' => 1));
32 pg_delete($conn, 'phptests.foo', array('id' => 2, 'id2' => 3));
33 var_dump(pg_delete($conn, 'phptests.foo', array('id' => 2, 'id2' => 3), PGSQL_DML_STRING));
39 pg_delete($conn, 'bar', array('id' => 1, 'id2' => 2));
40 var_dump(pg_delete($conn, 'bar', array('id' => 1, 'id2' => 2), PGSQL_DML_STRING));