package com.correx.infrastructure.persistence

import com.correx.core.events.stores.EventStore
import com.correx.testing.contracts.fixtures.artifactstore.NoopArtifactStore
import com.correx.testing.contracts.fixtures.events.store.EventStoreContractTest
import java.sql.DriverManager

class SqliteEventStoreTest : EventStoreContractTest() {
    override fun store(): EventStore {
        val conn = DriverManager.getConnection("jdbc:sqlite::memory:")
        return SqliteEventStore(conn, artifactStore = NoopArtifactStore())
    }
}
