cloneWith

Creates a clone of the current `DatabaseAdapter` with the given `DatabaseBackend`.

Return

a cloned instance of `DatabaseAdapter` with the given backend

Parameters

backend

the backend to clone the adapter with

Throws

if the given backend matches the current backend

if an I/O error occurs during setup