stash/pkg/models/sql.go

18 lines
236 B
Go
Raw Normal View History

package models
2020-09-15 07:28:53 +00:00
import "database/sql"
func NullString(v string) sql.NullString {
return sql.NullString{
String: v,
Valid: true,
}
}
func NullInt64(v int64) sql.NullInt64 {
return sql.NullInt64{
Int64: v,
Valid: true,
}
}