Skip to content
Snippets Groups Projects
  1. Nov 02, 2023
  2. Nov 01, 2023
  3. Oct 31, 2023
  4. Oct 30, 2023
  5. Oct 27, 2023
  6. Oct 26, 2023
  7. Oct 25, 2023
  8. Oct 24, 2023
  9. Oct 19, 2023
  10. Oct 17, 2023
  11. Oct 16, 2023
  12. Oct 13, 2023
  13. Oct 10, 2023
  14. Oct 09, 2023
  15. Oct 06, 2023
  16. Oct 02, 2023
  17. Sep 22, 2023
  18. Sep 21, 2023
    • Yaroslav Dynnikov's avatar
      rename: space to table in Lua API · 4b3b1650
      Yaroslav Dynnikov authored and Yaroslav Dynnikov's avatar Yaroslav Dynnikov committed
      4b3b1650
    • Dmitry Rodionov's avatar
      SQL REPL PoC in rust without Lua · faca599c
      Dmitry Rodionov authored
      This patch adds new command `picodata sql`. Arguments are the same as `picodata connect`. The idea would be to eventually replace picodata connect with this version.
      
      Simple prerequisites for testing with auth:
      
      ```lua
      pico.create_user("Yoda", "12341234")
      pico.grant_privilege("Yoda", "execute", "role", "super")
      ```
      Super grant wont be needed in the future when access control will be tuned properly (access to system spaces, context: https://git.picodata.io/picodata/picodata/picodata/-/merge_requests/663).
      
      Then run `target/debug/picodata run` in one terminal and `target/debug/picodata sql Yoda@localhost:3301` in another one
      
      Features:
      - Usual lib readline goodies, backward/forward search etc. Provided by [rustyline](https://lib.rs/crates/rustyline)
      - Simple file based history (~/.picodata_history by default)
      - Displays result sets in ascii tables. Styling can be customized if needed. Here we're using [comfy-table](https://lib.rs/crates/comfy-table) library
      - If you type `\e` command your `$EDITOR` will be opened so you can write the query there. Once you close your editor the query will be executed (suggested by @funbringer)
      
      There are a lot of things we can add. Completion, highlighting, more special commands.
      
      Close #363 
      faca599c
  19. Sep 20, 2023
  20. Sep 19, 2023
  21. Sep 13, 2023
Loading