I want to use CoreData to operate PostgreSQL on Swift2 in MacOS.

Asked 2 years ago, Updated 2 years ago, 118 views

I would like to know how to manipulate PostgreSQL data using CoreData using Swift2 on MacOS.
CoreData seems to support SQLite, but how do I replace (or rewrite) this part with PostgreSQL?

I would like to be able to use CoreData to operate RDBMS.

If anyone understands, please let me know.

macos swift2

2022-09-30 21:11

1 Answers

Since CoreData is not a generic ORM library, switching backend DBs is basically not possible.
CoreData has four backend options: XML, binary format, SQLite and in-memory (XML is not available on iOS).

https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CoreData/PersistentStoreFeatures.html


2022-09-30 21:11

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.