领域 Swift 和 Swift 服务器

Realm Swift and Swift server

是否可以在服务器 运行 Swift(例如 Perfect、Vapor、Kitura 等)上使用 RealmSwift 并用它来存储数据?

(我正在考虑尝试将其作为另一种解决方案的替代方案,例如 node.js+express+mongoDB。)

Realm Swift 仅适用于 Darwin 平台。最终 Linux 支持是可能的,但需要对 Swift 和 Realm 进行相当大的更改。正在 https://github.com/realm/realm-cocoa/issues/3263

中对此进行跟踪