mirror of
https://github.com/Effect-TS/effect.git
synced 2026-12-06 03:59:09 +08:00
Add encrypted remote compaction to the event log (#9571)
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { SqliteClient } from "@effect/sql-sqlite-node"
|
||||
import { assert, describe, it } from "@effect/vitest"
|
||||
import { Effect, Layer, Queue, Redacted, Stream } from "effect"
|
||||
import * as CompactionTest from "effect-test/eventlog/EventLogServerEncryptedCompactionTest"
|
||||
import * as EncryptedTest from "effect-test/eventlog/EventLogServerEncryptedTest"
|
||||
import * as SqlEventLogServerEncryptedStorageTest from "effect-test/eventlog/SqlEventLogServerEncryptedStorageTest"
|
||||
import * as Digest from "effect/crypto/Digest"
|
||||
import * as EventJournal from "effect/eventlog/EventJournal"
|
||||
import * as EventLog from "effect/eventlog/EventLog"
|
||||
@@ -26,6 +28,14 @@ EncryptedTest.suite(
|
||||
)
|
||||
)
|
||||
|
||||
CompactionTest.suite(
|
||||
"SQLite",
|
||||
(options) => SqlEventLogServer.layerStorage(options).pipe(Layer.provide(Digest.layerWebCrypto)),
|
||||
SqliteClient.layer({ filename: ":memory:" })
|
||||
)
|
||||
|
||||
SqlEventLogServerEncryptedStorageTest.compactionSuite("SQLite", SqliteClient.layer({ filename: ":memory:" }))
|
||||
|
||||
const storeIdA = "store-a" as StoreId
|
||||
const storeIdB = "store-b" as StoreId
|
||||
|
||||
|
||||
Reference in New Issue
Block a user