mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 02:48:26 +00:00
Add more ways to query for attachments
- find items with a specified attachment count - find items by attachment id
This commit is contained in:
@ -6,6 +6,7 @@ import docspell.store.records._
|
||||
import minitest._
|
||||
import docspell.common._
|
||||
import docspell.query.ItemQueryParser
|
||||
import docspell.store.queries.AttachCountTable
|
||||
import docspell.store.qb.DSL._
|
||||
import docspell.store.qb.generator.{ItemQueryGenerator, Tables}
|
||||
|
||||
@ -20,7 +21,8 @@ object ItemQueryGeneratorTest extends SimpleTestSuite {
|
||||
REquipment.as("ne"),
|
||||
RFolder.as("f"),
|
||||
RAttachment.as("a"),
|
||||
RAttachmentMeta.as("m")
|
||||
RAttachmentMeta.as("m"),
|
||||
AttachCountTable("cta")
|
||||
)
|
||||
val now: LocalDate = LocalDate.of(2021, 2, 25)
|
||||
|
||||
|
Reference in New Issue
Block a user