big squish

This commit is contained in:
Swrup 2024-05-29 19:16:48 +02:00
parent fae867b35b
commit 55d2abefb4
124 changed files with 6931 additions and 8393 deletions

28
src/db_post.mli Normal file
View file

@ -0,0 +1,28 @@
open Err
open Types
val find_post : post_id -> post option result
val find_thread : post_id -> thread option result
val find_thread_w_reply : post_id -> Thread_w_reply.t option result
val get_catalog : unit -> thread list result
val delete : post_id -> unit result
val add_post :
thread_id:post_id
-> user:user
-> image:img option
-> comment:comment
-> post result
val add_thread :
subject:v_string
-> lat:float
-> lng:float
-> user:user
-> image:img option
-> comment:comment
-> Thread_w_reply.t result