From c36dc61c9272bae45deccb04d11db2b8d356e363 Mon Sep 17 00:00:00 2001 From: pedrocarlo Date: Sun, 30 Mar 2025 02:52:07 -0300 Subject: [PATCH] adding listvfs to extra helpful message --- cli/input.rs | 68 +++------------------------------------------------- 1 file changed, 3 insertions(+), 65 deletions(-) diff --git a/cli/input.rs b/cli/input.rs index 4f7db9ed1..4361394c0 100644 --- a/cli/input.rs +++ b/cli/input.rs @@ -168,71 +168,6 @@ pub fn get_io(db_location: DbLocation, io_choice: &str) -> anyhow::Result Open and connect to a database file -.mode Change the output mode. Available modes are 'list' and 'pretty' -.schema Show the schema of the specified table -.tables List names of tables matching LIKE pattern TABLE -.opcodes Display all the opcodes defined by the virtual machine -.cd Change the current working directory -.nullvalue 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."#;