Ariel Mashraki
Ariel Mashraki
Hey all! Interceptors were added to Ent, and you can implement something like soft-delete with a shared Mixin in your project. Please, check out https://entgo.io/docs/interceptors#soft-delete and feel free to join...
See: https://github.com/a8m/pb/issues/113#issuecomment-1421439691 Thanks for rasing it up.
> @a8m any update on this? Mutation should not be tested inside hooks. Instead, create a builder and then call `Mutation()` - The assertions should apply on this object. If...
Note you can pass a template option to the `new` command and control generated base schema for your projects (e.g., mixins or privacy auto included, etc).
Hey @ernado and thanks for the kind words. > Hey, is it possible to mock ent without using sqlite driver? Currently no. I can share that a few months ago...
I accidentally posted my previous comment before finishing it, so I would like to understand more the use-case, why SQLite doesn't work for you, and what API do you expect...
Hey! I will recommend to use the StorageKey option instead, as this is not a common use case. Either with a separate index or on the actual field. See: https://entgo.io/docs/schema-fields#storage-key,...
Hey @lrobot, and thanks for opening this issue 👋 I understand that this issue is currently blocking you, but can't say much except that we'll get to it at some...
Hey @xushuhui, Another approach is to configure the table name using annotation. See https://entgo.io/docs/schema-annotations#custom-table-name
Hey @sir997 👋 The Update/Delete operations return a number indicating the number of rows affected. Where else do you need this information?