r/ProgrammerHumor • • Oct 14 '25

Advanced neverForget

/img/fmfo1e41g0vf1.png
14k Upvotes

616 comments sorted by

View all comments

170

u/Objectionne Oct 14 '25

Don't most modern database engines require a condition when deleting these days?

303

u/[deleted] Oct 14 '25

HA!
who has a modern db? That requires upgrades n stuff and if it aint broke, dont touch it bc it will all shatter at the abstracted notion of the lightest breeze

31

u/TRKlausss Oct 14 '25

But like, not having a condition when deleting is being broken…

36

u/amzwC137 Oct 14 '25

Guardrails schmard rails, who needs 'em.

3

u/Colbsters_ Oct 14 '25

But what if I want to delete my entire table?

→ More replies (2)

2

u/jhwheuer Oct 14 '25

Been around haven't you? ;-)

→ More replies (2)

52

u/prehensilemullet Oct 14 '25

Postgres does not

But in any case psql requires a semicolon

18

u/VolcanicBear Oct 14 '25

And any sane person is beginning and ending transactions.

3

u/jek39 Oct 14 '25

Or just using any good IDE that warns you if you execute an update or delete without a where clause. Jetbrains does this

→ More replies (1)

24

u/nonlogin Oct 14 '25

Some clients do, not db engines

13

u/thebeerhugger Oct 14 '25

WHERE 1 = 1

8

u/freeflow276 Oct 14 '25

You cannot save them all

→ More replies (1)

3

u/Jason1143 Oct 14 '25

That's fine. Because typing that shows intent. The issue isn't being able to nuke everything, the issue is being able to do it by accident.

24

u/JiminP Oct 14 '25

SQLite doesn't.

On one hand, using SQLite in production is weird.

On the other hand, it might not be that weird.

On the other other hand, it still feels weird.

18

u/leaningtoweravenger Oct 14 '25

SQLite in production is ok only as a disk storage for a local app when you don't want to use files on disk manually

10

u/JiminP Oct 14 '25

ok only as a disk storage for a local app

SQLite in production for an online service like a webapp is surprisingly "OK" for many cases (at least that's what the blog article I linked claims). (Also check official document on this topic.)

Nevertheless, I would use PostgreSQL.

→ More replies (4)

3

u/Jaggedmallard26 Oct 14 '25

SQLite is great for production so long as you aren't using it as a client server database engine. There are plenty of usecases for sqlite.

5

u/Bot1-The_Bot_Meanace Oct 14 '25

There's DBs on my work place that were already running when Yugoslavia still existed

4

u/Kitchen-Quality-3317 Oct 14 '25

I have a db in production that was created before we landed on the moon... The last write to it was probably 30 years ago, but it's still there.

3

u/No-Clue1153 Oct 14 '25

Idk i’ll try it and find out, 1 sec

6

u/wite_noiz Oct 14 '25

He never returned... We'll remember you, brave Redditor!

2

u/Blue_Moon_Lake Oct 14 '25

And then you're missing a AND x=y when you accidentally type enter.

→ More replies (16)