Lines Matching refs:db
46 $db = pg_connect($conn_str);
47 pg_query($db, "CREATE TABLE {$table_name} (num int, str text, bin bytea)");
50 $escaped_data = pg_escape_bytea($db, $data);
51 pg_query($db, "DELETE FROM ".$table_name." WHERE num = 10000;");
53 pg_query($db, $sql);
58 $result = pg_query($db, $sql);
67 @pg_query($db, "SET bytea_output = 'escape'");
70 $result = pg_query($db, $sql);
79 $after = pg_escape_literal($db, $before);
92 $after = pg_escape_identifier($db, $before);
109 $db = pg_connect($conn_str);
110 pg_query($db, "DROP TABLE IF EXISTS {$table_name}");