IFluidDataStoreContext Interface
Represents the context for the data store. It is used by the data store runtime to get information and call functionality to the container.
To use, import via @fluidframework/runtime-definitions/legacy
.
For more information about our API support guarantees, see here.
Signature
export interface IFluidDataStoreContext extends IFluidParentContext
Extends: IFluidParentContext
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
baseSnapshot | Alpha |
readonly |
ISnapshotTree | undefined | |
createProps | Deprecated , Alpha |
optional , readonly |
any | |
id | Alpha |
readonly |
string | |
isLocalDataStore | Alpha |
readonly |
boolean | A data store created by a client, is a local data store for that client. Also, when a detached container loads from a snapshot, all the data stores are treated as local data stores because at that stage the container still doesn't exists in storage and so the data store couldn't have been created by any other client. Value of this never changes even after the data store is attached. As implementer of data store runtime, you can use this property to check that this data store belongs to this client and hence implement any scenario based on that. |
packagePath | Alpha |
readonly |
readonly string[] | The package path of the data store as per the package factory. |
Methods
Method | Alerts | Return Type | Description |
---|---|---|---|
getBaseGCDetails() | Deprecated , Alpha |
Promise<IGarbageCollectionDetailsBase> |
Property Details
baseSnapshot
To use, import via @fluidframework/runtime-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly baseSnapshot: ISnapshotTree | undefined;
Type: ISnapshotTree | undefined
createProps
0.16 Issue #1635, #3631
To use, import via @fluidframework/runtime-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly createProps?: any;
Type: any
id
To use, import via @fluidframework/runtime-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly id: string;
Type: string
isLocalDataStore
A data store created by a client, is a local data store for that client. Also, when a detached container loads from a snapshot, all the data stores are treated as local data stores because at that stage the container still doesn't exists in storage and so the data store couldn't have been created by any other client. Value of this never changes even after the data store is attached. As implementer of data store runtime, you can use this property to check that this data store belongs to this client and hence implement any scenario based on that.
To use, import via @fluidframework/runtime-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly isLocalDataStore: boolean;
Type: boolean
packagePath
The package path of the data store as per the package factory.
To use, import via @fluidframework/runtime-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly packagePath: readonly string[];
Type: readonly string[]
Method Details
getBaseGCDetails
The functionality to get base GC details has been moved to summarizer node.
Returns the GC details in the initial summary of this data store. This is used to initialize the data store and its children with the GC details from the previous summary.
To use, import via @fluidframework/runtime-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
getBaseGCDetails(): Promise<IGarbageCollectionDetailsBase>;
Returns
Return type: Promise<IGarbageCollectionDetailsBase>