pudo / dataset

Easy-to-use data handling for SQL data stores with support for implicit table creation, bulk loading, and transactions.
https://dataset.readthedocs.org/
MIT License
4.76k stars 297 forks source link

Confusion with `insert_ignore` documentation #297

Closed robroc closed 4 years ago

robroc commented 5 years ago

I'm a little confused about this line in the description for insert_ignore:

"If rows with matching keys exist they will be added to the table."

This seems to contradict the preceding line, which says if a row exists it won't be inserted:

"Add a row dict into the table if the row does not exist."

Does specifying a key override the ignore behaviour?