The more I deal with edge cases in SQLite, the more I realize it's not actually a very good database.
-
-
Replying to @sgrif
Sometimes not actually very good is actually very good enough.
2 replies 0 retweets 0 likes -
Replying to @theomn
and/or "for people who want integer columns to not be able to store strings"
1 reply 0 retweets 1 like -
Oh god what
1 reply 0 retweets 0 likes -
Replying to @Malnormalulo @theomn
Miss Dada 🏳️⚧️ Retweeted Miss Dada 🏳️⚧️
SQLite is dynamically typed. Type names affect "type affinity", which only means "try to store this value as this type, if the conversion is lossless and reversible". Any column can store any type.https://twitter.com/sgrif/status/942136720392306688 …
Miss Dada 🏳️⚧️ added,
Miss Dada 🏳️⚧️ @sgrifPlease stop telling me that Diesel should infer `INTEGER` columns to be i64 on SQLite because "that supports the range of what it stores". Neither i64 or i32 support what it can store. We're just assuming what you meant by the type name (which is 32 bit on other dbs) pic.twitter.com/SwtnrjJhXq1 reply 0 retweets 0 likes
So for example, inserting `'1'` into a column with a type called `INTEGER` will get stored on disk as a 1 byte integer, but that's literally irrelevant from the outside
-
-
Replying to @sgrif @Malnormalulo
SQLite is basically The Dude. Integer? That's, like, your opinion, man.
0 replies 0 retweets 2 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.