Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This sounds like schemalessness to me? serious "question".


Not schemaless, but typeless. SQLite will let you declare a column to be an integer and then dump a string into it, but you're still defining a table with specific columns.

It's like the opposite problem Mysql has when you try to write data larger than the field definition - Mysql will truncate, Sqlite will store the data you gave it.


Typeless is the default though? Why wouldn't you want the types to be reliable when you're reading/writing from the backend in the general case?


I believe typeless is the default because of largely historical reason. Namely, typeless was the original mode and strict mode was added later. But, that’s not the only reason. There is a whole page on why typeless is a feature and not a bug.

https://sqlite.org/flextypegood.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: