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

Feature Request: highlight datatype conflicts in SQLite #138

Open
rentalhost opened this issue Aug 14, 2024 · 1 comment
Open

Feature Request: highlight datatype conflicts in SQLite #138

rentalhost opened this issue Aug 14, 2024 · 1 comment
Assignees

Comments

@rentalhost
Copy link
Contributor

(Following #137)

SQLite’s flexibility with column datatypes is nice, but it can sometimes be confusing when the actual datatype doesn’t match the column type. For example, a column might be set to INTEGER, but the stored data is a REAL. It would be awesome if there was a little visual indicator, like a small marker in the top right corner of the cell, to show when this happens.

When you hover over the marker, it could show a tooltip saying something like, "Expected type: INTEGER, received: REAL." This would give users a quick heads-up when there’s a type mismatch, making it easier to spot and deal with.

image

This can happen on several occasions. In practice, SQLite only officially supports 4 data types (plus NULL, which is not a "pure type"): INTEGER (123), REAL (1.23), TEXT ("abc") and BLOB (X'616263', binary for "abc").

Thanks for considering this!

@invisal
Copy link
Collaborator

invisal commented Aug 14, 2024

Nice idea. It shouldn't hard to add. Let me take a look.

@invisal invisal self-assigned this Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants