-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle SQL parser errors on update/insert statements and improve hand…
…ling of query error output. Add QueryTableModified to allow the manual specification of which tables are changed by a Query that uses update/insert/delete. Update documentation on debugging the KSP processor.
- Loading branch information
1 parent
3125f24
commit e439bb2
Showing
7 changed files
with
91 additions
and
27 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
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
11 changes: 11 additions & 0 deletions
11
door-runtime/src/commonMain/kotlin/com/ustadmobile/door/annotation/QueryTableModified.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,11 @@ | ||
package com.ustadmobile.door.annotation | ||
|
||
@Retention(AnnotationRetention.BINARY) | ||
@Target(AnnotationTarget.FUNCTION) | ||
|
||
/** | ||
* Most of the time when a Query modifies a table (e.g. insert, update, delete) the query parser can | ||
* figure it out. | ||
* When it cannot detect the table name, this annotation is used to manually specify the table name. | ||
*/ | ||
annotation class QueryTableModified(val value: String) |
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