mirror of
https://github.com/fiatjaf/khatru.git
synced 2026-06-04 01:31:12 +02:00
migrate all built-in storage backends.
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
package sqlite3
|
||||
|
||||
import (
|
||||
"github.com/fiatjaf/relayer/v2"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"github.com/jmoiron/sqlx/reflectx"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
)
|
||||
|
||||
var _ relayer.Storage = (*SQLite3Backend)(nil)
|
||||
|
||||
func (b *SQLite3Backend) Init() error {
|
||||
db, err := sqlx.Connect("sqlite3", b.DatabaseURL)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user