package datalog

  1. Overview
  2. Docs
type ('a, 'b) t
val name : ('a, 'b) t -> string
val create : ?k1:'a Univ.key -> ?k2:'b Univ.key -> string -> ('a, 'b) t
val get : ('a, 'b) t -> Logic.T.t -> ('a * 'b) option
val make : ('a, 'b) t -> 'a -> 'b -> Logic.T.t
val apply : ('a, 'b) t -> Logic.T.t -> Logic.T.t -> Logic.T.t
val find : Logic.DB.t -> ('a, 'b) t -> ('a * 'b) list
val subset : Logic.DB.t -> ('a, 'b) t -> ('a, 'b) t -> unit
val transitive : Logic.DB.t -> ('a, 'a) t -> unit
val symmetry : Logic.DB.t -> ('a, 'a) t -> unit
val from_fun : Logic.DB.t -> ('a, 'b) t -> ('a -> 'b -> bool) -> unit
val add_list : Logic.DB.t -> ('a, 'b) t -> ('a * 'b) list -> unit
OCaml

Innovation. Community. Security.