Job.get does not return an option
This commit is contained in:
parent
5cdcbdff74
commit
643b156e07
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ module Job = struct
|
|||
{| DROP TABLE IF EXISTS job |}
|
||||
|
||||
let get =
|
||||
Caqti_request.find_opt
|
||||
Caqti_request.find
|
||||
id
|
||||
Caqti_type.string
|
||||
"SELECT name FROM job WHERE id = ?"
|
||||
|
|
|
@ -51,7 +51,7 @@ module Job : sig
|
|||
(unit, unit, [< `Many | `One | `Zero > `Zero ]) Caqti_request.t
|
||||
|
||||
val get :
|
||||
(id, string, [< `Many | `One | `Zero > `One `Zero ])
|
||||
(id, string, [< `Many | `One | `Zero > `One ])
|
||||
Caqti_request.t
|
||||
val get_id_by_name :
|
||||
(string, id, [< `Many | `One | `Zero > `One ]) Caqti_request.t
|
||||
|
|
Loading…
Reference in a new issue