commonMain.com.github.mejiomah17.yasb.sqlite.SqliteDeleteTest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of database-sqlite-test-fixtures-jvm Show documentation
Show all versions of database-sqlite-test-fixtures-jvm Show documentation
An YASB database-sqlite-test-fixtures module
The newest version!
package com.github.mejiomah17.yasb.sqlite
import com.github.mejiomah17.yasb.core.transaction.TransactionAtLeastRepeatableRead
import com.github.mejiomah17.yasb.dsl.DeleteTest
import com.github.mejiomah17.yasb.dsl.TestTable
interface SqliteDeleteTest<
TABLE : TestTable,
DRIVER_DATA_SOURCE,
DRIVER_STATEMENT,
DIALECT : SqliteDatabaseDialect,
TRANSACTION : TransactionAtLeastRepeatableRead
> :
DeleteTest {
override fun initSqlScripts(): List {
return listOf(
"DELETE FROM test",
"""INSERT INTO test (a,b) values (
|'the a',
|'the b'
| ),
| (
|'the aa',
|'the asd'
| )
""".trimMargin()
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy