@@ -725,21 +725,24 @@ object
725
725
?binary_result :bool ->
726
726
string ->
727
727
unit
728
- (* * [send_query ?param_types ?params ?binary_params query] asynchronous
729
- execution of query or command [query].
728
+ (* * [send_query ?param_types ?params ?binary_params ?binary_result query]
729
+ asynchronous execution of query or command [query].
730
730
731
731
Additional query parameters can be passed in the [params] array. They must
732
732
not be escaped and they can be referred to in [query] as $1, $2, ... The
733
733
value [null] can be used in the [params] array to denote an SQL NULL. It
734
734
is possible to specify that some of the query parameters are passed as
735
- binary strings using the [binary_params] array.
735
+ binary strings using the [binary_params] array. By default, results are
736
+ returned in text format, but will be returned in binary format if
737
+ [binary_result] is true.
736
738
737
739
If no (or an empty) query parameter is passed, it is possible to emit
738
740
several commands with a single call.
739
741
740
742
@param param_types default = [||]
741
743
@param params default = [||]
742
744
@param binary_params default = [||]
745
+ @param binary_result default = false
743
746
744
747
@raise Error if there is a connection error. *)
745
748
@@ -760,10 +763,12 @@ object
760
763
(* * [#send_query_prepared ?params ?binary_params stm_name] is an asynchronous
761
764
version of {!connection.exec_prepared}. The semantics is otherwise the
762
765
same, and the result is reported by {!connection.get_result} when
763
- available.
766
+ available. By default, results are returned in text format, but will be
767
+ returned in binary format if [binary_result] is true.
764
768
765
769
@param params default = [||]
766
770
@param binary_params default = [||]
771
+ @param binary_result default = false
767
772
768
773
@raise Error if there is a connection error. *)
769
774
0 commit comments