summaryrefslogtreecommitdiff
path: root/DAL/DB/CRUD_test.go
diff options
context:
space:
mode:
authorPhysick <96335032+DegustatorPonos@users.noreply.github.com>2025-11-29 20:25:00 +0500
committerPhysick <96335032+DegustatorPonos@users.noreply.github.com>2025-11-29 20:25:00 +0500
commit757e8534d1651965f55610d96f93c952a377f3c9 (patch)
tree072a70860f1ab8c68c7708f85a00b35d9215fdc9 /DAL/DB/CRUD_test.go
parente07dca81d05f304865a59c8afee98a3cde8bce8c (diff)
Added tags to reflection
Diffstat (limited to 'DAL/DB/CRUD_test.go')
-rw-r--r--DAL/DB/CRUD_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/DAL/DB/CRUD_test.go b/DAL/DB/CRUD_test.go
index de6fd40..474c937 100644
--- a/DAL/DB/CRUD_test.go
+++ b/DAL/DB/CRUD_test.go
@@ -7,7 +7,7 @@ import (
type testDataType struct {
Id uint64
- Name string
+ Name string `sql:"username"`
Data time.Time
}
@@ -16,7 +16,7 @@ var testDataTable = DataTable[testDataType] {
}
func TestFormSelectRequest(t *testing.T) {
- var expected = "SELECT (Id, Name, Data) FROM DataTable;"
+ var expected = "SELECT (Id, username, Data) FROM DataTable;"
var request = testDataTable.formSelectRequest()
if request != expected {
t.Errorf("Incorrect select query. \n Expected: '%s' \n Got: '%s'", expected, request)