From 30f98489d61cc5009af655ad0322861535c70702 Mon Sep 17 00:00:00 2001 From: Jocelyne Date: Wed, 11 Oct 2023 10:51:28 +0200 Subject: [PATCH] chore: add KDoc for tableNameWithoutScheme --- .../src/main/kotlin/org/jetbrains/exposed/sql/Table.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Table.kt b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Table.kt index 511979d267..ef8d2f939f 100644 --- a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Table.kt +++ b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Table.kt @@ -352,6 +352,12 @@ open class Table(name: String = "") : ColumnSet(), DdlAware { null } + /** + * Returns the table name without schema. + * + * If the table is quoted, a dot in the name is considered part of the table name and the whole string is taken to + * be the table name as is. If it is not quoted, whatever is after the dot is considered to be the table name. + */ internal val tableNameWithoutScheme: String get() = if (!tableName.isAlreadyQuoted()) tableName.substringAfterLast(".") else tableName