Skip to content

Commit

Permalink
extension: add extension API to listen stmt events (#38789)
Browse files Browse the repository at this point in the history
close #38788
  • Loading branch information
lcwangchao authored Nov 7, 2022
1 parent 30a76ce commit dc9b691
Show file tree
Hide file tree
Showing 10 changed files with 766 additions and 38 deletions.
10 changes: 10 additions & 0 deletions extension/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ go_library(
importpath = "github.com/pingcap/tidb/extension",
visibility = ["//visibility:public"],
deps = [
"//parser",
"//parser/ast",
"//parser/auth",
"//sessionctx/stmtctx",
"//sessionctx/variable",
"//types",
"//util/chunk",
Expand All @@ -27,15 +30,22 @@ go_test(
name = "extension_test",
srcs = [
"bootstrap_test.go",
"event_listener_test.go",
"function_test.go",
"main_test.go",
"registry_test.go",
],
embed = [":extension"],
deps = [
"//expression",
"//parser/ast",
"//parser/auth",
"//parser/mysql",
"//privilege/privileges",
"//server",
"//sessionctx",
"//sessionctx/sessionstates",
"//sessionctx/stmtctx",
"//sessionctx/variable",
"//testkit",
"//testkit/testsetup",
Expand Down
Loading

0 comments on commit dc9b691

Please sign in to comment.