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
Say for example you want to populate a file_type column with the value gif. That could work like this:
file_type
gif
sqlite-utils insert-files gifs.db images *.gif \ -c path -c md5 -c last_modified:mtime \ -c file_type:text:gif --pk=path
So a column defined as a text column with a value that follows a second colon.
text
The text was updated successfully, but these errors were encountered:
Alternative idea for specifying types: accept a Python expression, then use Python type literal syntax. For example:
sqlite-utils insert-files gifs.db images *.gif \ -c path -c md5 -c last_modified:mtime \ -a file_type '"gif"'
Where -a indicates an additional column.
-a
Sorry, something went wrong.
No branches or pull requests
Say for example you want to populate a
file_type
column with the valuegif
. That could work like this:So a column defined as a
text
column with a value that follows a second colon.The text was updated successfully, but these errors were encountered: