Skip to content

Support compound primary keys #36

Closed

Description

@simonw

This should work:

table = db["dog_breeds"].insert({
    "dog_id": 1,
    "breed_id": 2
}, pk=("dog_id", "breed_id"))

Needed for m2m work in #23

Activity

  1. changed the title [-]Handle compound primary keys[/-] [+]Support compound primary keys[/+] on Jul 1, 2019
  2. added a commit that references this issue on Jul 15, 2019
    d5dc928
  3. added a commit that references this issue on Jul 24, 2019
    29fd397
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions