Reads the table information from the given database. @param database The database to read the information from. @param tableName The table name. @return A FtsTableInfo containing the columns and options for the provided table name.
(SupportSQLiteDatabase database, String tableName)
| 77 | * @return A FtsTableInfo containing the columns and options for the provided table name. |
| 78 | */ |
| 79 | public static FtsTableInfo read(SupportSQLiteDatabase database, String tableName) { |
| 80 | Set<String> columns = readColumns(database, tableName); |
| 81 | Set<String> options = readOptions(database, tableName); |
| 82 | |
| 83 | return new FtsTableInfo(tableName, columns, options); |
| 84 | } |
| 85 | |
| 86 | @SuppressWarnings("TryFinallyCanBeTryWithResources") |
| 87 | private static Set<String> readColumns(SupportSQLiteDatabase database, String tableName) { |
nothing calls this directly
no test coverage detected