fix(sqlite): add indexes and unique constraint

This commit is contained in:
hexxa 2022-09-16 09:58:31 +08:00 committed by Hexxa
parent df5c820c68
commit d97451653e
4 changed files with 37 additions and 16 deletions

View file

@ -12,17 +12,6 @@ import (
"github.com/ihexxa/quickshare/src/db"
)
const (
InitNs = "Init"
InitTimeKey = "initTime"
SchemaVerKey = "SchemaVersion"
SchemaV1 = "v1"
)
var (
maxHashingTime = 10
)
func (st *SQLiteStore) getFileInfo(ctx context.Context, itemPath string) (*db.FileInfo, error) {
var infoStr string
fInfo := &db.FileInfo{}