I would like to continue using Room, but I see no way to create an Entity that uses rtree. There is @FTS3 and @FTS4 annotations but nothing for RTree that I see. Is it possible to create an Entity using R-Tree?
I was attempting to do a migration with this code, but I still wouldn't have the Entity for Room...
val TABLE_CREATE = "CREATE VIRTUAL TABLE if not exists my_table_name USING rtree(" +
"row_id," + // Primary key
"minX, maxX," + // Minimum and maximum X coordinate
"minY, maxY" + // Minimum and maximum Y coordinate
");"
db.execSQL(TABLE_CREATE)