aboutsummaryrefslogtreecommitdiff
path: root/lib/expression/query.ml
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2025-03-17 09:11:25 +0100
committerSébastien Dailly <sebastien@dailly.me>2025-03-17 18:59:32 +0100
commit8b8b730d3ba98d6c9e4e6274844641043b5fefbb (patch)
tree4cb60dafa05b479d0ca287d501a51db88cecaaa4 /lib/expression/query.ml
parent7bfbb67d83011f3e1845dcb9e44c3b6a5e93a9da (diff)
Moved the syntax module in its own library
Diffstat (limited to 'lib/expression/query.ml')
-rw-r--r--lib/expression/query.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/expression/query.ml b/lib/expression/query.ml
index e648daf..8ff179d 100644
--- a/lib/expression/query.ml
+++ b/lib/expression/query.ml
@@ -6,7 +6,7 @@ open StdLabels
in order to tell if we need to bind the parameters in the query, or if we
can use plain literal as is (with some risk at the execution time. *)
type _ binded_query =
- | BindParam : ImportCSV.DataType.t Queue.t binded_query
+ | BindParam : ImportDataTypes.Value.t Queue.t binded_query
| NoParam : unit binded_query
module QueryParameter = struct
@@ -17,7 +17,7 @@ module QueryParameter = struct
The Raw can be generated from both BindParam or NoParam queries. *)
type t =
| Literal
- | Queue of ImportCSV.DataType.t Queue.t
+ | Queue of ImportDataTypes.Value.t Queue.t
| Raw of t
(** Wrap the given parameter mode into the raw mode *)
@@ -100,7 +100,7 @@ module Query = TypeBuilder.Make (struct
Format.fprintf formatter "'%s'" l
| QueryParameter.Queue queue ->
Format.fprintf formatter "?";
- Queue.add (ImportCSV.DataType.Content l) queue
+ Queue.add (ImportDataTypes.Value.Content l) queue
| QueryParameter.Raw _ -> Format.fprintf formatter "%s" l
let integer : string -> 'a Type_of.obs -> 'a repr =