fix naming
This commit is contained in:
parent
24f7f6aec0
commit
2753f01001
2 changed files with 3 additions and 5 deletions
|
@ -182,10 +182,8 @@ private def compileImpl[I <: Idiom, N <: NamingStrategy](
|
|||
n: Expr[N]
|
||||
)(using Quotes, Type[I], Type[N]): Expr[Statement] = {
|
||||
import quotes.reflect.*
|
||||
println(s"Start q.value")
|
||||
q.value match {
|
||||
case Some(ast) =>
|
||||
println(s"Finish q.value: ${ast}")
|
||||
val idiom = LoadObject[I].getOrElse(
|
||||
report.errorAndAbort(s"Idiom not known at compile")
|
||||
)
|
||||
|
|
|
@ -55,7 +55,7 @@ object RowExtract {
|
|||
trait Context[I <: Idiom, N <: NamingStrategy] { selft =>
|
||||
|
||||
val idiom: I
|
||||
val naming: NamingStrategy
|
||||
val naming: N
|
||||
|
||||
type DBStatement
|
||||
type DBRow
|
||||
|
@ -99,7 +99,7 @@ trait Context[I <: Idiom, N <: NamingStrategy] { selft =>
|
|||
}
|
||||
|
||||
val lifts = q.liftMap
|
||||
val stmt = minisql.compile(q, idiom, naming)
|
||||
val stmt = minisql.compile[I, N](q, idiom, naming)
|
||||
val (sql, params) = stmt.expand(lifts)
|
||||
(
|
||||
sql = sql,
|
||||
|
@ -125,7 +125,7 @@ trait Context[I <: Idiom, N <: NamingStrategy] { selft =>
|
|||
}
|
||||
|
||||
val lifts = q.liftMap
|
||||
val stmt = minisql.compile(q, idiom, naming)
|
||||
val stmt = minisql.compile[I, N](q, idiom, naming)
|
||||
val (sql, params) = stmt.expand(lifts)
|
||||
(
|
||||
sql = sql,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue