Module Repo.MakeMariaDb

Parameters

Signature

val register_migration : unit -> unit
val register_cleaner : unit -> unit
val insert_file : ?⁠ctx:(string * string) list -> file:Sihl.Contract.Storage.stored -> unit Lwt.t
val insert_blob : ?⁠ctx:(string * string) list -> id:string -> blob:string -> unit Lwt.t
val get_file : ?⁠ctx:(string * string) list -> id:string -> Sihl.Contract.Storage.stored option Lwt.t
val get_blob : ?⁠ctx:(string * string) list -> id:string -> string option Lwt.t
val update_file : ?⁠ctx:(string * string) list -> file:Sihl.Contract.Storage.stored -> unit Lwt.t
val update_blob : ?⁠ctx:(string * string) list -> id:string -> blob:string -> unit Lwt.t
val delete_file : ?⁠ctx:(string * string) list -> id:string -> unit Lwt.t
val delete_blob : ?⁠ctx:(string * string) list -> id:string -> unit Lwt.t