Skip to content
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

str and int as aliases for text and integer #606

Closed
simonw opened this issue Dec 6, 2023 · 2 comments
Closed

str and int as aliases for text and integer #606

simonw opened this issue Dec 6, 2023 · 2 comments
Labels
cli-tool enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Dec 6, 2023

I keep making this mistake:

sqlite-utils add-column content.db assets _since int
Usage: sqlite-utils add-column [OPTIONS] PATH TABLE COL_NAME [[integer|float|b
                               lob|text|INTEGER|FLOAT|BLOB|TEXT]]
Try 'sqlite-utils add-column -h' for help.

Error: Invalid value for '[[integer|float|blob|text|INTEGER|FLOAT|BLOB|TEXT]]':
  'int' is not one of 'integer', 'float', 'blob', 'text', 'INTEGER', 'FLOAT', 'BLOB', 'TEXT'.
@simonw simonw added the enhancement New feature or request label Dec 6, 2023
@simonw
Copy link
Owner Author

simonw commented Dec 6, 2023

I'll add bytes too - float already works. This makes sense because when you are working with the Python API you use str and float and bytes and int to specify column types.

@simonw simonw closed this as completed in 88bd372 Dec 6, 2023
@simonw simonw added the cli-tool label Dec 6, 2023
simonw added a commit that referenced this issue Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli-tool enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant