mirror of
https://github.com/stashapp/stash.git
synced 2025-12-11 02:42:43 +01:00
17 lines
240 B
Go
17 lines
240 B
Go
package modelstest
|
|
|
|
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,
|
|
}
|
|
}
|