From 3d9fcd0c1d56a5f5534163d56c9d65321ded4bc5 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 26 Jul 2020 19:50:49 +0100 Subject: renamed func --- pkg/datamaps/reader.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg/datamaps/reader.go') diff --git a/pkg/datamaps/reader.go b/pkg/datamaps/reader.go index bb4cad7..892e4d8 100644 --- a/pkg/datamaps/reader.go +++ b/pkg/datamaps/reader.go @@ -147,9 +147,9 @@ func ReadXLSX(ssheet string) FileData { return outer } -// DMLFromDB fetches a slice of DatamapLine from the database given +// DatamapFromDB fetches a slice of DatamapLine from the database given // the name of a datamap. -func DMLFromDB(name string, db *sql.DB) ([]DatamapLine, error) { +func DatamapFromDB(name string, db *sql.DB) ([]DatamapLine, error) { var out []DatamapLine @@ -185,7 +185,7 @@ func DMLFromDB(name string, db *sql.DB) ([]DatamapLine, error) { // from the populated spreadsheet file file. func ExtractDBDM(name string, file string, db *sql.DB) (ExtractedData, error) { xdata := ReadXLSX(file) - ddata, err := DMLFromDB(name, db) // this will need to return a []DatamapLine + ddata, err := DatamapFromDB(name, db) // this will need to return a []DatamapLine if err != nil { return nil, err -- cgit v1.2.3