call the method connection.ops.sql_flush with arguments: style, tables, seqs and allow_cascade, substitute the result for statements.
statements = connection . ops . sql_flush ( style , tables , seqs , allow_cascade )