mirror of
https://github.com/usememos/memos.git
synced 2024-12-19 00:51:30 +03:00
41eba71f0f
* Add new database interface for SQL operations * Move SQL code of Activity into Database * Rename `Database` into `Driver` * Move SQL code of SystemSetting into Driver * Fix store.New in text code * Change database into driver in the variables * Change sqlite3.New into sqlite3.NewDriver
11 lines
315 B
Go
11 lines
315 B
Go
package store
|
|
|
|
import "context"
|
|
|
|
type Driver interface {
|
|
CreateActivity(ctx context.Context, create *Activity) (*Activity, error)
|
|
|
|
UpsertSystemSetting(ctx context.Context, upsert *SystemSetting) (*SystemSetting, error)
|
|
ListSystemSettings(ctx context.Context, find *FindSystemSetting) ([]*SystemSetting, error)
|
|
}
|