There are two ways to switch datasources:
By configuring a switchable database scenario, and then changing the libraries and connection
By matching schemas