blob: 49b7364fc2497c061ecad10907e8e40d70d209cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
module Extern : sig
type t = {
intern_key : ImportDataTypes.Path.t ImportExpression.T.t;
target : ImportDataTypes.Table.t;
extern_key : ImportDataTypes.Path.column ImportExpression.T.t;
allow_missing : bool;
match_rule : string option;
}
[@@deriving show, eq]
end
module CTE = Cte
type t = {
version : int;
locale : string option;
source : ImportDataTypes.Table.t;
externals : Extern.t list;
columns : ImportDataTypes.Path.t ImportExpression.T.t list;
filters : ImportDataTypes.Path.t ImportExpression.T.t list;
sort : ImportDataTypes.Path.t ImportExpression.T.t list;
uniq : ImportDataTypes.Path.t ImportExpression.T.t list;
}
val repr : t -> Otoml.t
val root_table : t -> ImportDataTypes.Table.t
(** Get the root table, this table is the main table to load and each line in
this table will be processed *)
val get_table_for_name : t -> string option -> ImportDataTypes.Table.t
val get_dependancies_for_table : t -> ImportDataTypes.Table.t -> Extern.t list
(** Get all the externals refered by the source *)
val dummy_conf : t
val latest_version : int
|