Skip to content

Use Record APIs in nu-protocol/nu-engine#10917

Merged
sholderbach merged 7 commits intonushell:mainfrom
sholderbach:use-record-apis-core
Nov 1, 2023
Merged

Use Record APIs in nu-protocol/nu-engine#10917
sholderbach merged 7 commits intonushell:mainfrom
sholderbach:use-record-apis-core

Conversation

@sholderbach
Copy link
Copy Markdown
Member

Description

Consequences of #10841

This does not yet make the assumption that columns are always duplicated. Follow the existing logic here

  • Use saner record API in nu-engine/src/eval.rs
  • Use checked record construction in nu-engine/src/scope.rs
  • Use values iterator in nu-engine/src/scope.rs
  • Use columns iterator in nu_engine::get_columns()
  • Start using record API in value/mod.rs
  • Use .insert in eval_const.rs Record code
  • Record API for eval_const.rs table code

User-Facing Changes

None

Tests + Formatting

None

@sholderbach sholderbach merged commit a46048f into nushell:main Nov 1, 2023
@sholderbach sholderbach deleted the use-record-apis-core branch November 1, 2023 22:20
hardfau1t pushed a commit to hardfau1t/nushell that referenced this pull request Dec 14, 2023
# Description
Consequences of nushell#10841

This does not yet make the assumption that columns are always
duplicated. Follow the existing logic here

- Use saner record API in `nu-engine/src/eval.rs`
- Use checked record construction in `nu-engine/src/scope.rs`
- Use `values` iterator in `nu-engine/src/scope.rs`
- Use `columns` iterator in `nu_engine::get_columns()`
- Start using record API in `value/mod.rs`
- Use `.insert` in `eval_const.rs` Record code
- Record API for `eval_const.rs` table code

# User-Facing Changes
None

# Tests + Formatting
None
dmatos2012 pushed a commit to dmatos2012/nushell that referenced this pull request Feb 20, 2024
# Description
Consequences of nushell#10841

This does not yet make the assumption that columns are always
duplicated. Follow the existing logic here

- Use saner record API in `nu-engine/src/eval.rs`
- Use checked record construction in `nu-engine/src/scope.rs`
- Use `values` iterator in `nu-engine/src/scope.rs`
- Use `columns` iterator in `nu_engine::get_columns()`
- Start using record API in `value/mod.rs`
- Use `.insert` in `eval_const.rs` Record code
- Record API for `eval_const.rs` table code

# User-Facing Changes
None

# Tests + Formatting
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant