refactor(go): enforce notestore interface
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
|||||||
"modernc.org/sqlite"
|
"modernc.org/sqlite"
|
||||||
|
|
||||||
"git.hrafn.xyz/aether/gotes/internal/models"
|
"git.hrafn.xyz/aether/gotes/internal/models"
|
||||||
|
"git.hrafn.xyz/aether/gotes/internal/repository"
|
||||||
)
|
)
|
||||||
|
|
||||||
const sqlSet = `
|
const sqlSet = `
|
||||||
@@ -17,6 +18,8 @@ const sqlSet = `
|
|||||||
PRAGMA busy_timeout = 7000;
|
PRAGMA busy_timeout = 7000;
|
||||||
`
|
`
|
||||||
|
|
||||||
|
var _ repository.NoteStore = &SQLiteStore{}
|
||||||
|
|
||||||
type SQLiteStore struct {
|
type SQLiteStore struct {
|
||||||
read *sql.DB
|
read *sql.DB
|
||||||
write *sql.DB
|
write *sql.DB
|
||||||
|
|||||||
Reference in New Issue
Block a user