Skip to content

Commit

Permalink
ci(main): merge with main
Browse files Browse the repository at this point in the history
  • Loading branch information
grandwizard28 committed Feb 17, 2025
1 parent f51cf94 commit 00ddc81
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/sqlstore/sqlitesqlstore/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ package sqlitesqlstore
import (
"context"
"database/sql"
"log/slog"

"github.com/jmoiron/sqlx"
_ "github.com/mattn/go-sqlite3"
"github.com/uptrace/bun"
"github.com/uptrace/bun/dialect/sqlitedialect"
"go.signoz.io/signoz/pkg/factory"
"go.signoz.io/signoz/pkg/sqlstore"
"go.signoz.io/signoz/pkg/sqlstore/sqlstorehook"
)

type provider struct {
Expand Down Expand Up @@ -46,9 +44,6 @@ func New(ctx context.Context, providerSettings factory.ProviderSettings, config
settings.Logger().InfoContext(ctx, "connected to sqlite", "path", config.Sqlite.Path)
sqldb.SetMaxOpenConns(config.Connection.MaxOpenConns)

bundb := bun.NewDB(sqldb, sqlitedialect.New())
bundb.AddQueryHook(sqlstorehook.NewLogging(settings.Logger(), slog.LevelDebug))

return &provider{
settings: settings,
sqldb: sqldb,
Expand Down

0 comments on commit 00ddc81

Please sign in to comment.