All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.github.mejiomah17.yasb.sqlite.SqliteTableJoinTest.kt Maven / Gradle / Ivy

The newest version!
package com.github.mejiomah17.yasb.sqlite

import com.github.mejiomah17.yasb.core.transaction.TransactionAtLeastRepeatableRead
import com.github.mejiomah17.yasb.dsl.TestTable
import com.github.mejiomah17.yasb.dsl.join.TableJoinTest

interface SqliteTableJoinTest<
    TABLE : TestTable,
    DRIVER_DATA_SOURCE,
    DRIVER_STATEMENT,
    DIALECT : SqliteDatabaseDialect,
    TRANSACTION : TransactionAtLeastRepeatableRead
    > :
    TableJoinTest {

    override fun initSqlScripts(): List {
        return listOf(
            "DELETE FROM FIRST",
            "DELETE FROM SECOND",
            "DELETE FROM THIRD",
            "INSERT INTO FIRST (A,B) values ('XXX','B1')",
            "INSERT INTO FIRST (A,B) values ('YYY','C1')",
            "INSERT INTO SECOND (A,B) values ('XXX','B2')",
            "INSERT INTO SECOND (A,B) values ('ZZZ','D1')",
            "INSERT INTO THIRD (A,B) values ('XXX','B3')",
            "INSERT INTO THIRD (A,B) values ('ZZZ','E1')"
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy