r/SQL • • Sep 15 '24

SQLite SQLite is not a toy database

https://antonz.org/sqlite-is-not-a-toy-database/
18 Upvotes

24 comments sorted by

12

u/dwpj65 Sep 15 '24

It's great for single user, single threaded applications that don't need to perform heavy analytical functions. In fact, until any of these requirements becomes mandatory, it's probably one of the best storage solutions.

2

u/diagraphic Sep 16 '24

Absolutely this. SQLite is a super!

8

u/Mastodont_XXX Sep 15 '24 edited Sep 15 '24

4 days ago

https://old.reddit.com/r/programming/comments/1fdntj3/sqlite_is_not_a_toy_database/

Database without date and time data types is no-go.

4

u/[deleted] Sep 16 '24

Database without date and time data types is no-go.

I agree.

In fact it doesn't have proper data type checking at all: https://dbfiddle.uk/QuMx1hef

I know it's documented and intended behavior. But that makes it even worse in my personal opinion.

1

u/diagraphic Sep 16 '24

Oh thats odd! I would think theres a flag or something that can be set for this?

2

u/[deleted] Sep 16 '24

You are thinking of strict tables - but that's only supported for INTEGER, REAL, TEXT and BLOB. You can't have a strict table using date or timestamp columns.

2

u/andrea_ci Sep 15 '24

Or collations

3

u/[deleted] Sep 16 '24

So why does it allow this?

https://dbfiddle.uk/QuMx1hef

4

u/AQuietMan Sep 15 '24 edited Sep 17 '24

Whether you are a developer, data analyst, QA engineer, DevOps person, or product manager - SQLite is a perfect tool for you.

No.

Client/server SQL database engines strive to implement a shared repository of enterprise data. They emphasize scalability, concurrency, centralization, and control. SQLite strives to provide local data storage for individual applications and devices. SQLite emphasizes economy, efficiency, reliability, independence, and simplicity.

SQLite does not compete with client/server databases. SQLite competes with fopen().

SQLite docs

2

u/RyanHamilton1 Sep 15 '24

Good overview article. Thanks.

28

u/[deleted] Sep 15 '24 edited Sep 15 '24

[removed] — view removed comment

10

u/3rdPoliceman Sep 15 '24

Tons of people call it that. I worked with someone who didn't consider it a database at all. Now, they were a moron, but people do underestimate sqlite.

6

u/DiscombobulatedSun54 Sep 15 '24

Their loss. It is the most widely used database out there, and if they don't know that, I wouldn't consider them much of a DB professioinal.

→ More replies (3)
→ More replies (2)

2

u/IlliterateJedi Sep 15 '24

Just the people reposting this article

9

u/[deleted] Sep 15 '24

[removed] — view removed comment

4

u/[deleted] Sep 16 '24

It isn't an RDBMS.

the S stands for "system", not "server".

SQLite is a Relational Database Management System

1

u/diagraphic Sep 16 '24

Very true.