Construct a store suitable for user bridging information.
The connected NEDB database instance
Readonly
dbGet Matrix users by some data about them, previously stored via the set method on the Matrix user.
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" }
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
})
});
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.
The user localpart
Resolves to a MatrixUser or null.
Get remote users by some data about them, previously stored via the set method on the Remote user.
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" }
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
})
});
Get a matrix user by their user ID.
The 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.
Retrieve a list of corresponding matrix users for the given remote ID.
The Remote ID
Resolves to a list of Matrix users.
Get a remote user by their remote ID.
The 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.
Retrieve a list of corresponding remote users for the given matrix user ID.
The Matrix user ID
Resolves to a list of Remote users.
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 and a remote user.
The matrix user
The remote user
Resolves to the number of entries removed.
Generated using TypeDoc
Base class for bridge stores.