Electron100 / butane

An ORM for Rust with a focus on simplicity and on writing Rust, not SQL
Apache License 2.0
94 stars 13 forks source link

Add more flexibility in type path matching in proc macro #123

Closed Electron100 closed 1 year ago

Electron100 commented 1 year ago

Unfortunately because we don't have the type system available at proc-macro time, when evaluating model fields we look for specific paths like Option, ForeignKey etc. This change makes it easy to check for the base name as well as fully qualified name and allows fully-qualified names for Option, Many, and ForeignKey. It still does not support aliased names.

Fixes #115