package sihl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include Data.Repo.Sig.REPO
val register_migration : Core.Ctx.t -> (unit, string) Result.t Lwt.t
val register_cleaner : Core.Ctx.t -> (unit, string) Result.t Lwt.t
val insert_file : Core.Ctx.t -> file:Sihl__.Storage_model.StoredFile.t -> (unit, string) Result.t Lwt.t
val insert_blob : Core.Ctx.t -> id:string -> blob:string -> (unit, string) Result.t Lwt.t
val get_file : Core.Ctx.t -> id:string -> (Sihl__.Storage_model.StoredFile.t option, string) Result.t Lwt.t
val get_blob : Core.Ctx.t -> id:string -> (string option, string) Result.t Lwt.t
val update_file : Core.Ctx.t -> file:Sihl__.Storage_model.StoredFile.t -> (unit, string) Result.t Lwt.t
val update_blob : Core.Ctx.t -> id:string -> blob:string -> (unit, string) Result.t Lwt.t