26 lines
402 B
Go
26 lines
402 B
Go
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")
|
|
}
|