Merge pull request #145 from turnerdev/patch-lib-c-example

Missing `immutable_query` arg in lib-c example
main
Ziyang Hu 1 year ago committed by GitHub
commit 2d5a3c927a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,7 +12,7 @@
void run_query(int32_t db_id, const char *query) { void run_query(int32_t db_id, const char *query) {
const char *empty_params = "{}"; const char *empty_params = "{}";
char *res; char *res;
res = cozo_run_query(db_id, query, empty_params); res = cozo_run_query(db_id, query, empty_params, false);
printf("%s\n", res); printf("%s\n", res);
cozo_free_str(res); cozo_free_str(res);
} }
@ -32,4 +32,4 @@ int main() {
cozo_close_db(db_id); cozo_close_db(db_id);
return 0; return 0;
} }

Loading…
Cancel
Save