adding listvfs to extra helpful message

This commit is contained in:
pedrocarlo
2025-03-30 02:52:07 -03:00
parent 62b866618b
commit c36dc61c92

View File

@@ -168,71 +168,6 @@ pub fn get_io(db_location: DbLocation, io_choice: &str) -> anyhow::Result<Arc<dy
})
}
pub const _HELP_MSG: &str = r#"
Limbo SQL Shell Help
==============
Welcome to the Limbo SQL Shell! You can execute any standard SQL command here.
In addition to standard SQL commands, the following special commands are available:
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
.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
.import --csv FILE TABLE Import csv data from FILE into TABLE
.dump Output database contents as SQL
.load Load an extension library
.help Display this help message
Usage Examples:
---------------
1. To quit the Limbo SQL Shell:
.quit
2. To open a database file at path './employees.db':
.open employees.db
3. To view the schema of a table named 'employees':
.schema employees
4. To list all tables:
.tables
5. To list all available SQL opcodes:
.opcodes
6. To change the current output mode to 'pretty':
.mode pretty
7. Send output to STDOUT if no file is specified:
.output
8. To change the current working directory to '/tmp':
.cd /tmp
9. Show the current values of settings:
.show
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."#;
pub const BEFORE_HELP_MSG: &str = r#"
Limbo SQL Shell Help
@@ -277,6 +212,9 @@ pub const AFTER_HELP_MSG: &str = r#"Usage Examples:
12. To load an extension library:
.load /target/debug/liblimbo_regexp
13. To list all available VFS:
.listvfs
Note:
- All SQL commands must end with a semicolon (;).
- Special commands start with a dot (.) and are not required to end with a semicolon."#;