index c4478fb327116774114f07ac0e21515b811ecef0..45d377e10df2ffb9ff28220b9c331f0410e47e0a 100644 (file)
/*
* sdb_fe_parse:
- * Parse the query text specified in 'query' and return a list of parse trees
- * (for each command) to be executed by sdb_fe_exec. The list has to be freed
- * by the caller.
+ * Parse the query text specified in 'query' of length 'len' and return a list
+ * of parse trees (for each command) to be executed by sdb_fe_exec. The list
+ * has to be freed by the caller. If 'len' is less than zero, parse the whole
+ * (nul-terminated) string.
*
* Returns:
* - an sdb_llist_t object of sdb_conn_node_t on success
* - NULL in case of an error
*/
sdb_llist_t *
-sdb_fe_parse(const char *query);
+sdb_fe_parse(const char *query, int len);
/*
* sdb_fe_exec:
- * Execute the command identified by 'node'.
+ * Execute the command identified by 'node' on the specified connection.
*
* Returns:
* - 0 on success
* - a negative value else
*/
int
-sdb_fe_exec(sdb_conn_node_t *node);
+sdb_fe_exec(sdb_conn_t *conn, sdb_conn_node_t *node);
/*
* session handling