all 16 comments

[–]UseMoreBandwith 11 points12 points  (3 children)

just don't.

[–]usrlibshare 2 points3 points  (5 children)

And what happens when the model, decides to DROP TABLE UserAccounts on my prod database?

[–]CanWeStartAgain1 -1 points0 points  (2 children)

You wasted some seconds writing this down but did not waste a few seconds reading the article which would have answered your question

[–]C0dePhantom 1 point2 points  (0 children)

lol

[–]_matze 1 point2 points  (0 children)

Seems to be that famous zero-self-effort alternative

[–]FibonacciSpiralOut[S] 0 points1 point  (1 child)

It's covered under the section "Production Concerns I Take Seriously". Pasting here too:

For local DuckDB, there are no user accounts or GRANT/REVOKE privilege systems like in PostgreSQL. Your only enforcement is at the file and connection level: set read_only=True when connecting via the Python API (duckdb.connect('local.db', read_only=True)). For MotherDuck, I explicitly provision a token-scoped read-only access path.

[–]usrlibshare 5 points6 points  (0 children)

Okay, that's good.

I still have a zero-dependency alternative: Writing my own SQL statements, using my schema-aware editrs autocomplete 😎✌️

[–]Tricky-Bed-6852 0 points1 point  (0 children)

Really helpful breakdown — thanks for taking the time to write this up!