RLMRealm

extension RLMRealm

////////////////////////////////////////////////// ////////////////////////

  • 返回给定本地 URL 的 Realm 的模式版本。

    + [RLMRealm schemaVersionAtURL:encryptionKey:error:]

    声明

    迅速

    @nonobjc
    public class func schemaVersion(at url: URL, usingEncryptionKey key: Data? = nil) throws -> UInt64
  • 返回与首次创建RLMThreadSafeReference时引用的对象相同的对象,但已解析为该线程的当前 Realm。 如果在创建引用后删除了该对象,则返回nil

    请参阅 - [RLMRealm resolveThreadSafeReference:]

    声明

    迅速

    @nonobjc
    public func resolve<Confined>(reference: RLMThreadSafeReference<Confined>) -> Confined? where Confined : RLMThreadConfined