Esempio n. 1
0
def _visit_insert_from_select(element: _InsertFromSelect, compiler: PGCompiler_psycopg2, **kw):
    return "INSERT INTO %s (%s) %s %s" % (
        compiler.process(element.table_clause, asfrom=True),
        ', '.join(element.table_clause.columns.keys()),
        compiler.process(element.select),
        _get_conflict_action(element.table, True)
    )