Use database transaction instead of custom query

Clause Sonnet 3.7 generated the following server connect using custom queries for transaction instead of database transaction step. I assume it should be trained to do the latter.

Still dont 100% trust AI to do server actions, they tend to be less than optimal in my opinion.

100% agree. I use it more to get ideas and to see if I may missed something. The frontend is also a hit and miss. It loves to overly complicate with custom code that don’t work most of the time. I am close to giving it up on AI way and go back to the old fashion way of coding.

Out of my head I suspect that we haven’t included in the AI instruction the transaction action description so the AI is finding a way around.

Will check it out.

1 Like