Skip to content

Dataset ignore my primary key #414

@ahvahsky2008

Description

@ahvahsky2008

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'])

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions