question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a script to call the delete table method in databaseconnect.py

See original GitHub issue

Is 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:

  1. Clear all tables
  2. Clear chat_table
  3. 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:closed
  • Created 3 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
gayathri-venucommented, May 1, 2020

Due to some technical constraints, I wasn’t able to work on this issue.Please assign it to @Rukmini-Meda

1reaction
Rukmini-Medacommented, May 1, 2020

@vishakha-lall I would like to work on this issue. Please assign this to me as part of GSSoC’20.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found