The name of the database.
The hostname of the DBMS.
Log config for underlying database driver.
Prisma is used as the database driver. The log config is defined in https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#log. It will be passed to the underlying prisma client.
For example, { log: ['query', 'info', 'warn', 'error'] }
will output query, info, warn and error logs to stdout.
The user password of the database.
The port of the DBMS.
The database type.
Currently supported database are: Postgres, MySQL, SQL Server.
The username of the database.
The type of collaboration member id.
All collaboration-related operations are wrapped as Message and sent to MessageQueue, and can be consumed by subscribing to MessageQueue.
Metadata of the message.
Payload of the message.
Type of the message.
A message handler is called when any collaboration operation is performed.
You can implement your own operation log or do anything you want based on the message received.
The message will be passed to the handler.
Any non-false value that can be serialized by JSON.stringify() will be stored by the default logging implementation.
The Metadata of Message which contains some common properties.
The id of collaboration associated with this message.
The id of the server from which this message originated.
The id of user associated with this message.
MsgType defines message type for the Message
The following message types are supported:
COLLAB_BEGIN
: Collaboration has begun.COLLAB_END
: Collaboration has ended.COLLAB_CREATED
: Collaboration has been created.COLLAB_UPDATED
: Collaboration has been updated.COLLAB_REMOVED
: Collaboration has been removed.COLLAB_ANNOT_ADDED
: A annotation has been added.COLLAB_ANNOT_UPDATED
: A annotation has been updated.COLLAB_ANNOT_REMOVED
: A annotation has been removed.MEMBER_ONLINE
: A collaboration member is online.MEMBER_OFFLINE
: A collaboration member is offline.MEMBER_ADDED
: A collaboration member has been added.MEMBER_UPDATED
: A collaboration member has been updated.MEMBER_REMOVED
: A collaboration member has been removed.Type of user id.
The user information retrieved from the UserService.
Any other user related properties you may like to include, like Email, Phone, Address, etc.
Identifier of user. This will be used to identify a collaboration member.
Name of user. This will be used as collaboration member name.
Generated using TypeDoc
This DatabaseConfig is used by the underlying database driver to create a database connection. Please make sure that the specified database is available for use