Skip to content

Commit

Permalink
Use schema method to extract schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeySoshin authored and bog-walk committed Aug 30, 2023
1 parent 27fc166 commit 5ae746a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ class JdbcDatabaseMetadataImpl(database: String, val metadata: DatabaseMetaData)
*/
internal fun extractSchemas(tables: Array<out Table>): Set<String> {
return tables.map { table ->
table.tableName.substringBefore(".")
table.schema
}.toSet()
}

Expand Down

0 comments on commit 5ae746a

Please sign in to comment.