Hey, I use Sqldelight on iOS and want to put my d...
# multiplatform
t
Hey, I use Sqldelight on iOS and want to put my database file into a specific folder:
Copy code
NativeSqliteDriver(MyDatabase.Schema, "file:///private/var/mobile/Containers/Shared/AppGroup/.../test.db")
But this is forbidden by:
Copy code
private fun checkFilename(name: String) {
  if (name.contains("/")) {
    throw IllegalArgumentException(
      "File $name contains a path separator"
    )
  }
}
Someone knows the proper way to setup this?
t
There is another constructor for the native driver which accepts a DatabaseConfiguration where you can pass a basePath
t
Ah thx found it. It's working now👍