manifold-systems / manifold

Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
http://manifold.systems/
Apache License 2.0
2.42k stars 125 forks source link

[SQL] Add all combinations of element refs and ids for 'create' methods #576

Open EotT123 opened 6 months ago

EotT123 commented 6 months ago

This pull request enhances the create methods for SQL objects by offering more flexibility for handling foreign keys. Previously, users had to choose between object references or IDs, but now they can mix and match as needed. Additionally, identical or nearly identical code has been removed.

Example:

EotT123 commented 6 months ago

@rsmckinney I wasn't sure where to put some tests. Feel free to add them in the correct location.