forked from extern/nushell
* feat: Add insensitive flag to get, fix #4295 * add get insensitive example * Fix get flags * Update get examples
This commit is contained in:
@ -52,7 +52,7 @@ impl CustomValue for ExprDb {
|
||||
fn follow_path_int(&self, count: usize, span: Span) -> Result<Value, ShellError> {
|
||||
let path = PathMember::Int { val: count, span };
|
||||
|
||||
ExprDb::expr_to_value(self.as_ref(), span).follow_cell_path(&[path])
|
||||
ExprDb::expr_to_value(self.as_ref(), span).follow_cell_path(&[path], false)
|
||||
}
|
||||
|
||||
fn follow_path_string(&self, column_name: String, span: Span) -> Result<Value, ShellError> {
|
||||
@ -61,7 +61,7 @@ impl CustomValue for ExprDb {
|
||||
span,
|
||||
};
|
||||
|
||||
ExprDb::expr_to_value(self.as_ref(), span).follow_cell_path(&[path])
|
||||
ExprDb::expr_to_value(self.as_ref(), span).follow_cell_path(&[path], false)
|
||||
}
|
||||
|
||||
fn typetag_name(&self) -> &'static str {
|
||||
|
@ -56,7 +56,7 @@ impl CustomValue for SelectDb {
|
||||
fn follow_path_int(&self, count: usize, span: Span) -> Result<Value, ShellError> {
|
||||
let path = PathMember::Int { val: count, span };
|
||||
|
||||
SelectDb::select_to_value(self.as_ref(), span).follow_cell_path(&[path])
|
||||
SelectDb::select_to_value(self.as_ref(), span).follow_cell_path(&[path], false)
|
||||
}
|
||||
|
||||
fn follow_path_string(&self, column_name: String, span: Span) -> Result<Value, ShellError> {
|
||||
@ -64,7 +64,7 @@ impl CustomValue for SelectDb {
|
||||
val: column_name,
|
||||
span,
|
||||
};
|
||||
SelectDb::select_to_value(self.as_ref(), span).follow_cell_path(&[path])
|
||||
SelectDb::select_to_value(self.as_ref(), span).follow_cell_path(&[path], false)
|
||||
}
|
||||
|
||||
fn typetag_name(&self) -> &'static str {
|
||||
|
Reference in New Issue
Block a user