Skip to content

Commit

Permalink
Code review of the Ast (#2941)
Browse files Browse the repository at this point in the history
* Use more mutable data structures

* Use more mutable data structures

* Use more mutable data structures

* Use more mutable data structures

* clean

* clean

* clean

* clean

* Fix compilation

* Avoid allocations

* scalafmt

* clean

* scalafmt

* more lazy
  • Loading branch information
guizmaii authored Oct 22, 2023
1 parent 6fb94b6 commit 6eb5114
Show file tree
Hide file tree
Showing 4 changed files with 303 additions and 278 deletions.
2 changes: 1 addition & 1 deletion quill-engine/src/main/scala/io/getquill/MySQLDialect.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ trait MySQLDialect
stmt"IGNORE INTO ${renameable.fixedOr(name.token)(strategy.table(name).token)}"
}

def tokenizer(implicit astTokenizer: Tokenizer[Ast]) =
def tokenizer(implicit astTokenizer: Tokenizer[Ast]): Tokenizer[OnConflict] =
Tokenizer[OnConflict] {
case OnConflict(i, NoTarget, Update(a)) =>
stmt"${i.token} ON DUPLICATE KEY UPDATE ${a.token}"
Expand Down
Loading

0 comments on commit 6eb5114

Please sign in to comment.