I am trying to generate an SQL View. Here is the text in the .sq file:
CREATE VIEW dinnerMenuWithDate AS
SELECT
menu.,
menuToMenuItemRelation.,
menuItem.*
FROM menuToMenuItemRelation
INNER JOIN menu ON date = menu.date AND menu.isLunch = 0
INNER JOIN menuItem ON menuItemId = menuItem.id
WHERE menu.date = :date AND menu.menuId = menuToMenuItemRelation.menuId;
getDinnerMenuForDate:
SELECT * FROM dinnerMenuWithDate WHERE date = :date;
This compiles cleanly. The reference to this is generated in the database impl file (i.e. An import fro the class is included as well as the interface functions that use this class but the DinnerMenuWithDate class itself is not generated causing an unresolved reference compiler error.
SQLDelight Version
1.5.3
Operating System
Windows 11
Gradle Version
7.1.1
Kotlin Version
1.6.10
Dialect
MySql
AGP Version
No response
Describe the Bug
I am trying to generate an SQL View. Here is the text in the .sq file:
CREATE VIEW dinnerMenuWithDate AS SELECT menu., menuToMenuItemRelation., menuItem.* FROM menuToMenuItemRelation INNER JOIN menu ON date = menu.date AND menu.isLunch = 0 INNER JOIN menuItem ON menuItemId = menuItem.id WHERE menu.date = :date AND menu.menuId = menuToMenuItemRelation.menuId;
getDinnerMenuForDate: SELECT * FROM dinnerMenuWithDate WHERE date = :date;
This compiles cleanly. The reference to this is generated in the database impl file (i.e. An import fro the class is included as well as the interface functions that use this class but the DinnerMenuWithDate class itself is not generated causing an unresolved reference compiler error.
Stacktrace
No response
Gradle Build Script