Construct a store suitable for user bridging information.
The connected NEDB database instance
Readonly
dbConvenience method to convert a document to something.
A transformFn
function to pass to the standard
select/delete/upsert/etc methods.
The function which will be called with a single document object. Guaranteed not to be null.
Get Matrix users by some data about them, previously stored via the set method on the Matrix user.
Resolves to a possibly empty list of MatrixUsers. Rejects with an error if there was a problem querying the store.
If dataQuery isn't an object.
matrixUser.set({
toplevel: "foo",
nested: {
bar: {
baz: 43
}
}
});
store.setMatrixUser(matrixUser).then(function() {
store.getByMatrixData({
"toplevel": "foo",
"nested.bar.baz": 43
})
});
The keys and matching values the remote users share.
This should use dot notation for nested types. For example:
{ "topLevel.midLevel.leaf": 42, "otherTopLevel": "foo" }
Retrieve a MatrixUser based on their user ID localpart. If there is more than one match (e.g. same localpart, different domains) then this will return an arbitrary matching user.
Resolves to a MatrixUser or null.
The user localpart
Get remote users by some data about them, previously stored via the set method on the Remote user.
Resolves to a possibly empty list of RemoteUsers. Rejects with an error if there was a problem querying the store.
If dataQuery isn't an object.
remoteUser.set({
toplevel: "foo",
nested: {
bar: {
baz: 43
}
}
});
store.setRemoteUser(remoteUser).then(function() {
store.getByRemoteData({
"toplevel": "foo",
"nested.bar.baz": 43
})
});
The keys and matching values the remote users share.
This should use dot notation for nested types. For example:
{ "topLevel.midLevel.leaf": 42, "otherTopLevel": "foo" }
Get a matrix user by their user ID.
Resolves to the user or null if they do not exist. Rejects with an error if there was a problem querying the store.
The user_id
Retrieve a list of corresponding matrix users for the given remote ID.
Resolves to a list of Matrix users.
The Remote ID
Get a remote user by their remote ID.
Resolves to the user or null if they do not exist. Rejects with an error if there was a problem querying the store.
The remote ID
Retrieve a list of corresponding remote users for the given matrix user ID.
Resolves to a list of Remote users.
The Matrix user ID
Create a link between a matrix and remote user. If either user does not exist, they will be inserted prior to linking. This is done to ensure foreign key constraints are satisfied (so you cannot have a mapping to a user ID which does not exist).
The matrix user
The remote user
Store a Matrix user. If they already exist, they will be updated. Equivalence is determined by their user ID.
The matrix user
Store a Remote user. If they already exist, they will be updated. Equivalence is determined by the Remote ID.
The remote user
Delete a link between a matrix user ID and a remote user ID.
Resolves to the number of entries removed.
The matrix user ID
The remote user ID
Delete a link between a matrix user and a remote user.
Resolves to the number of entries removed.
The matrix user
The remote user
Generated using TypeDoc
Base class for bridge stores.