We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried running this:
sqlite-utils create-table compound.db compound \ category text id integer value text --pk category --pk id
And got this schema:
CREATE TABLE [compound] ( [category] TEXT, [id] INTEGER PRIMARY KEY, [value] TEXT );
The text was updated successfully, but these errors were encountered:
The documentation doesn't indicate that this works, but it should work for consistency with how transform works.
transform
https://sqlite-utils.datasette.io/en/stable/cli.html#cli-create-table
Sorry, something went wrong.
create-table now supports multiple --pk, refs #620
23be5be
Looking at https://sqlite-utils.datasette.io/en/latest/cli-reference.html there are other commands that should accept multiple primary keys as well:
insert
upsert
insert-files
The transform command accepts multiple --pk already.
--pk
No branches or pull requests
I tried running this:
And got this schema:
The text was updated successfully, but these errors were encountered: