Closed Firenox89 closed 3 years ago
thanks for reporting this issue. will try to fix it today.
Thanks for the quick response.
I just had a look and I think placing a few backticks could solve it.
For my case, I think this would do the trick.
RoomigrantCompiler/src/main/java/dev/matrix/roomigrant/compiler/Database.kt#L112
code.addStatement("val `%L` = %T()", indices, indicesType)
code.addStatement("")
code.addStatement("val `%L` = %T(%L, %S, %S, `%L`)", tableInfo, TableInfo::class, schemeInfo, table.name, table.createSql(), indices)
code.addStatement("%L.put(%S, `%L`)", tablesMap, table.name, tableInfo)
code.addStatement("")
Yes, it would fix this issue but I also want to reduce number of variables. Fix was pushed to the new version 0.3.2.
Wow, this was quick.
Thanks for your work👍🏻
Hi,
I just tried your library. Unfortunately my table names are using - as a word separator. e.g.
"device-config"
Generated code then looks like this, which the compiler complains about.