mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
Merge 'Add "dump" and "load" to the help menu' from EmNudge
These 2 were missing from the help menu and are both pretty useful. Noticed `.exit` is also missing, ambivalent about this one since it's rarely needed. Also removed all ending periods to make these consistent (sqlite uses this punctuation style as well) Closes #1072
This commit is contained in:
commit
8a3bdbfdf3
1 changed files with 17 additions and 9 deletions
26
cli/input.rs
26
cli/input.rs
|
|
@ -151,18 +151,20 @@ In addition to standard SQL commands, the following special commands are availab
|
|||
|
||||
Special Commands:
|
||||
-----------------
|
||||
.quit Stop interpreting input stream and exit.
|
||||
.show Display current settings.
|
||||
.open <database_file> Open and connect to a database file.
|
||||
.mode <mode> Change the output mode. Available modes are 'list' and 'pretty'.
|
||||
.schema <table_name> Show the schema of the specified table.
|
||||
.quit Stop interpreting input stream and exit
|
||||
.show Display current settings
|
||||
.open <database_file> Open and connect to a database file
|
||||
.mode <mode> Change the output mode. Available modes are 'list' and 'pretty'
|
||||
.schema <table_name> Show the schema of the specified table
|
||||
.tables <pattern> List names of tables matching LIKE pattern TABLE
|
||||
.opcodes Display all the opcodes defined by the virtual machine
|
||||
.cd <directory> Change the current working directory.
|
||||
.nullvalue <string> Set the value to be displayed for null values.
|
||||
.echo on|off Toggle echo mode to repeat commands before execution.
|
||||
.cd <directory> Change the current working directory
|
||||
.nullvalue <string> Set the value to be displayed for null values
|
||||
.echo on|off Toggle echo mode to repeat commands before execution
|
||||
.import --csv FILE TABLE Import csv data from FILE into TABLE
|
||||
.help Display this help message.
|
||||
.dump Output database contents as SQL
|
||||
.load Load an extension library
|
||||
.help Display this help message
|
||||
|
||||
Usage Examples:
|
||||
---------------
|
||||
|
|
@ -196,6 +198,12 @@ Usage Examples:
|
|||
10. To import csv file 'sample.csv' into 'csv_table' table:
|
||||
.import --csv sample.csv csv_table
|
||||
|
||||
11. To display the database contents as SQL:
|
||||
.dump
|
||||
|
||||
12. To load an extension library:
|
||||
.load /target/debug/liblimbo_regexp
|
||||
|
||||
Note:
|
||||
- All SQL commands must end with a semicolon (;).
|
||||
- Special commands do not require a semicolon."#;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue