Android-AnnotatedSQL icon indicating copy to clipboard operation
Android-AnnotatedSQL copied to clipboard

Cyclic dependencies between Schema2 and database contract

Open Alexander-- opened this issue 10 years ago • 0 comments

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).

Alexander-- avatar Oct 01 '15 13:10 Alexander--