JetBrains / Exposed

Kotlin SQL Framework
http://jetbrains.github.io/Exposed/
Apache License 2.0
8.05k stars 676 forks source link

refactor!: Column type safety #2027

Closed joc-a closed 2 months ago

joc-a commented 3 months ago

The goal of this PR is to have type safety in the overridden functions of the interface IColumnType, which will reduce the number of checks in those functions. This change propagates to other classes and interfaces that extend and use IColumnType.

The following are affected:

  1. Custom column types
  2. Custom functions extending CustomFunction
  3. Custom operators extending CustomOperator
  4. Custom expressions extending ExpressionWithColumnType
  5. Usages of CurrentTimestamp function (class to object)