package guardian

  1. Overview
  2. Docs
type 'a authorizable = 'a Guardian.Authorizable.t
type 'b authorizable_target = 'b Guardian.AuthorizableTarget.t
type role = A.t
type actor_role_set = Guardian.ActorRoleSet.t
type target_role_set = Guardian.TargetRoleSet.t
type ('rv, 'err) monad = ('rv, 'err) Lwt_result.t
val lwt_return_rc : Sqlite3.Rc.t -> (unit, string) result Lwt.t
module Actor : sig ... end
module Target : sig ... end
val find_migrations : unit -> (string * string * string) list

find_migrations () returns a list of all migrations as a tuple with key, datetime and sql query *

val find_clean : unit -> (string * string) list

find_clean () returns a list of all migrations as a tuple with key and sql query *

val migrate : ?ctx:(string * string) list -> unit -> unit Lwt.t

migrate () runs all migration on a specified context ?ctx *

val clean : ?ctx:(string * string) list -> unit -> unit Lwt.t

clean () runs clean on a specified context ?ctx *