fix naming

This commit is contained in:
jilen 2025-06-29 10:25:38 +08:00
parent 24f7f6aec0
commit 2753f01001
2 changed files with 3 additions and 5 deletions

View file

@ -182,10 +182,8 @@ private def compileImpl[I <: Idiom, N <: NamingStrategy](
n: Expr[N] n: Expr[N]
)(using Quotes, Type[I], Type[N]): Expr[Statement] = { )(using Quotes, Type[I], Type[N]): Expr[Statement] = {
import quotes.reflect.* import quotes.reflect.*
println(s"Start q.value")
q.value match { q.value match {
case Some(ast) => case Some(ast) =>
println(s"Finish q.value: ${ast}")
val idiom = LoadObject[I].getOrElse( val idiom = LoadObject[I].getOrElse(
report.errorAndAbort(s"Idiom not known at compile") report.errorAndAbort(s"Idiom not known at compile")
) )

View file

@ -55,7 +55,7 @@ object RowExtract {
trait Context[I <: Idiom, N <: NamingStrategy] { selft => trait Context[I <: Idiom, N <: NamingStrategy] { selft =>
val idiom: I val idiom: I
val naming: NamingStrategy val naming: N
type DBStatement type DBStatement
type DBRow type DBRow
@ -99,7 +99,7 @@ trait Context[I <: Idiom, N <: NamingStrategy] { selft =>
} }
val lifts = q.liftMap 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) val (sql, params) = stmt.expand(lifts)
( (
sql = sql, sql = sql,
@ -125,7 +125,7 @@ trait Context[I <: Idiom, N <: NamingStrategy] { selft =>
} }
val lifts = q.liftMap 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) val (sql, params) = stmt.expand(lifts)
( (
sql = sql, sql = sql,