getInstance function
Factory to get the current platform instance of SQLiteWrapperBase.
Registers the platform instance in InjectX on first call. Subsequent calls return the same registered instance. Use this instead of the deprecated SQLiteWrapper singleton.
Implementation
SQLiteWrapperBase getInstance() {
if (!InjectX.contains<SQLiteWrapperBase>()) {
InjectX.add<SQLiteWrapperBase>(SQLiteWrapperCore());
}
return InjectX.get<SQLiteWrapperBase>();
}