Commit Graph
4 Commits
Author SHA1 Message Date
Forrest c6ad9b221e add emptiness testutils (#50655)
* add emtiness testutils

* move golden to testutils
2025-01-07 16:36:01 +00:00
Gabriel Corado b48b9a6249 refactor: use websocket error send on repl errors (#50613) 2025-01-02 16:39:02 +00:00
Gabriel Corado 903b5f5cbe Add WebSocket handler for WebUI database sessions (#49749)
* feat(web): add websocket handler for database webui sessions

* refactor: move common structs into a separate package

* refactor(web): use ALPN local proxy to dial databases

* feat(repl): add default registry

* refactor(web): code review suggestions

* refactor: update repl config parameters

* refactor: move default getter implementation

* feat(web): add supports_interactive field on dbs

* refactor: code review suggestions

* refactor: update database REPL interfaces

* chore(web): remove debug print

* feat: register postgres repl

* refactor(web): update MakeDatabase to receive access checker and interactive

* chore(web): remove unused function
2024-12-14 02:16:29 +00:00
Gabriel Corado 89ea69cafa Add PostgreSQL REPL implementation (#49598)
* feat(repl): add postgres

* refactor(repl): change repl to use a single Run function

* test(repl): reduce usage of require.Eventually blocks

* refactor(repl): code review suggestions

* refactor(repl): code review suggestions

* test(repl): increase timeout values

* fix(repl): commands formatting

* refactor(repl): send close pgconn using a different context

* fix(repl): add proper spacing between multi queries

* test(repl): add fuzz test for processing commands
2024-12-13 19:44:37 +00:00