mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Data layer restructuring (#997)
* Move query builders to sqlite package * Add transaction system * Wrap model resolvers in transaction * Add error return value for StringSliceToIntSlice * Update/refactor mutation resolvers * Convert query builders * Remove unused join types * Add stash id unit tests * Use WAL journal mode
This commit is contained in:
@@ -13,3 +13,13 @@ type SceneMarker struct {
|
||||
CreatedAt SQLiteTimestamp `db:"created_at" json:"created_at"`
|
||||
UpdatedAt SQLiteTimestamp `db:"updated_at" json:"updated_at"`
|
||||
}
|
||||
|
||||
type SceneMarkers []*SceneMarker
|
||||
|
||||
func (m *SceneMarkers) Append(o interface{}) {
|
||||
*m = append(*m, o.(*SceneMarker))
|
||||
}
|
||||
|
||||
func (m *SceneMarkers) New() interface{} {
|
||||
return &SceneMarker{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user