Return a list of the SQL statements used to flush the database.
(style, connection, reset_sequences=True, allow_cascade=False)
| 5 | |
| 6 | |
| 7 | def sql_flush(style, connection, reset_sequences=True, allow_cascade=False): |
| 8 | """ |
| 9 | Return a list of the SQL statements used to flush the database. |
| 10 | """ |
| 11 | tables = connection.introspection.django_table_names( |
| 12 | only_existing=True, include_views=False |
| 13 | ) |
| 14 | return connection.ops.sql_flush( |
| 15 | style, |
| 16 | tables, |
| 17 | reset_sequences=reset_sequences, |
| 18 | allow_cascade=allow_cascade, |
| 19 | ) |
| 20 | |
| 21 | |
| 22 | def emit_pre_migrate_signal(verbosity, interactive, db, **kwargs): |
no test coverage detected