uptrace / bun

SQL-first Golang ORM
https://bun.uptrace.dev
BSD 2-Clause "Simplified" License
3.83k stars 230 forks source link

`\n` new lines logged in console #311

Open frederikhors opened 3 years ago

frederikhors commented 3 years ago

If I save the content of a textarea (which includes \n for new lines) I can see in my console that bun is logging those new lines.

I think this didn't happen with go-pg and I don't think it's either useful or safe anyway.

Do you agree @vmihailenco?

vmihailenco commented 3 years ago

Yes, I guess we could strip leading/trailing whitespaces.

frederikhors commented 3 years ago

And in the middle?

vmihailenco commented 3 years ago

Ideally yes, but that requires some care to not strip newlines in string values so you can copy-paste query and execute it manually.

github-actions[bot] commented 2 weeks ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days. If there is no update within the next 7 days, this issue will be closed.