Reads the table information from the given database. @param database The database to read the information from. @param tableName The table name. @return A TableInfo containing the schema information for the provided table name.
(SupportSQLiteDatabase database, String tableName)
| 165 | * @return A TableInfo containing the schema information for the provided table name. |
| 166 | */ |
| 167 | @SuppressWarnings("SameParameterValue") |
| 168 | public static TableInfo read(SupportSQLiteDatabase database, String tableName) { |
| 169 | Map<String, Column> columns = readColumns(database, tableName); |
| 170 | Set<ForeignKey> foreignKeys = readForeignKeys(database, tableName); |
| 171 | Set<Index> indices = readIndices(database, tableName); |
| 172 | return new TableInfo(tableName, columns, foreignKeys, indices); |
| 173 | } |
| 174 | |
| 175 | private static Set<ForeignKey> readForeignKeys(SupportSQLiteDatabase database, |
| 176 | String tableName) { |
nothing calls this directly
no test coverage detected