1 (* SQL syntax and RA *)
6 let resolve columns tables
=
7 let all = tables
>> List.map snd
>> List.flatten
in
8 let scheme name
= name
>> Tables.get_from tables
>> snd
in
9 let resolve1 = function
12 | OneOf
(col
,t
) -> [ RA.Scheme.find
(scheme t
) col
]
13 | One col
-> [ RA.Scheme.find
all col
]
15 columns
>> List.map
resolve1 >> List.flatten