def on_conflict():
    connection = sqlite3.connect(':memory:')
cursor = connection.cursor()
cursor.execute('CREATE TABLE foo (bar INTEGER UNIQUE, baz INTEGER)')
cursor.execute('INSERT INTO foo (bar,baz) VALUES (?, ?)', (1, 2))
cursor.execute('INSERT OR IGNORE INTO foo (bar,baz) VALUES (?, ?)', (1, 3))
cursor.execute('SELECT * from foo')
data = cursor.fetchall()
print(data)
insert_or_replace()
on_conflict()
insert into sqlite table with unique column