Skip to content

Commit

Permalink
Don't expose Connection.t
Browse files Browse the repository at this point in the history
The `connect`, `execute` and `close` methods were exposing
the `Connection.t` type.  Changed all three methods to expect
the abstract `connection` type.
  • Loading branch information
scull7 committed Mar 11, 2018
1 parent 0704c45 commit 5b505a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MySql2.mli
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type callback =
] ->
unit

val close : Connection.t -> unit
val close : connection -> unit

val connect :
?host:string ->
Expand All @@ -44,7 +44,7 @@ val connect :
?database:string ->
unit -> connection

val execute : Connection.t -> string -> params -> callback -> unit
val execute : connection -> string -> params -> callback -> unit

val parse_response :
Js.Json.t ->
Expand Down

0 comments on commit 5b505a1

Please sign in to comment.