Skip to content

Commit

Permalink
chore: add KDoc for tableNameWithoutScheme
Browse files Browse the repository at this point in the history
  • Loading branch information
joc-a committed Oct 11, 2023
1 parent 3ea9037 commit 30f9848
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 30f9848

Please sign in to comment.