Rename toSql to compile