Skip to content

Better handling of sql session #19

@julienloizelet

Description

@julienloizelet

If an error occurs during a sql transaction, there is no rollback and the database can be locked.

We should use context manager to better handling sql session: commit on success and rollback on error.

Possible implementation: https://stackoverflow.com/a/29805305/7497291

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions