package rdf_mysql

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Mysql storage common parts.

type t = {
  1. g_name : Iri.t;
  2. g_table : string;
  3. g_dbd : Mysql.dbd;
  4. mutable g_in_transaction : bool;
  5. g_transactions : bool;
}
type error = string
exception Error of string
val string_of_error : 'a -> 'a
module SMap = Rdf.Sparql_types.SMap
val exec_query : Mysql.dbd -> string -> Mysql.result
val exec_prepared : Mysql.dbd -> string -> string list -> Mysql.result
val db_of_options : Rdf.Graph.options -> Mysql.db
val mysql_quote_dbd : Mysql.dbd -> string -> string
val mysql_quote : t -> string -> string
val init_db : Mysql.db -> string list -> Mysql.dbd
val graph_table_of_id : int -> string
val graph_table_of_graph_name : ?first:bool -> Mysql.dbd -> Iri.t -> string
val nstable_of_graph_table : string -> string
val table_exists : Mysql.dbd -> string -> bool
val create_namespaces_table : Mysql.dbd -> string -> unit
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 prepared_cardinal : string
val prepared_namespaces : string
val prepared_delete_namespace : string
val prepared_insert_namespace : string
val make_select_term_list : string -> string -> string -> string
val prepare_query : Mysql.dbd -> string -> string -> unit
val prepare_queries : Mysql.dbd -> ?more:(string * string) list -> string -> unit
val namespaces : t -> (Iri.t * string) list
val rem_namespace : t -> string -> unit
val add_namespace : t -> Iri.t -> string -> unit
val set_namespaces : t -> (Iri.t * string) list -> unit
val graph_size : t -> int
val exists : (?sub:'a -> ?pred:'b -> ?obj:'c -> t -> string) -> ?sub:'a -> ?pred:'b -> ?obj:'c -> t -> bool
val transaction_start : t -> unit
val transaction_commit : t -> unit
val transaction_rollback : t -> unit
val new_blank_id : t -> Rdf.Term.blank_id
OCaml

Innovation. Community. Security.