package orm

  1. Overview
  2. Docs
val global_count : int Stdlib.ref
val clean_list : (unit -> unit) list Stdlib.ref
val flush_list : (string -> unit) list Stdlib.ref
val sync_list : (string -> string -> int64 -> unit) list Stdlib.ref
val clean_all : Sql_backend.env -> string -> unit
val flush_all : Sql_backend.env -> string -> unit
val sync_all : Sql_backend.env -> string -> string -> int64 -> unit
module Trigger : sig ... end
type (!'a, !'b) t = {
  1. type_name : string;
  2. tbl : (string, 'a) Stdlib.Hashtbl.t;
  3. create : int -> 'a;
  4. to_weakid : 'a -> 'b -> int64;
  5. of_weakid : 'a -> int64 -> 'b list;
  6. mem : 'a -> 'b -> bool;
  7. mem_weakid : 'a -> int64 -> bool;
  8. add : 'a -> 'b -> int64 -> unit;
  9. remove : 'a -> 'b -> unit;
  10. replace : 'a -> 'b -> int64 -> unit;
  11. dump : 'a -> string;
}
val string_of_t : ('a -> string) -> ('a, 'b) t -> string
module type Sig = sig ... end
module Make (H : Stdlib.Hashtbl.HashedType) : sig ... end
val with_table : Sql_backend.env -> ('a, 'b) t -> string -> ('a -> 'c) -> 'c
val debug : Sql_backend.env -> 'a -> string -> string -> unit
val to_weakid : Sql_backend.env -> ('a, 'b) t -> string -> 'b -> int64
val of_weakid : Sql_backend.env -> ('a, 'b) t -> string -> int64 -> 'b list
val mem : Sql_backend.env -> ('a, 'b) t -> string -> 'b -> bool
val mem_weakid : Sql_backend.env -> ('a, 'b) t -> string -> int64 -> bool
val add : Sql_backend.env -> ('a, 'b) t -> string -> 'b -> int64 -> unit
val remove : Sql_backend.env -> ('a, 'b) t -> string -> 'b -> unit
val replace : Sql_backend.env -> ('a, 'b) t -> string -> 'b -> int64 -> unit
OCaml

Innovation. Community. Security.