Closed jreppnow closed 3 months ago
I think the intent of this PR is mostly already covered by https://github.com/SeaQL/sea-orm/pull/2137 If you have something to amend, please rebase onto master, thanks!
@tyt2y3 Yup, that one pretty much covers it! Sorry for taking a bit longer to respond, I will close this PR as it's been superseded.
PR Info
Content: With the current implementation when deriving
DerivePartialModel
, one must specify theEntity
whose columns should be used as anIdent
- meaning that one must import it into the current scopeThis is somewhat unwieldy, especially when dealing with generated code, where one would prefer to just
use
the containing module, not the contents themselvesThis PR instead allows one to specify a
Path
, meaning that no directuse
is required anymoreTicket: Sorry, should have probably created a ticket first - does not exist atm, but can create one if necessary.
Bug Fixes
Entity
to be specified as aPath
, not just anIdent
, alleviating the need to import the Entity struct whenever you want to use the DerivePartialModel macroBreaking Changes
Path
s are a superset ofIdent
sChanges