default: {
checkIfCourseTopicRelationExists(
courseId: number,
topicId: number,
): Promise<RowDataPacket[]>;
insertCourseTopic(
courseId: number,
topicId: number,
): Promise<[QueryResult, FieldPacket[]]>;
} = ...
Type declaration
checkIfCourseTopicRelationExists:function
checkIfCourseTopicRelationExists( courseId: number, topicId: number,): Promise<RowDataPacket[]> Parameters
- courseId: number
- topicId: number
Returns Promise<RowDataPacket[]>
A promise that resolves to the existing course-topic relation, if found.
insertCourseTopic:function
insertCourseTopic( courseId: number, topicId: number,): Promise<[QueryResult, FieldPacket[]]> Parameters
- courseId: number
- topicId: number
Returns Promise<[QueryResult, FieldPacket[]]>
A promise that resolves to the result of the insertion.
Checks if a course-topic relation exists.