save
This commit is contained in:
parent
59f969a232
commit
6be96aba2c
3 changed files with 12 additions and 1 deletions
|
@ -123,6 +123,13 @@ private given FromExpr[Query] with {
|
||||||
Some(FlatMap(b, id, body))
|
Some(FlatMap(b, id, body))
|
||||||
case '{ ConcatMap(${ Expr(b) }, ${ Expr(id) }, ${ Expr(body) }) } =>
|
case '{ ConcatMap(${ Expr(b) }, ${ Expr(id) }, ${ Expr(body) }) } =>
|
||||||
Some(ConcatMap(b, id, body))
|
Some(ConcatMap(b, id, body))
|
||||||
|
case '{
|
||||||
|
val x: Ast = ${ Expr(b) }
|
||||||
|
val y: Ident = ${ Expr(id) }
|
||||||
|
val z: Ast = ${ Expr(body) }
|
||||||
|
ConcatMap(x, y, z)
|
||||||
|
} =>
|
||||||
|
Some(ConcatMap(b, id, body))
|
||||||
case '{ Drop(${ Expr(b) }, ${ Expr(n) }) } =>
|
case '{ Drop(${ Expr(b) }, ${ Expr(n) }) } =>
|
||||||
Some(Drop(b, n))
|
Some(Drop(b, n))
|
||||||
case '{ Take(${ Expr(b) }, ${ Expr[Ast](n) }) } =>
|
case '{ Take(${ Expr(b) }, ${ Expr[Ast](n) }) } =>
|
||||||
|
|
|
@ -56,6 +56,10 @@ trait Context[I <: Idiom, N <: NamingStrategy] { selft =>
|
||||||
extract: RowExtract[X]
|
extract: RowExtract[X]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
extension (ast: Ast) {
|
||||||
|
extractParams
|
||||||
|
}
|
||||||
|
|
||||||
inline def io[E](
|
inline def io[E](
|
||||||
inline q: minisql.Query[E]
|
inline q: minisql.Query[E]
|
||||||
)(using r: RowExtract[E]): DBIO[Seq[E]] = {
|
)(using r: RowExtract[E]): DBIO[Seq[E]] = {
|
||||||
|
|
|
@ -62,7 +62,7 @@ object ReifyStatement {
|
||||||
statement: Statement,
|
statement: Statement,
|
||||||
emptySetContainsToken: Token => Token,
|
emptySetContainsToken: Token => Token,
|
||||||
liftMap: SMap[String, (Any, Any)]
|
liftMap: SMap[String, (Any, Any)]
|
||||||
): (Token) = {
|
): Token = {
|
||||||
???
|
???
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue