-
-
Notifications
You must be signed in to change notification settings - Fork 117
Document how to add a primary key to a rowid table using sqlite-utils transform --pk
#403
New issue
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
Labels
Comments
you can hack something like this to achieve this result:
|
This is already possible using
It's not covered in the documentation though: https://sqlite-utils.datasette.io/en/3.23/cli.html#transforming-tables |
sqlite-utils transform --pk
dddoooope |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Original title: Add option for adding a new, serial, primary key
sometimes we have tables that don't have primary keys, but ought to have them. we can use rowid for that, but it would often be nicer to have an explicit primary key. using the current value of rowid would be fine.
The text was updated successfully, but these errors were encountered: