Skip to content

Support compound primary keys #26

@simonw

Description

@simonw

These are deliberately not supported here:

pks = inspector.get_pk_constraint(table)["constrained_columns"]
if len(pks) > 1:
raise click.ClickException(
"Multiple primary keys not currently supported"
)
pk = None
if pks:
pk = pks[0]

I think that's because sqlite-utils didn't support them - but it gained support for them in 1.5: https://sqlite-utils.readthedocs.io/en/stable/changelog.html#v1-5

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