Add blob for Sqlite3

This commit is contained in:
Jinzhu 2013-11-16 07:34:01 +08:00
parent 5ded927a9a
commit abdf59f46d
1 changed files with 2 additions and 0 deletions

View File

@ -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)