Created
November 8, 2023 06:22
-
-
Save monkut/166922dcc33fd2261e6c6e0a8db31bc9 to your computer and use it in GitHub Desktop.
django/lambda/zappa table truncate test command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"raw_command": "from django.db import connection;c = connection.cursor();table = 'TABLENAME';sql = f'TRUNCATE TABLE {table} CASCADE';c.execute(sql)" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment