removed enableFTS
arg in MakeDatabase
This commit is contained in:
parent
3a886229fc
commit
5c4d96402d
@ -74,7 +74,7 @@ type TorrentMetadata struct {
|
|||||||
NFiles uint
|
NFiles uint
|
||||||
}
|
}
|
||||||
|
|
||||||
func MakeDatabase(rawURL string, enableFTS bool, logger *zap.Logger) (Database, error) {
|
func MakeDatabase(rawURL string, logger *zap.Logger) (Database, error) {
|
||||||
if logger != nil {
|
if logger != nil {
|
||||||
zap.ReplaceGlobals(logger)
|
zap.ReplaceGlobals(logger)
|
||||||
}
|
}
|
||||||
@ -86,7 +86,7 @@ func MakeDatabase(rawURL string, enableFTS bool, logger *zap.Logger) (Database,
|
|||||||
|
|
||||||
switch url_.Scheme {
|
switch url_.Scheme {
|
||||||
case "sqlite3":
|
case "sqlite3":
|
||||||
return makeSqlite3Database(url_, enableFTS)
|
return makeSqlite3Database(url_)
|
||||||
|
|
||||||
case "postgresql":
|
case "postgresql":
|
||||||
return nil, fmt.Errorf("postgresql is not yet supported!")
|
return nil, fmt.Errorf("postgresql is not yet supported!")
|
||||||
|
Loading…
Reference in New Issue
Block a user