Created
July 6, 2022 06:27
-
-
Save ValentinMouret/6df14ce4e5cb6bf739c9ce54a90c5d2b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for id, document in csv: | |
connection.execute( | |
""" | |
insert into user | |
(id, email) | |
values (%s, ($s::jsonb)->>'email'); | |
""", | |
[id, document], | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment