aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-07-31 20:59:38 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-07-31 20:59:38 +0100
commit12d8e3e5118ce90d1c33909cfe550bfe417574c9 (patch)
tree2afa9df0f8886fdeb70cce984a6bfbb8583fcc4f
parenta12c66e6c61303bfee84c8429e8b5946bfd8f158 (diff)
added comment on SQL
-rw-r--r--pkg/datamaps/writer.go4
1 files changed, 4 insertions, 0 deletions
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()