mirror of
https://github.com/usememos/memos.git
synced 2024-11-16 19:56:11 +08:00
17 lines
190 B
Go
17 lines
190 B
Go
package sqlite
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
"github.com/usememos/memos/store"
|
|
)
|
|
|
|
type Driver struct {
|
|
db *sql.DB
|
|
}
|
|
|
|
func NewDriver(db *sql.DB) store.Driver {
|
|
return &Driver{
|
|
db: db,
|
|
}
|
|
}
|