Getting data from SQLite in SwiftUI

I have an app that I wrote using the Apache Cordova Libraries that saves a small amount of data in a local SQLite database.

I'm currently rewriting the app using SwiftUI and Core Data. Is there any way of getting the data from the existing SQLite database so I can process it and re-save in Core Data?

I've googled and it seems that SwiftUI doesn't play well with SQLite. It looks as though it may be possible but the options I've seen don't seem very satisfactory and are overly complicated.

Are there any suggestions for a good method of recovering the data? I don't want the users to lose their information.

Thanks

It looks as though it may be possible but the options I've seen don't seem very satisfactory and are overly complicated. Unless you clarify what you have seen and what you think very satisfactory, readers are just confused. As far as I know, using SQLite database directly in iOS apps cannot be so simple even if you use some third party wrappers. If you don't want the users to lose their information, you may update your Cordova app to save the data somewhere not in raw SQLite database (I mean, JSON on some cloud storage or something like that). Or learn how to use SQLite in iOS, even if it it not satisfactory for you.

Getting data from SQLite in SwiftUI
 
 
Q