diff options
| author | krasimir <krasimir@chalmers.se> | 2016-02-09 10:59:18 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2016-02-09 10:59:18 +0000 |
| commit | 55a7fdc4a5e65be463ee99a963c31435f8365885 (patch) | |
| tree | d1e0ae6603b2db1f06928236778fb5135d0dcd85 /src/runtime/c/sg/sg.h | |
| parent | 114dc54bf9a986b3559c3cc376c9951a55336ba0 (diff) | |
some progress on complex queries in libsg
Diffstat (limited to 'src/runtime/c/sg/sg.h')
| -rw-r--r-- | src/runtime/c/sg/sg.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/runtime/c/sg/sg.h b/src/runtime/c/sg/sg.h index 6ef57584d..a94c28cb7 100644 --- a/src/runtime/c/sg/sg.h +++ b/src/runtime/c/sg/sg.h @@ -25,7 +25,7 @@ sg_rollback(SgSG* sg, GuExn* err); SgId -sg_insert_expr(SgSG *sg, PgfExpr expr, GuExn* err); +sg_insert_expr(SgSG *sg, PgfExpr expr, int wrFlag, GuExn* err); PgfExpr sg_get_expr(SgSG *sg, SgId key, GuPool* out_pool, GuExn* err); @@ -61,17 +61,13 @@ sg_triple_result_get_query(SgTripleResult* tres, SgTriple triple); void sg_triple_result_close(SgTripleResult* tres, GuExn* err); -typedef int SgPattern[3]; - -typedef struct { - SgId* sel; - SgId* vars; - size_t n_patterns; - SgPattern patterns[]; -} SgQuery; - +typedef struct SgQuery SgQuery; typedef struct SgQueryResult SgQueryResult; +SgQuery* +sg_prepare_query(SgSG *sg, size_t n_triples, SgTriple* triples, + GuPool* pool, GuExn* err); + SgQueryResult* sg_query(SgSG *sg, SgQuery* query, GuExn* err); |
