{"action":"created","issue":{"url":"https://api.github.com/repos/pudo/dataset/issues/249","repository_url":"https://api.github.com/repos/pudo/dataset","labels_url":"https://api.github.com/repos/pudo/dataset/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/pudo/dataset/issues/249/comments","events_url":"https://api.github.com/repos/pudo/dataset/issues/249/events","html_url":"https://github.com/pudo/dataset/issues/249","id":321335146,"node_id":"MDU6SXNzdWUzMjEzMzUxNDY=","number":249,"title":"UPSERT MANY","user":{"login":"ohld","id":5613295,"node_id":"MDQ6VXNlcjU2MTMyOTU=","avatar_url":"https://avatars3.githubusercontent.com/u/5613295?v=4","gravatar_id":"","url":"https://api.github.com/users/ohld","html_url":"https://github.com/ohld","followers_url":"https://api.github.com/users/ohld/followers","following_url":"https://api.github.com/users/ohld/following{/other_user}","gists_url":"https://api.github.com/users/ohld/gists{/gist_id}","starred_url":"https://api.github.com/users/ohld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohld/subscriptions","organizations_url":"https://api.github.com/users/ohld/orgs","repos_url":"https://api.github.com/users/ohld/repos","events_url":"https://api.github.com/users/ohld/events{/privacy}","received_events_url":"https://api.github.com/users/ohld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-08T20:27:52Z","updated_at":"2018-12-20T13:50:39Z","closed_at":null,"author_association":"NONE","body":"I just found your library and it's amazing!\r\nBut I can't find method for UPSERT MANY sql-query.\r\n\r\nFor example, in `sqlite3`library I often use this calls:\r\n\r\n```python\r\ndb.executemany('REPLACE INTO .... ', list_of_dicts)\r\n```\r\n\r\nCan you please implement this method or give me the way how can I make it with already existing ones? Thanks!"},"comment":{"url":"https://api.github.com/repos/pudo/dataset/issues/comments/449005495","html_url":"https://github.com/pudo/dataset/issues/249#issuecomment-449005495","issue_url":"https://api.github.com/repos/pudo/dataset/issues/249","id":449005495,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTAwNTQ5NQ==","user":{"login":"saimn","id":311639,"node_id":"MDQ6VXNlcjMxMTYzOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/311639?v=4","gravatar_id":"","url":"https://api.github.com/users/saimn","html_url":"https://github.com/saimn","followers_url":"https://api.github.com/users/saimn/followers","following_url":"https://api.github.com/users/saimn/following{/other_user}","gists_url":"https://api.github.com/users/saimn/gists{/gist_id}","starred_url":"https://api.github.com/users/saimn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saimn/subscriptions","organizations_url":"https://api.github.com/users/saimn/orgs","repos_url":"https://api.github.com/users/saimn/repos","events_url":"https://api.github.com/users/saimn/events{/privacy}","received_events_url":"https://api.github.com/users/saimn/received_events","type":"User","site_admin":false},"created_at":"2018-12-20T13:50:39Z","updated_at":"2018-12-20T13:50:39Z","author_association":"CONTRIBUTOR","body":"I have a upsert_many helper function which just calls `Table.upsert` in a loop within a transaction block. Happy to make a PR with this, but maybe there is better way with sqlalchemy ?"}}
{"actor":{"display_login":"saimn"}}