1
0
mirror of https://github.com/nushell/nushell.git synced 2025-04-25 21:58:18 +02:00
nushell/crates/nu_plugin_query/src
mike 8e38596bc9
allow tables to have annotations ()
# Description

follow up to  and 

this works very similarly to record annotations, only difference being
that

```sh
table<name: string>
      ^^^^  ^^^^^^
      |     | 
      |     represents the type of the items in that column
      |
      represents the column name
```
more info on the syntax can be found
[here](https://github.com/nushell/nushell/pull/8914#issue-1672113520)

# User-Facing Changes

**[BREAKING CHANGE]**
this change adds a field to `SyntaxShape::Table` so any plugins that
used it will have to update and include the field. though if you are
unsure of the type the table expects, `SyntaxShape::Table(vec![])` will
suffice
2023-07-07 11:06:09 +02:00
..
nu allow tables to have annotations () 2023-07-07 11:06:09 +02:00
lib.rs query command with json, web, xml () 2022-02-01 12:45:48 -06:00
main.rs Bump to 0.60 () 2022-03-23 07:32:03 +13:00
query_json.rs fix some typos () 2023-01-16 12:43:46 +01:00
query_web.rs Use variable names directly in the format strings () 2023-01-29 19:37:54 -06:00
query_xml.rs Reduce again the number of match calls () 2023-01-24 12:23:42 +01:00
query.rs Parameter defaults to $nu.scope.commands () 2023-05-11 13:59:56 -05:00
web_tables.rs revert: move to ahash () 2023-06-18 15:27:57 +12:00