MCPcopy Create free account
hub / github.com/M66B/FairEmail / read

Method read

app/src/main/java/androidx/room/TableInfo.java:167–173  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 3

readColumnsMethod · 0.95
readForeignKeysMethod · 0.95
readIndicesMethod · 0.95

Tested by

no test coverage detected