fix(sqlite): add indexes and unique constraint
This commit is contained in:
parent
df5c820c68
commit
d97451653e
4 changed files with 37 additions and 16 deletions
|
@ -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{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue