Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Kotlin
/
DSLs
A SQL DSL accepts a String and interpolates it into a query. What does Kotlin type checki…
from DSLs
Kotlin 2.4.10
intermediate
1 min
A SQL DSL accepts a String and interpolates it into a query. What does Kotlin type checking prove?
Only that the argument has an accepted Kotlin type, not that it is safely encoded
The string cannot contain SQL metacharacters
@DslMarker parameterizes the query automatically
A trailing lambda escapes all values before execution
Check
Ask AI about this kata
Report an error
previous kata
What does a staged builder guarantee when only the final stage can produce the result?
Quiz
A new version is available
Reload