mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-09 18:24:34 +00:00
18 lines
403 B
Go
18 lines
403 B
Go
|
|
package view
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/caos/zitadel/internal/view"
|
||
|
|
)
|
||
|
|
|
||
|
|
const (
|
||
|
|
sequencesTable = "auth.current_sequences"
|
||
|
|
)
|
||
|
|
|
||
|
|
func (v *View) saveCurrentSequence(viewName string, sequence uint64) error {
|
||
|
|
return view.SaveCurrentSequence(v.Db, sequencesTable, viewName, sequence)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (v *View) latestSequence(viewName string) (uint64, error) {
|
||
|
|
return view.LatestSequence(v.Db, sequencesTable, viewName)
|
||
|
|
}
|