nushell/crates/nu_plugin_query/src
Stefan Holderbach b2734db015
Move more commands to opaque Record type (#11122)
# Description

Further work towards the goal that we can make `Record`'s field private
and experiment with different internal representations

## Details
- Use inplace record iter in `nu-command/math/utils`
  - Guarantee that existing allocation can be reused
- Use proper record iterators in `path join`
- Remove unnecesary hashmap in `path join`
  - Should minimally reduce the overhead
- Unzip records in `nu-command`
- Refactor `query web` plugin to use record APIs
- Use `Record::into_values` for `values` command
- Use `Record::columns()` in `join` instead.
  - Potential minor pessimisation
  - Not the hot value path
- Use sane `Record` iters in example `Debug` impl
- Avoid layout assumption in `nu-cmd-extra/roll/mod`
  - Potential minor pessimisation
- relegated to `extra`, changing the representation may otherwise break
this op.
- Use record api in `rotate`
- Minor risk that this surfaces some existing invalid behavior as panics
as we now validate column/value lengths
  - `extra` so things are unstable
- Remove unnecessary references in `rotate`
  - Bonus cleanup
# User-Facing Changes
None functional, minor potential differences in runtime. You win some,
you lose some.

# Tests + Formatting
Relying on existing tests
2023-11-22 23:48:48 +01:00
..
nu Add long options for misc and network (#10753) 2023-10-19 18:16:44 +02:00
lib.rs query command with json, web, xml (#870) 2022-02-01 12:45:48 -06:00
main.rs Bump to 0.60 (#4892) 2022-03-23 07:32:03 +13:00
query_json.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
query_web.rs Move more commands to opaque Record type (#11122) 2023-11-22 23:48:48 +01:00
query_xml.rs Convert more examples and tests to record! macro (#10840) 2023-10-28 14:52:31 +02:00
query.rs Add themes to help command when available #10318 (#10623) 2023-10-10 07:40:05 -05:00
web_tables.rs revert: move to ahash (#9464) 2023-06-18 15:27:57 +12:00