Skip to content

Commit 48c0cd6

Browse files
committed
use []byte for blobs in sqlite
1 parent 0dc2c81 commit 48c0cd6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/codegen/golang/sqlite_type.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ func sqliteType(req *plugin.CodeGenRequest, col *plugin.Column) string {
2121
return "sql.NullInt64"
2222

2323
case "blob":
24-
if notNull {
25-
return "[]uint8"
26-
}
27-
return "*[]uint8"
24+
return "[]byte"
2825

2926
case "real", "double", "doubleprecision", "float":
3027
if notNull {

0 commit comments

Comments
 (0)