RepositoryProcessor

class RepositoryProcessor(options: Map<String, String>, logger: KSPLogger, codeGenerator: CodeGenerator) : SymbolProcessor(source)

Constructors

Link copied to clipboard
constructor(options: Map<String, String>, logger: KSPLogger, codeGenerator: CodeGenerator)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun finish()
Link copied to clipboard
open fun onError()
Link copied to clipboard
operator fun OutputStream.plusAssign(str: String)
Link copied to clipboard
open override fun process(resolver: Resolver): List<KSAnnotated>

Processes repository symbols annotated with a specific annotation, validates these symbols, and generates Kotlin code for their associated functionality. The generated code is written to a new file using a specified file name and package.

Link copied to clipboard
fun validateParameters(sql: String, fn: KSFunctionDeclaration, useContextParameters: Boolean)

Validates the parameters in a repository method in the context of a SQL query.