Skip to content

Commit

Permalink
fixup! feat: sqlconnect library
Browse files Browse the repository at this point in the history
  • Loading branch information
atzoum committed Mar 4, 2024
1 parent 787c042 commit 339fcfa
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sqlconnect/async.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ type RowMapper[T any] func(cols []*sql.ColumnType, row RowScan) (T, error)
// JSONRowMapper returns a row mapper that scans rows and maps them to [map[string]any]
func JSONRowMapper(valueMapper func(databaseTypeName string, value any) any) RowMapper[map[string]any] {
return func(cols []*sql.ColumnType, row RowScan) (map[string]any, error) {
// scan all values in nullable strings
values := make([]any, len(cols))
for i := range values {
values[i] = new(NilAny)
Expand Down

0 comments on commit 339fcfa

Please sign in to comment.