sqlc-dev / sqlc

Generate type-safe code from SQL
https://sqlc.dev
MIT License
13.51k stars 810 forks source link

Don't require Go MySQL parseTime=true #3686

Open jessepeterson opened 2 weeks ago

jessepeterson commented 2 weeks ago

What do you want to change?

In the datatypes docs it says:

For MySQL users relying on github.com/go-sql-driver/mysql, ensure that parseTime=true is added to your database connection string.

Can there be a mode or switch that turns off this assumption? That is: any date/time field is assumed to be textual (string or []byte) rather than a time.Time{}?

Thanks!

What database engines need to be changed?

MySQL

What programming language backends need to be changed?

Go