aboutsummaryrefslogblamecommitdiffstats
path: root/lib/protocols/Relation.mli
blob: 4aeb562232a98adb191d6ee2ca0eb757b62792d6 (plain) (tree)





















                                                                                                   
type t

class type implementation = object
  method heading : (Concepts.Hash.hash, Concepts.Condition.condition) result
  method predicate : (Concepts.Hash.hash option, Concepts.Condition.condition) result
  method local_constraints : (Concepts.Hash.hash option, Concepts.Condition.condition) result
  method tuples : (Concepts.Hash.hash, Concepts.Condition.condition) result
  method contains : Concepts.Blob.t -> (bool, Concepts.Condition.condition) result
end

val make : #implementation -> Handle.protocol
val from : Handle.t -> t Handle.interface option
val heading : t Handle.interface -> (Concepts.Hash.hash, Concepts.Condition.condition) result

val predicate :
  t Handle.interface -> (Concepts.Hash.hash option, Concepts.Condition.condition) result

val local_constraints :
  t Handle.interface -> (Concepts.Hash.hash option, Concepts.Condition.condition) result

val tuples : t Handle.interface -> (Concepts.Hash.hash, Concepts.Condition.condition) result
val contains : t Handle.interface -> Concepts.Blob.t -> (bool, Concepts.Condition.condition) result