Is there is a way in the platform to know if an object is LocalDB or OnlineDB?

Is there is a way in the platform to know if an object is LocalDB or OnlineDB?

Yes, you can do this as follows:

object._adapter.description() === LocalDB

where object is the name of your database object.

2 Likes

Please note that is an internal API and might change without warning in future.