I'm currently working on an application where multiple goroutines may at some point try to query or update a SQLite database file concurrently (using http://ift.tt/1lwG0Ak and database/sql drivers.)
What I'm not sure of is how locking/concurrent access is controlled; does the driver take care of it, or do I need to find a way to serialize requests with a mutex or channel?
Does someone know if the driver will wait to perform operations and retry if the database file is locked for some reason, or would it throw an error and give up?
Aucun commentaire:
Enregistrer un commentaire