Added Testing for setting up sqlite db
This commit is contained in:
25
internal/store/sqlite/sqlite.go
Normal file
25
internal/store/sqlite/sqlite.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package sqlite
|
||||
|
||||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
const sqlSet = `
|
||||
PRAGMA journal_mode = WAL;
|
||||
PRAGMA busy_timeout = 7000;
|
||||
`
|
||||
|
||||
type SQLiteStore struct {
|
||||
read *sql.DB
|
||||
write *sql.DB
|
||||
}
|
||||
|
||||
func NewSQLiteStore(ctx context.Context, dbPath string) (*SQLiteStore, error) {
|
||||
return nil, fmt.Errorf("not implemented")
|
||||
}
|
||||
|
||||
func (s *SQLiteStore) Close() error {
|
||||
return fmt.Errorf("not implemented")
|
||||
}
|
||||
Reference in New Issue
Block a user