diff options
| author | krangelov <kr.angelov@gmail.com> | 2020-07-08 21:12:01 +0200 |
|---|---|---|
| committer | krangelov <kr.angelov@gmail.com> | 2020-07-08 21:12:01 +0200 |
| commit | 33818076ff553510b5e4a4d0295388d07ece2ec4 (patch) | |
| tree | b381152f5f8f8bb7847ed59ff75c0ae00af1f3ef /src/runtime/c/sg/sg.h | |
| parent | 47d1da0845814b947113a6786555e6d2672f6533 (diff) | |
drop the SG library completely.
Diffstat (limited to 'src/runtime/c/sg/sg.h')
| -rw-r--r-- | src/runtime/c/sg/sg.h | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/src/runtime/c/sg/sg.h b/src/runtime/c/sg/sg.h deleted file mode 100644 index 8e543a97c..000000000 --- a/src/runtime/c/sg/sg.h +++ /dev/null @@ -1,94 +0,0 @@ -#ifndef SG_SG_H_ -#define SG_SG_H_ - -typedef long long int SgId; - -#include <gu/exn.h> -#include <pgf/pgf.h> - -typedef struct SgSG SgSG; - -SgSG* -sg_open(const char *filename, GuExn* err); - -void -sg_close(SgSG *sg, GuExn* err); - -void -sg_begin_trans(SgSG* sg, GuExn* err); - -void -sg_commit(SgSG* sg, GuExn* err); - -void -sg_rollback(SgSG* sg, GuExn* err); - - -SgId -sg_insert_expr(SgSG *sg, PgfExpr expr, int wrFlag, GuExn* err); - -PgfExpr -sg_get_expr(SgSG *sg, SgId key, GuPool* out_pool, GuExn* err); - -typedef struct SgQueryExprResult SgQueryExprResult; - -SgQueryExprResult* -sg_query_expr(SgSG *sg, PgfExpr expr, GuPool* pool, GuExn* err); - -PgfExpr -sg_query_next(SgSG *sg, SgQueryExprResult* ctxt, SgId* pKey, GuPool* pool, GuExn* err); - -void -sg_query_close(SgSG* sg, SgQueryExprResult* ctxt, GuExn* err); - -void -sg_update_fts_index(SgSG* sg, PgfPGF* pgf, GuExn* err); - -GuSeq* -sg_query_linearization(SgSG *sg, GuString tok, GuPool* pool, GuExn* err); - - -typedef PgfExpr SgTriple[3]; - -SgId -sg_insert_triple(SgSG *sg, SgTriple triple, GuExn* err); - -int -sg_get_triple(SgSG *sg, SgId key, SgTriple triple, - GuPool* out_pool, GuExn* err); - -typedef struct SgTripleResult SgTripleResult; - -SgTripleResult* -sg_query_triple(SgSG *sg, SgTriple triple, GuExn* err); - -int -sg_triple_result_fetch(SgTripleResult* tres, SgId* pKey, SgTriple triple, - GuPool* out_pool, GuExn* err); - -void -sg_triple_result_get_query(SgTripleResult* tres, SgTriple triple); - -void -sg_triple_result_close(SgTripleResult* tres, GuExn* err); - -typedef struct SgQueryResult SgQueryResult; - -SgQueryResult* -sg_query(SgSG *sg, size_t n_triples, SgTriple* triples, GuExn* err); - -size_t -sg_query_result_columns(SgQueryResult* qres); - -int -sg_query_result_fetch_columns(SgQueryResult* qres, PgfExpr* res, - GuPool* out_pool, GuExn* err); - -PgfExpr -sg_query_result_fetch_expr(SgQueryResult* qres, PgfExpr expr, - GuPool* out_pool, GuExn* err); - -void -sg_query_result_close(SgQueryResult* qres, GuExn* err); - -#endif |
