mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Extends query builder
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user