refactor(go): enforce notestore interface

This commit is contained in:
2026-03-22 20:25:00 +00:00
parent 0e48b345eb
commit 6b505a5da8

View File

@@ -10,6 +10,7 @@ import (
"modernc.org/sqlite"
"git.hrafn.xyz/aether/gotes/internal/models"
"git.hrafn.xyz/aether/gotes/internal/repository"
)
const sqlSet = `
@@ -17,6 +18,8 @@ const sqlSet = `
PRAGMA busy_timeout = 7000;
`
var _ repository.NoteStore = &SQLiteStore{}
type SQLiteStore struct {
read *sql.DB
write *sql.DB