-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: EXPOSED-288 Extend ANY and ALL operators to use ArrayColumnType (…
…#1992) * feat: EXPOSED-288 Extend ANY and ALL operators to use ArrayColumnType - Support using ANY and ALL operators with array column or expression. - Remove UntypedAndUnsizedArrayColumnType and replace it in AllAnyFromArrayOp with ArrayColumnType. Remove associated unused dialect data types. - Introduce function that resolves a column type based on type reflection. Refactor existing array and json functions to use this, while still having a nullable override. * fix!: EXPOSED-288 Extend ANY and ALL operators to use ArrayColumnType Introduce InternalApi annotation and add it to resolveColumnType(). Move other existing annotation classes to dedicated file.
- Loading branch information
Showing
14 changed files
with
183 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Annotations.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package org.jetbrains.exposed.sql | ||
|
||
/** | ||
* API marked with this annotation is experimental. | ||
* Any behavior associated with its use is not guaranteed to be stable. | ||
*/ | ||
@RequiresOptIn( | ||
message = "This database migration API is experimental. " + | ||
"Its usage must be marked with '@OptIn(org.jetbrains.exposed.sql.ExperimentalDatabaseMigrationApi::class)' " + | ||
"or '@org.jetbrains.exposed.sql.ExperimentalDatabaseMigrationApi'." | ||
) | ||
@Target(AnnotationTarget.FUNCTION) | ||
annotation class ExperimentalDatabaseMigrationApi | ||
|
||
/** | ||
* API marked with this annotation is experimental. | ||
* Any behavior associated with its use is not guaranteed to be stable. | ||
*/ | ||
@RequiresOptIn( | ||
message = "This API is experimental and the behavior defined by setting this value to 'true' is now the default. " + | ||
"Its usage must be marked with '@OptIn(org.jetbrains.exposed.sql.ExperimentalKeywordApi::class)' " + | ||
"or '@org.jetbrains.exposed.sql.ExperimentalKeywordApi'." | ||
) | ||
@Target(AnnotationTarget.PROPERTY) | ||
annotation class ExperimentalKeywordApi | ||
|
||
/** | ||
* API marked with this annotation is internal and should not be used outside Exposed. | ||
* It may be changed or removed in the future without notice. | ||
* Using it outside Exposed may result in undefined and unexpected behaviour. | ||
*/ | ||
@RequiresOptIn( | ||
level = RequiresOptIn.Level.ERROR, | ||
message = "This API is internal in Exposed and should not be used. It may be changed or removed in the future without notice." | ||
) | ||
@Target( | ||
AnnotationTarget.CLASS, | ||
AnnotationTarget.CONSTRUCTOR, | ||
AnnotationTarget.FUNCTION, | ||
AnnotationTarget.PROPERTY, | ||
AnnotationTarget.PROPERTY_SETTER, | ||
AnnotationTarget.TYPEALIAS | ||
) | ||
annotation class InternalApi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.