Skip to content

Commit

Permalink
feat: PREPARE and EXECUTE statement from mysql client (GreptimeTeam#4125
Browse files Browse the repository at this point in the history
)

* feat: prepare stmt in mysql client

* feat: execute stmt in mysql client

* fix: handle parameters properly

* refactor: use existing funcs to convert expr to scalar value

* refactor: use uuid strings as stmt_key for queries from COM_PREPARE packet

* refactor: take prepare and execute parser as submodule

* test: add unit test for converting expr to scalar value

* feat: deallocate stmt in mysql client

* chore: comments and duplicates

---------

Co-authored-by: dennis zhuang <[email protected]>
  • Loading branch information
CookiePieWw and killme2008 authored Jun 21, 2024
1 parent 21c89f3 commit b739c9f
Show file tree
Hide file tree
Showing 9 changed files with 519 additions and 78 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/servers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ tonic-reflection = "0.11"
tower = { workspace = true, features = ["full"] }
tower-http = { version = "0.4", features = ["full"] }
urlencoding = "2.1"
uuid.workspace = true
zstd.workspace = true

[target.'cfg(not(windows))'.dependencies]
Expand Down
Loading

0 comments on commit b739c9f

Please sign in to comment.