Skip to content

Commit 13b5b94

Browse files
committed
comment
1 parent 71b6100 commit 13b5b94

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

src/main/scala/tyql/Config.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ enum ParameterStyle:
3535

3636
trait Config
3737
(
38-
val caseConvention: CaseConvention = CaseConvention.Exact,
39-
val parameterStyle: ParameterStyle = ParameterStyle.EscapedInline,
38+
val caseConvention: CaseConvention = CaseConvention.Exact,
39+
val parameterStyle: ParameterStyle = ParameterStyle.EscapedInline,
4040
)
4141

4242
object Config:

src/main/scala/tyql/DB.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ def driverMain(): Unit = {
225225

226226

227227

228-
val q = Table[Flowers]().map(
229-
f => (upperName = f.name.map(name => name.toUpperCase))
228+
val q = Table[Flowers]().filter(
229+
f => f.cost > 10.0 + 12.03
230230
)
231231
println("SQL: " + q.toQueryIR.toSQLString())
232232

src/main/scala/tyql/expr/Expr.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,8 @@ object Expr:
458458
case class Acos[S1 <: ExprShape, T: Numeric]($x: Expr[T, S1])(using ResultTag[T]) extends Expr[Double, S1]
459459
case class Atan[S1 <: ExprShape, T: Numeric]($x: Expr[T, S1])(using ResultTag[T]) extends Expr[Double, S1]
460460

461-
case class RandomUUID() extends Expr[String, NonScalarExpr] // XXX NonScalarExpr?
462-
case class RandomFloat() extends Expr[Double, NonScalarExpr] // XXX NonScalarExpr?
461+
case class RandomUUID() extends Expr[String, NonScalarExpr]
462+
case class RandomFloat() extends Expr[Double, NonScalarExpr]
463463
case class RandomInt[S1 <: ExprShape, S2 <: ExprShape]($x: Expr[Int, S1], $y: Expr[Int, S2])
464464
extends Expr[Int, CalculatedShape[S1, S2]]
465465

src/main/scala/tyql/ir/QueryIRNode.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ package tyql
22

33
import com.mysql.cj.xdevapi.SqlResult
44

5-
// TODO can we source it from somewhere and not guess about this?
6-
// Current values were proposed on 2024-11-19 by Claude Sonnet 3.5 v20241022, and somewhat modifier later
7-
// Maybe compare with https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-PRECEDENCE which appear to be a little different
5+
// Mostly compatible with https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-PRECEDENCE
86
object Precedence {
97
val Literal = 100 // literals, identifiers
108
val ListOps = 95 // list_append, list_prepend, list_contains

0 commit comments

Comments
 (0)