forked from mirror/gorm
Add blob for Sqlite3
This commit is contained in:
parent
5ded927a9a
commit
abdf59f46d
|
@ -28,6 +28,8 @@ func (s *sqlite3) SqlTag(column interface{}, size int) string {
|
||||||
return "bigint"
|
return "bigint"
|
||||||
case float32, float64, sql.NullFloat64:
|
case float32, float64, sql.NullFloat64:
|
||||||
return "real"
|
return "real"
|
||||||
|
case []byte:
|
||||||
|
return "blob"
|
||||||
case string, sql.NullString:
|
case string, sql.NullString:
|
||||||
if size > 0 && size < 65532 {
|
if size > 0 && size < 65532 {
|
||||||
return fmt.Sprintf("varchar(%d)", size)
|
return fmt.Sprintf("varchar(%d)", size)
|
||||||
|
|
Loading…
Reference in New Issue