Module Rdf_pg

module Rdf_pg: sig .. end
Postgresql storage.

module PG: Postgresql
val dbg : ?loc:string -> ?level:int -> (unit -> string) -> unit
type t = {
   g_name :Rdf_uri.uri;
   g_table :string;
   g_dbd :PG.connection;
   mutable g_in_transaction :bool;
}
type error = string 
exception Error of string
val string_of_error : 'a -> 'a
val getvalue : < getvalue : 'a -> 'b -> 'c; .. > -> 'a -> 'b -> 'c
val getisnull : < getisnull : 'a -> 'b -> 'c; .. > -> 'a -> 'b -> 'c
val get_tuple : < get_tuple : 'a -> 'b; .. > -> 'a -> 'b
val quote_str : string -> string
val exec_query : PG.connection -> string -> PG.result
val exec_prepared : PG.connection -> string -> string list -> PG.result
val connect : Rdf_graph.options -> PG.connection
val hash_of_node : PG.connection -> ?add:bool -> Rdf_node.node -> int64
val table_options : string
val creation_queries : string list
val init_db : Rdf_graph.options -> PG.connection
val graph_table_of_id : int -> string
val graph_table_of_graph_name : ?first:bool -> PG.connection -> Rdf_uri.uri -> string
val table_exists : PG.connection -> string -> bool
val prepared_node_of_hash : string
val prepared_count_triples : string
val prepared_insert_triple : string
val prepared_delete_triple : string
val prepared_subjects_of : string
val prepared_predicates_of : string
val prepared_objects_of : string
val prepared_subject : string
val prepared_predicate : string
val prepared_object : string
val make_select_node_list : string -> string -> string -> string
val prepare_query : PG.connection -> string -> string -> unit
val prepare_queries : PG.connection -> string -> unit
val init_graph : PG.connection -> Rdf_uri.uri -> string
val node_of_hash : PG.connection -> int64 -> Rdf_node.node
val query_node_list : t -> string -> string list -> Rdf_node.node list
val query_triple_list : t -> string -> (Rdf_node.node * Rdf_node.node * Rdf_node.node) list
val open_graph : ?options:Rdf_graph.options -> Rdf_uri.uri -> t
val add_triple : t ->
sub:Rdf_node.node -> pred:Rdf_node.node -> obj:Rdf_node.node -> unit
val rem_triple : t ->
sub:Rdf_node.node -> pred:Rdf_node.node -> obj:Rdf_node.node -> unit
val subjects_of : t -> pred:Rdf_node.node -> obj:Rdf_node.node -> Rdf_node.node list
val predicates_of : t -> sub:Rdf_node.node -> obj:Rdf_node.node -> Rdf_node.node list
val objects_of : t -> sub:Rdf_node.node -> pred:Rdf_node.node -> Rdf_node.node list
val mk_where_clause : ?sub:Rdf_node.node ->
?pred:Rdf_node.node -> ?obj:Rdf_node.node -> t -> string
val find : ?sub:Rdf_node.node ->
?pred:Rdf_node.node ->
?obj:Rdf_node.node ->
t -> (Rdf_node.node * Rdf_node.node * Rdf_node.node) list
val exists : ?sub:Rdf_node.node ->
?pred:Rdf_node.node -> ?obj:Rdf_node.node -> t -> bool
val subjects : t -> Rdf_node.node list
val predicates : t -> Rdf_node.node list
val objects : t -> Rdf_node.node list
val transaction_start : t -> unit
val transaction_commit : t -> unit
val transaction_rollback : t -> unit
val new_blank_id : t -> Rdf_node.blank_id
module Postgresql: sig .. end