aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/datamaps/reader.go
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-07-26 20:03:45 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-07-26 20:03:45 +0100
commit44a88a96c5f27a342275b3c43b277c7881f69b22 (patch)
tree4be71b702eb52d5144c1c6642a6a07870bcfdec5 /pkg/datamaps/reader.go
parent3638135ee62347ca267eaf0d6c83703accd36f8e (diff)
tidied up doc comment
Diffstat (limited to 'pkg/datamaps/reader.go')
-rw-r--r--pkg/datamaps/reader.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/datamaps/reader.go b/pkg/datamaps/reader.go
index a754fa1..326224a 100644
--- a/pkg/datamaps/reader.go
+++ b/pkg/datamaps/reader.go
@@ -150,8 +150,10 @@ func ReadXLSX(ssheet string) FileData {
return outer
}
-// DatamapFromDB fetches an ExtractedDatamapFile from the database given
-// the name of a datamap.
+// DatamapFromDB creates an ExtractedDatamapFile from the database given
+// the name of a datamap. Of course, in this instance, the data is not
+// coming from a datamap file (such as datamap.csv) but from datamap data
+// previous stored in the database by DatamapToDB or similar.
func DatamapFromDB(name string, db *sql.DB) (ExtractedDatamapFile, error) {
var out ExtractedDatamapFile