Skip to content

Commit b59cdee

Browse files
authored
use []byte for blobs in sqlite (#1693)
1 parent 36a415e commit b59cdee

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)