logs-analyzer/signoz/ee/query-service/dao/factory.go

19 lines
301 B
Go
Raw Normal View History

2024-09-02 22:47:30 +03:00
package dao
import (
"fmt"
"go.signoz.io/signoz/ee/query-service/dao/sqlite"
)
func InitDao(engine, path string) (ModelDao, error) {
switch engine {
case "sqlite":
return sqlite.InitDB(path)
default:
return nil, fmt.Errorf("qsdb type: %s is not supported in query service", engine)
}
}