com.dbobjekts.codegen.metadata.TableMetaData.kt Maven / Gradle / Ivy
package com.dbobjekts.codegen.metadata
import com.dbobjekts.api.SchemaName
import com.dbobjekts.api.TableName
data class TableMetaData(
val schema: SchemaName,
val tableName: TableName,
val columns: List = listOf(),
val foreignKeys: List = listOf()
) {
override fun toString(): String {
return """
$schema.$tableName(
${columns.joinToString("\n")}
)
Keys: (
${foreignKeys.joinToString("\n")}
)""".trimIndent()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy