Files
stash/pkg/models/modelstest/sql.go
WithoutPants aadbcaeec2 Organised flag (#988)
* Add organized boolean to scene model (#729)
* Add organized button to scene page
* Add flag to galleries and images
* Import/export changes
* Make organized flag not null
* Ignore organized scenes for autotag

Co-authored-by: com1234 <com1234@notarealemail.com>
2020-12-18 08:06:49 +11:00

25 lines
332 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,
}
}
func NullBool(v bool) sql.NullBool {
return sql.NullBool{
Bool: v,
Valid: true,
}
}