From 33818076ff553510b5e4a4d0295388d07ece2ec4 Mon Sep 17 00:00:00 2001 From: krangelov Date: Wed, 8 Jul 2020 21:12:01 +0200 Subject: drop the SG library completely. --- src/runtime/c/sg/sg.h | 94 --------------------------------------------------- 1 file changed, 94 deletions(-) delete mode 100644 src/runtime/c/sg/sg.h (limited to 'src/runtime/c/sg/sg.h') 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 -#include - -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 -- cgit v1.2.3