jmoiron / sqlx

general purpose extensions to golang's database/sql
http://jmoiron.github.io/sqlx/
MIT License
16.24k stars 1.08k forks source link

Documentation of which objects are safe for concurrent use from multiple goroutines #258

Open carbocation opened 8 years ago

carbocation commented 8 years ago

Following usual go idioms, it would be helpful in the documentation to mark objects that can safely be used concurrently from multiple goroutines. As far as I know, only sqlx.DB is safe in this way. Based on parallels to the standard lib, I imagine that the various prepared statements are safe, too. Are any other components similarly safe for simultaneous use?

tapir commented 7 years ago

Is it safe to access sqlx.DB from multiple goroutines?

umardev500 commented 8 months ago

Is it safe to access sqlx.DB from multiple goroutines?

nope... we will get error to many client already