diff options
Diffstat (limited to 'lib/query/query.mli')
| -rw-r--r-- | lib/query/query.mli | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/query/query.mli b/lib/query/query.mli index 89b114d..d4badd5 100644 --- a/lib/query/query.mli +++ b/lib/query/query.mli @@ -19,6 +19,17 @@ val insert : This is a low-level function: there is no representation for the content itself, and no functionnals controls are realized. *) +val insert_list : + Caqti_lwt.connection -> + Model.list -> + (string -> Model.value) -> + int64 Lwt.t +(** Insert a row in the dedicated table of a static list, and return its id. + + The [provider] is called with the name of each field of the list, like + [insert]. This is the function used to populate the lists from their + source. *) + val create : Caqti_lwt.connection -> Configuration.Ast.setting -> unit Lwt.t val update : |
