mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Selective export (#770)
This commit is contained in:
17
pkg/models/modelstest/sql.go
Normal file
17
pkg/models/modelstest/sql.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user