How to get ids
from bulk inserting in Peewee?
I need to return inserted ids for create a new array of dict like this:
a = [{"product_id": "inserted_id_1", "name": "name1"}, {"product_id": "inserted_id_2", "name": "name1"}]
Then I need to insert this using bulk like:
ids = query.insertBulk(a)
In its turn the last query should return me new ids for further similar insertion.