Extends query builder

This commit is contained in:
Eike Kettner
2020-12-13 23:44:46 +01:00
parent 35c62049f5
commit 5e2c5d2a50
8 changed files with 69 additions and 34 deletions

View File

@ -150,7 +150,7 @@ object RegexNerFile {
)
val t = Column[Timestamp]("t", TableDef(""))
run(select(max(t)), fromSubSelect(sql).as("x"))
run(select(max(t)), from(sql, "x"))
.query[Option[Timestamp]]
.option
.map(_.flatten)