Skip to content
Snippets Groups Projects
  1. Nov 17, 2023
  2. Nov 06, 2023
    • Kurdakov Alexander's avatar
      feat: add tier entity · 701aa4ab
      Kurdakov Alexander authored
      Transferred replication factor from Properties table to new Tier table
      
      Instance and Replicaset belongs to tier via new field tier in _pico_instance and _pico_replicaset
      
      New cli option init-cfg with path to configuration file in yaml format. For now contains only info about tiers.
      701aa4ab
  3. Nov 03, 2023
  4. Nov 01, 2023
    • Denis Smirnov's avatar
      feat!: implement entrypoints for PG extended protocol · efeb345c
      Denis Smirnov authored
      
      BREAKING CHANGE!:
      - pico.trace() function was removed. Use pico.sql() for tracing;
      - opentelemetry tables __SBROAD_STAT and __SBROAD_QUERY were renamed
        into _SQL_STAT and _SQL_QUERY tables.
      
      Introduce enrypoints for extended PG protocol:
      
      - pg_bind: bind parameters to portal (IR) by descriptor;
      - pg_close: remove portal from the storage by descriptor;
      - pg_describe: get the portal metadata and type by descriptor;
      - pg_execute: execute portal by descriptor;
      - pg_parse: parse an SQL pattern into IR (reusing LRU),
        save IR into portal storage and return the descriptor;
      - pg_portals: get a list of portal descriptors visible
        to the current user;
      
      Co-authored-by: default avatarKaitmazian Maksim <m.kaitmazian@picodata.io>
      Verified
      efeb345c
  5. Oct 30, 2023
  6. Oct 06, 2023
  7. Oct 02, 2023
  8. Sep 21, 2023
    • 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
  9. Aug 18, 2023
  10. Aug 01, 2023
  11. Jul 28, 2023
  12. Jul 21, 2023
  13. Jul 11, 2023
    • Yaroslav Dynnikov's avatar
      build: do cargo update · 8e034e34
      Yaroslav Dynnikov authored and Yaroslav Dynnikov's avatar Yaroslav Dynnikov committed
      Don't update blake3 version, otherwise it results in
      
      ```
      Updating constant_time_eq v0.2.5 -> v0.3.0
      
      error: package `constant_time_eq v0.3.0` cannot be built because it
      requires rustc 1.66.0 or newer, while the currently active rustc version
      is 1.65.0
      ```
      8e034e34
  14. Jul 03, 2023
  15. Jun 16, 2023
  16. Jun 05, 2023
  17. Jun 02, 2023
  18. May 04, 2023
    • Denis Smirnov's avatar
      feat: add distributed SQL support · a1ed2657
      Denis Smirnov authored
      
      Current commit introduces distributed SQL in picodata (we use
      'sbroad' library). Now it is possible to execute cluster-wide
      SQL with 'pico.sql([[query]], {params})' lua method.
      
      Current limitations:
      1. DDL is still not implemented in picodata, so space sharding
         is mocked by '_pico_space' space (we'll remove it later).
      2. We still have duplicating symbols of the Tarantool module in
         sbroad and in picodata rlibs.
      3. We need to reuse piocdata's sharding functions and handle the
         case when different spaces in the query have different sharding
         functions.
      
      Co-authored-by: Georgy Moshkin's avatarGeorgy Moshkin <gmoshkin@picodata.io>
      Verified
      a1ed2657
  19. Apr 24, 2023
  20. Apr 14, 2023
  21. Apr 11, 2023
    • Yaroslav Dynnikov's avatar
      chore: bump tarantool-module · 2a64ec6b
      Yaroslav Dynnikov authored
      Bumping `tarantool-module` fixes the `fiber::csw()` performance issue
      that caused flaky tests in CI.
      
      Also this patch increases the `test_sigsegv_child` timeout. The test is
      flaky too, let's see if it helps.
      2a64ec6b
  22. Apr 06, 2023
  23. Mar 27, 2023
  24. Mar 07, 2023
  25. Feb 03, 2023
  26. Feb 02, 2023
  27. Feb 01, 2023
  28. Jan 31, 2023
    • Yaroslav Dynnikov's avatar
      build: refactor build.rs · b9aeab59
      Yaroslav Dynnikov authored
      1. Remove build dependency on cmake crate. It doesn't fulfill all our
         needs, so we run cmake directly via `std::process::command`. It also
         makes `build.rs` easier to understand.
      2. Arrange paths variable names.
      b9aeab59
  29. Dec 27, 2022
  30. Dec 08, 2022
  31. Dec 05, 2022
  32. Nov 22, 2022
  33. Nov 08, 2022
Loading