Add a script to call the delete table method in databaseconnect.py
See original GitHub issueIs your feature request related to a problem? Please describe. Developers need to clear their tables for testing, or simply clear all learn statements. This should not be a part of the bot, rather only for developers.
Describe the solution you’d like
databaseconnect.py
already has all the methods required for this issue. All that is required is a new script cleardb.py
that interactively allows developers to clear their tables. It must provide options to developers to select:
- Clear all tables
- Clear chat_table
- Clear question_table and statement_table
Each option must pass appropriate parameters to
clear_table
method, which asks for confirmation before deleting the data.
Describe alternatives you’ve considered NA
Additional context
Merged PR for adding relevant methods in databaseconnect.py
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
How to Delete Records in SQL Server using Python
Steps to Delete Records in SQL Server using Python. Step 1: Install the Pyodbc Library. If you haven't already done so, install the...
Read more >Python Delete data from MySQL Table
1. Refer to Python MySQL database connection to connect to MySQL database from Python using MySQL Connector module 2. Next, prepare a SQL...
Read more >Solved: Need a script to delete the bulk data from tables
To run this script: Navigate to System Definition > Scripts - Background. Change table_name in the script to the name of the table...
Read more >Python MySQL Delete From
Delete Record. You can delete records from an existing table by using the "DELETE FROM" statement: Example. Delete any record where the address ......
Read more >2 OpenScript Scripting Basics
Delete Sheet - deletes the selected worksheet from the Data Table. ... You can open the Java code view of a script and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Due to some technical constraints, I wasn’t able to work on this issue.Please assign it to @Rukmini-Meda
@vishakha-lall I would like to work on this issue. Please assign this to me as part of GSSoC’20.