pinchbv / floor

The typesafe, reactive, and lightweight SQLite abstraction for your Flutter applications
https://pinchbv.github.io/floor/
Apache License 2.0
951 stars 190 forks source link

Issue when try to get insert primary key as String #778

Open sancho0410 opened 1 year ago

sancho0410 commented 1 year ago

Hi,

Actually and in according why the doc we have 3 choises when use insert : void, int or list In my case i use PrimaryKey as string (uuid v4).

@PrimaryKey(autoGenerate: false) String id;

So i can set my id before insert (using service and repo pattern) but i need to get the uuid directy.

I have an issue when i run the build. Is this modification will be possible on the future ? (for solve my case i will try to give the id from the service but very triky in case of reuseable method ;))

Thx a lot

dkaera commented 1 year ago

Hi @sancho0410 please provide an example of your DAO with the sequence of methods you want to use.