diff options
Diffstat (limited to 'DAL/DB/CRUD.go')
| -rwxr-xr-x[-rw-r--r--] | DAL/DB/CRUD.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/DAL/DB/CRUD.go b/DAL/DB/CRUD.go index 52268df..17b7b52 100644..100755 --- a/DAL/DB/CRUD.go +++ b/DAL/DB/CRUD.go @@ -10,6 +10,7 @@ type DataTable[T any] struct { TableName string } +// Creates a query that will get all the objects with the same func (base *DataTable[T]) GetSimilarFieldsQuery(ref T, fields []string) (string, error) { var structFields = base.getFieldsMap() var value = reflect.ValueOf(ref) @@ -21,7 +22,6 @@ func (base *DataTable[T]) GetSimilarFieldsQuery(ref T, fields []string) (string, } filterMap[v] = value.Field(fieldIndex).Interface() } - fmt.Println(filterMap) return base.formQueryWithFilters(filterMap), nil } |
