Open balenaultra opened 1 year ago
Same problem here.
@balenaultra @JuanFcoMiranda Floor transactions work differently than Room transactions in some cases. The transaction annotation is used to perform multiple operations in a single atomic transaction, here is an example of how it is used in the doc. On the other hand, if you want to insert a list of items, this operation is performed in a transaction under the hood, so you no need to declare transaction there.
@balenaultra @JuanFcoMiranda , Did the answer of @dkaera help you? Can I close the issue?
After updating my project and running the build_runner i got an error in database.g.dart on my insert commands with the @transaction annotation.
I don't know if is a bug or just my misunderstood by using this property
My DAO
generated database file.
problem
Flutter doctor
My example project. flutter_floor_bug.zip