From 12d8e3e5118ce90d1c33909cfe550bfe417574c9 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 31 Jul 2020 20:59:38 +0100 Subject: added comment on SQL --- pkg/datamaps/writer.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/datamaps') diff --git a/pkg/datamaps/writer.go b/pkg/datamaps/writer.go index 9a7015b..55b333b 100644 --- a/pkg/datamaps/writer.go +++ b/pkg/datamaps/writer.go @@ -17,6 +17,10 @@ func ExportMaster(opts *Options) error { // Key 3 | Key_3_Value_for_FD_1 | Key_3_Value_for_FD_2 | Key_3_Value_for_FD_3 | ... etc // ... // Could be represented as a slice or a map[string][]string + // SQL statement: + // SELECT datamap_line.key , return_data.value, return_data.filename + // FROM return_data INNER JOIN datamap_line on return_data.dml_id=datamap_line.id + // WHERE "key"; // filename := filepath.Join(opts.MasterOutPutPath, "master.xlsx") wb := xlsx.NewFile() -- cgit v1.2.3