MCPcopy
hub / github.com/django/django / sql_flush

Function sql_flush

django/core/management/sql.py:7–19  ·  view source on GitHub ↗

Return a list of the SQL statements used to flush the database.

(style, connection, reset_sequences=True, allow_cascade=False)

Source from the content-addressed store, hash-verified

5
6
7def 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
22def emit_pre_migrate_signal(verbosity, interactive, db, **kwargs):

Callers 2

handleMethod · 0.90
handleMethod · 0.90

Calls 2

django_table_namesMethod · 0.80
sql_flushMethod · 0.45

Tested by

no test coverage detected