Module Db.PhoneSource

Manage user phone numbers

Sourceval add : int64 -> string -> bool Lwt.t

add userid number associates number with the user userid. Returns true on success.

Sourceval exists : string -> bool Lwt.t

Does the number exist in the database?

Sourceval userid : string -> Types.User.id option Lwt.t

The user corresponding to a phone number (if any).

Sourceval delete : int64 -> string -> unit Lwt.t

delete userid number deletes number, which has to be associated to userid.

Sourceval get_list : int64 -> string list Lwt.t

get_list userid returns the list of number associated to the user.