Skip to content

Commit

Permalink
Add an InternalApi opt-in and use it on `SELECT_DSL_DEPRECATION_MES…
Browse files Browse the repository at this point in the history
…SAGE`
  • Loading branch information
ShreckYe committed Nov 14, 2024
1 parent d578e0d commit 0cd9c07
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/src/commonMain/kotlin/com/huanshankeji/InternalApi.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.huanshankeji

@RequiresOptIn("This API is internal in Huanshankeji Kotlin Common and should not be used. It may be changed or removed in the future without notice.")
annotation class InternalApi
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
@file:OptIn(InternalApi::class)

package com.huanshankeji.exposed

import com.huanshankeji.InternalApi
import org.jetbrains.exposed.sql.*
import org.jetbrains.exposed.sql.statements.*

private const val SELECT_DSL_DEPRECATION_MESSAGE =
@InternalApi
const val SELECT_DSL_DEPRECATION_MESSAGE =
"As part of Exposed SELECT DSL design changes, this will be removed in future releases."

// The select queries are not executed eagerly so just use them directly.
Expand Down

0 comments on commit 0cd9c07

Please sign in to comment.