Android-AnnotatedSQL
Android-AnnotatedSQL copied to clipboard
Cyclic dependencies between Schema2 and database contract
Let's look at schema with simple join on views. The linked gist won't compile, because using a Schema2 requires a table to be parsed... Which can not be done until @SimpleView, using the Scema2 is parsed.
I see 3 solutions (aside from not using AnnotatedSQL there):
- Hardcode stuff from Schema2 into the contract (not nice, isn't it?);
- Postpone individual tables/views until further compilation passes;
- Simply do not create Schema2 (e.g. #20).