Skip to content

Commit

Permalink
Expose store variables
Browse files Browse the repository at this point in the history
- rootObjectStore
- parentObjectStore
  • Loading branch information
helje5 committed Nov 11, 2024
1 parent 0341be1 commit 4eae62c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Sources/ZeeQL/Control/ObjectTrackingContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ZeeQL
//
// Created by Helge Hess on 03/03/2017.
// Copyright © 2017-2019 ZeeZide GmbH. All rights reserved.
// Copyright © 2017-2024 ZeeZide GmbH. All rights reserved.
//

/**
Expand All @@ -26,13 +26,14 @@ open class ObjectTrackingContext : ObjectStore {
var gidToObject = [ GlobalID : AnyObject ]()

// the store from which we fetch objects, usually a DatabaseContext
let parentObjectStore : ObjectStore
public let parentObjectStore : ObjectStore

init(parent: ObjectStore) {
parentObjectStore = parent
}

var rootObjectStore : ObjectStore {
@inlinable
public var rootObjectStore : ObjectStore {
if let tc = parentObjectStore as? ObjectTrackingContext {
return tc.rootObjectStore
}
Expand Down

0 comments on commit 4eae62c

Please sign in to comment.