Feat: card_mark repo

This commit is contained in:
Grail Finder
2025-07-05 09:14:45 +03:00
parent 56845e6141
commit 413edae4b6
8 changed files with 70 additions and 35 deletions

View File

@ -18,6 +18,7 @@ type AllRepos interface {
SessionsRepo
WordCardsRepo
SettingsRepo
CardMarksRepo
InitTx(ctx context.Context) (context.Context, *sqlx.Tx, error)
}
@ -25,6 +26,7 @@ type RepoProvider struct {
DB *sqlx.DB
mu sync.RWMutex
pathToDB string
CardMarksRepo
}
func NewRepoProvider(pathToDB string) *RepoProvider {
@ -42,6 +44,7 @@ func NewRepoProvider(pathToDB string) *RepoProvider {
rp := &RepoProvider{
DB: db,
pathToDB: pathToDB,
CardMarksRepo: NewCardMarksRepo(db),
}
go rp.pingLoop()