mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: adjust store test for mysql
This commit is contained in:
@ -49,6 +49,10 @@ func NewDriver(profile *profile.Profile) (store.Driver, error) {
|
||||
return &driver, nil
|
||||
}
|
||||
|
||||
func (d *Driver) GetDB() *sql.DB {
|
||||
return d.db
|
||||
}
|
||||
|
||||
func (d *Driver) Vacuum(ctx context.Context) error {
|
||||
tx, err := d.db.BeginTx(ctx, nil)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user