Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: import log/slog (#8729)

zll600ffa0bc12bd31
diff --git a/backend/plugin/parser/pg/query.go b/backend/plugin/parser/pg/query.go
index e6aab31bc0..68f08364b3 100644
--- a/backend/plugin/parser/pg/query.go
+++ b/backend/plugin/parser/pg/query.go
@@ -2,12 +2,12 @@ package pg
import (
"encoding/json"
+ "log/slog"
"regexp"
"sort"
"strings"
pgquery "github.com/pganalyze/pg_query_go/v4"
- "golang.org/x/exp/slog"
"github.com/bytebase/bytebase/backend/common/log"
"github.com/bytebase/bytebase/backend/plugin/parser/base"
diff --git a/backend/plugin/parser/standard/query.go b/backend/plugin/parser/standard/query.go
index e7fa28d589..f024619e4f 100644
--- a/backend/plugin/parser/standard/query.go
+++ b/backend/plugin/parser/standard/query.go
@@ -1,11 +1,10 @@
package standard
import (
+ "log/slog"
"regexp"
"strings"
- "golang.org/x/exp/slog"
-
"github.com/pkg/errors"
"github.com/bytebase/bytebase/backend/common/log"
diff --git a/backend/resources/postgres/sample_instance.go b/backend/resources/postgres/sample_instance.go
index de91a9d2d3..c633bef43d 100644
--- a/backend/resources/postgres/sample_instance.go
+++ b/backend/resources/postgres/sample_instance.go
@@ -6,6 +6,7 @@ import (
"embed"
"fmt"
"io/fs"
+ "log/slog"
"os"
"path"
"path/filepath"
@@ -14,7 +15,6 @@ import (
"strconv"
"github.com/pkg/errors"
- "golang.org/x/exp/slog"
"github.com/bytebase/bytebase/backend/common"
"github.com/bytebase/bytebase/backend/common/log"