Open ahvahsky2008 opened 1 year ago
Why dataset ignore my key? I wanna that acategory_id will be primary key, but it creates own pk (id field)
payload = {'acategory_id': 1, 'acategory_name': 'xxx'} db['axixa'].upsert(payload, keys=['acategory_id'])
I think you can just specify the primary key column you want to use via get_table: https://dataset.readthedocs.io/en/latest/api.html#dataset.Database.get_table
get_table
I guess why pudo doesn't create my pk
??
Why dataset ignore my key? I wanna that acategory_id will be primary key, but it creates own pk (id field)