async def _execute_block(conn, block: dbops.PLBlock) -> None: if not block.is_transactional(): stmts = block.get_statements() else: stmts = [block.to_string()] if debug.flags.bootstrap: debug.header('Bootstrap') debug.dump_code(';\n'.join(stmts), lexer='sql') for stmt in stmts: await _execute(conn, stmt)
async def _execute_block(conn, block: dbops.PLBlock) -> None: sql_text = block.to_string() if debug.flags.bootstrap: debug.header('Bootstrap') debug.dump_code(sql_text, lexer='sql') await _execute(conn, sql_text)