nushell/crates/nu-command/src
Reilly Wood 57ff668d2e
Make SQLite queries cancellable (#7351)
This change makes SQLite queries (`open foo.db`, `open foo.db | query db
"select ..."`) cancellable using `ctrl+c`. Previously they were not
cancellable, which made it unpleasant to accidentally open a very large
database or run an unexpectedly slow query!

UX-wise there's not too much to show:


![image](https://user-images.githubusercontent.com/26268125/205519205-e1f2ab58-c92d-4b96-9f80-eb123f678ec3.png)

## Notes

I was hoping to make SQLite queries streamable as part of this work, but
I ran into 2 problems:
1. `rusqlite` lifetimes are nightmarishly complex and they make it hard
to create a `ListStream` iterator
2. The functions on Nu's `CustomValue` trait return `Value` not
`PipelineData` and so `CustomValue` implementations can't stream data
AFAICT.
2022-12-04 16:49:47 -08:00
..
bits add signature information when get help on one command (#7079) 2022-11-20 07:22:42 -06:00
bytes add signature information when get help on one command (#7079) 2022-11-20 07:22:42 -06:00
charting Protocol: debug_assert!() Span to reflect a valid slice (#6806) 2022-12-03 11:44:12 +02:00
conversions Protocol: debug_assert!() Span to reflect a valid slice (#6806) 2022-12-03 11:44:12 +02:00
core_commands Protocol: debug_assert!() Span to reflect a valid slice (#6806) 2022-12-03 11:44:12 +02:00
database Make SQLite queries cancellable (#7351) 2022-12-04 16:49:47 -08:00
dataframe Protocol: debug_assert!() Span to reflect a valid slice (#6806) 2022-12-03 11:44:12 +02:00
date chore: chrono_update (#7132) 2022-11-27 07:19:02 +13:00
deprecated Add a deprecation note for removed build-string (#7307) 2022-12-01 16:26:59 +01:00
env Protocol: debug_assert!() Span to reflect a valid slice (#6806) 2022-12-03 11:44:12 +02:00
experimental Removes export env command (#6468) 2022-09-25 19:52:43 +03:00
filesystem Make SQLite queries cancellable (#7351) 2022-12-04 16:49:47 -08:00
filters Protocol: debug_assert!() Span to reflect a valid slice (#6806) 2022-12-03 11:44:12 +02:00
formats Protocol: debug_assert!() Span to reflect a valid slice (#6806) 2022-12-03 11:44:12 +02:00
generators fix cal input_output_types signature (#7306) 2022-12-01 07:10:49 -06:00
hash add signature information when get help on one command (#7079) 2022-11-20 07:22:42 -06:00
math Add natural logarithm (#7258) 2022-12-01 15:58:05 +01:00
misc Protocol: debug_assert!() Span to reflect a valid slice (#6806) 2022-12-03 11:44:12 +02:00
network Fix fetch/post not erroring on 4xx and 5xx statuses (#7213) 2022-11-23 08:43:12 -08:00
path Fix sort-by, path join and size error arrows (#7199) 2022-11-23 19:22:23 +13:00
platform kill: don't show signal example on windows (#7353) 2022-12-04 16:39:54 -08:00
random add signature information when get help on one command (#7079) 2022-11-20 07:22:42 -06:00
shells Refactor shell listing related code (#6262) 2022-08-08 06:31:24 -05:00
strings Protocol: debug_assert!() Span to reflect a valid slice (#6806) 2022-12-03 11:44:12 +02:00
system A set of fixes for stderr redirect (#7219) 2022-11-24 16:58:15 +13:00
viewers Make SQLite queries cancellable (#7351) 2022-12-04 16:49:47 -08:00
default_context.rs uniq-by command (#7295) 2022-12-02 11:36:01 +01:00
example_test.rs Fix where -b flag (#7313) 2022-12-01 15:11:03 -08:00
input_handler.rs Replace all instances of 'column path' in help messages with 'cell path' (#7063) 2022-11-09 21:49:11 -08:00
lib.rs Feature cleanup (#7182) 2022-11-22 16:58:11 -08:00
sort_utils.rs Fix sort-by, path join and size error arrows (#7199) 2022-11-23 19:22:23 +13:00