Command line manager for simple operations with sqlite3 databases.
To run the program, use:
sqlite_3_CLI_manager.py "database_path"
Functionality and commands.
Connect to a table:
table [tablename]
List all paginated rows in database. Optionally provide a page number. If the page number is 0, the system uses the last page:
list [optional page]
Show next page of rows. Used only after list:
next
Show previous page of rows. Used only after list:
back
Update a single value in a row. Primary key must exist:
update [column name] [primary key]
Insert new row to the table. Optionally provide an id for new row. If table contains NOT NULL columns, wizard will ask you to fill each of them one by one:
insert [optional id]
Display table metadata, for example primary key column and its type:
meta
Delete the row. Primary key must exist:
delete [primary key]
Show this help:
help
Terminate the CLI program:
exit