Test Sql Driver Factory
actual class TestSqlDriverFactory(val sqlDriverFactory: SqlDriverFactory, overrideName: Boolean) : SqlDriverFactory
A wrapper class of SqlDriverFactory It will make sure to use InMemory databases for the platforms that are persistence such as android and ios To avoid test cases from conflicting Also creates a new database for each use case by overriding the db name everytime a new factory is created
Parameters
sql Driver Factory
main driver factory to be wrapper with in memory test drivers
override Name
if true it will add prefix to the database name to make sure every new driver is using a unique database to avoid conflicts, eg dbName: my-client.db will be 1-my-client.db, 2-my-client.db
expect class TestSqlDriverFactory(sqlDriverFactory: SqlDriverFactory, overrideName: Boolean = true) : SqlDriverFactory
actual class TestSqlDriverFactory(val sqlDriverFactory: SqlDriverFactory, overrideName: Boolean) : SqlDriverFactory
actual class TestSqlDriverFactory(val sqlDriverFactory: SqlDriverFactory, overrideName: Boolean) : SqlDriverFactory
actual class TestSqlDriverFactory(val sqlDriverFactory: SqlDriverFactory, overrideName: Boolean) : SqlDriverFactory