3 ms·
I hope this doesn't work with DELETE queries.
by XCSme 2y ago
I hope this doesn't work with DELETE queries.
- ryguyrg 2y agoROFL
- codetrotter 2y agoROFL FROM jokes WHERE thats_a_new_one;
- falcor84 2y agoMaybe in the next version they could also implement support for DROP, with autocorrect for the nearest (not yet dropped) table name.
- clgeoio 2y agoLLM powered queries that run in Agent mode so it can answer questions of your data before you know what to ask.
- XCSme 2y agoThat's actually not a bad idea, to have LLM autocomplete when you write queries, especially if you first add a comment at the top saying what you want to achieve: // Select all orders for users registered in last year, and compute average earnings per user SELECT ...
- ako 2y agoThat already works in windsurf, I’ve created unit tests in go, where I just wrote a short comment in the unit test what data to query and windsurf would autocomplete with the full sql.
- XCSme 2y agoI mean, all LLMs do this already, but I never saw LLM autocomplete in a db tool (e.g. phpmyamdin, MongoDB Compass, etc).
- Covenant0028 2y agoVibe SQLing is where it's at
- krferriter 2y agoDELETED 0 rows. Did you mean `where 1=1`? (click accept to re-run with new where clause)
- munk-a 2y agoOr, for extra fun, it auto completes to DROP TRIGGER and just drops a single random trigger from your database. It'll help counter automation fears by ensuring your DBAs get to have a wonderful weekend on payroll where, very much in the easter spirit, they can hunt through the DB looking for the one thing that should be there but isn't!
- falcor84 2y agoWow, that's perhaps the most nefarious version of chaos engineering I had ever heard of. Kudos!
- crmi 2y agoYoung bobby tables at it again
- worldsayshi 2y agoCan't it just run inside a transaction that isn't committed?
- matsonj 2y agofor clarity: Instant SQL won't automatically run queries that write or delete data or metadata. It only runs queries that read data.
- d0100 2y agoAnd this is a happy coincidence that json_serialize_sql doesn't work with anything but select queries