# madou-database-annotation **Repository Path**: miukoo/madou-database-annotation ## Basic Information - **Project Name**: madou-database-annotation - **Description**: 用于在Idea中标注快速打开mysql、redis等客户端的注解类库 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2022-07-30 - **Last Updated**: 2026-06-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 项目生态圈(Project Ecosystem) - Official : http://gjsm.cn - Email : miukoo@126.com - V1.0生态圈说明(Introduce) ![image-20220801125339055](README.assets/ecosystem.png) # 项目作用(Project Function) - 在idea中通过注解快速打开Mysql查询、数据、索引等功能 -Quickly open MySQL query, data, index and other functions through annotations in idea - 在idea中通过注解快速打开Redis客户端、数据浏览等功能 -Quickly open redis client, data browsing and other functions through annotations in idea # Mysql功能注解 (Annotation) - @MMysqlMockQuery 用于标注快速打开查询终端的注解(Annotation for quick opening query terminal) - 参数:打开查询终端的默认查询语句(Parameter: open the default query statement of the query terminal) - PS:注解可用于方法、字段、方法上(Annotations can be used on methods, fields, and methods) ```java @MMysqlMockQuery("select * from table") public class Test{ } ``` ![image-20220801125339055](README.assets/MMysqlMockQuery.gif) - @MMysqlMockMenu 用于标注快速对应数据库表的所有功能的菜单(Menu for marking all functions of the quick mapping database table) - 参数:关联的表名称(Parameter: associated table name) - PS:注解可用于方法、字段、方法上(Annotations can be used on methods, fields, and methods) ```java @MMysqlMockMenu("ap_article") public class Test{ } ``` ![image-20220801125339055](README.assets/MMysqlMockMenu.gif) # Redis功能注解(Annotation) - @MRedisMockClient 用于标注快速打开数据库客户端(Used to label quick open database client) - 参数:关联的数据库(Parameters: associated database) - PS:注解可用于方法、字段、方法上(Annotations can be used on methods, fields, and methods) ```java @MRedisMockClient("0") public class Test{ } ``` ![image-20220801125339055](README.assets/MRedisMockClient.gif) - @MRedisMockMenu 用于标注快速打开数据库的所有功能菜单(It is used to mark all function menus of quick opening database) - 参数:关联的数据库(Parameters: associated database) - PS:注解可用于方法、字段、方法上(Annotations can be used on methods, fields, and methods) ```java @MRedisMockMenu("0") public class Test{ } ``` ![image-20220801125339055](README.assets/MRedisMockMenu.gif)