diff options
author | Linnea Gräf <nea@nea.moe> | 2025-01-07 15:57:48 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-01-07 15:57:48 +0100 |
commit | dc19995f2b11ba595775b7224df200e365e7c4bf (patch) | |
tree | 0baee487f75db329c73e9125b030f0b6d5dd741b /src/main/kotlin/moe/nea/ledger/QueryCommand.kt | |
parent | 0ee8a4fdfedf20d543f42ab52a2f24af089271ac (diff) | |
download | LocalTransactionLedger-dc19995f2b11ba595775b7224df200e365e7c4bf.tar.gz LocalTransactionLedger-dc19995f2b11ba595775b7224df200e365e7c4bf.tar.bz2 LocalTransactionLedger-dc19995f2b11ba595775b7224df200e365e7c4bf.zip |
refactor: Extract database to its own module
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/QueryCommand.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/ledger/QueryCommand.kt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/QueryCommand.kt b/src/main/kotlin/moe/nea/ledger/QueryCommand.kt index 9967a4a..19bd5d0 100644 --- a/src/main/kotlin/moe/nea/ledger/QueryCommand.kt +++ b/src/main/kotlin/moe/nea/ledger/QueryCommand.kt @@ -1,11 +1,12 @@ package moe.nea.ledger -import moe.nea.ledger.database.ANDExpression -import moe.nea.ledger.database.BooleanExpression -import moe.nea.ledger.database.Clause +import moe.nea.ledger.database.sql.ANDExpression +import moe.nea.ledger.database.sql.BooleanExpression +import moe.nea.ledger.database.sql.Clause import moe.nea.ledger.database.DBItemEntry import moe.nea.ledger.database.DBLogEntry import moe.nea.ledger.database.Database +import moe.nea.ledger.utils.ULIDWrapper import moe.nea.ledger.utils.di.Inject import net.minecraft.command.CommandBase import net.minecraft.command.ICommandSender @@ -92,7 +93,7 @@ class QueryCommand : CommandBase() { query.where(ANDExpression(value)) } query.limit(80u) - val dedup = mutableSetOf<UUIDUtil.ULIDWrapper>() + val dedup = mutableSetOf<ULIDWrapper>() query.forEach { val type = it[DBLogEntry.type] val transactionId = it[DBLogEntry.transactionId] |