little_pger
little_pger copied to clipboard
🐘 PostgreSQL query building with plain data structures.
The `to_commit` field is not used anywhere but the commit(), \_\_enter__() and \_\_exit__() methods. Is this expected behaviour? I would assume that to_commit should be set to True in the...
If we have a table with a composite primary key: ```sql CREATE TABLE items ( x INT, y INT, value INT, PRIMARY KEY (x, y) ); ``` `pg.upsert('items', values={'x': 1,...
Join ON
Why this line is commented ? https://github.com/cjauvin/little_pger/blob/master/little_pger.py#L204