default: {
checkIfTopicInGroupExists(
topicGroupId: number,
topicId: number,
): Promise<RowDataPacket[]>;
insertTopicInGroup(
topicGroupId: number,
topicId: number,
): Promise<QueryResult>;
} = ...
Type declaration
checkIfTopicInGroupExists:function
checkIfTopicInGroupExists( topicGroupId: number, topicId: number,): Promise<RowDataPacket[]> Parameters
- topicGroupId: number
- topicId: number
Returns Promise<RowDataPacket[]>
A promise that resolves to the existing topic in the group, if any.
insertTopicInGroup:function
insertTopicInGroup(topicGroupId: number, topicId: number): Promise<QueryResult> Parameters
- topicGroupId: number
- topicId: number
Returns Promise<QueryResult>
A promise that resolves when the insertion is complete.
Model for managing topics in groups.