接口 HistoryConfigInfoMapper
- 所有超级接口:
Mapper
The history config info mapper.
- 作者:
- hyx
-
方法概要
修饰符和类型方法说明default MapperResultdetailPreviousConfigHistory(MapperContext context) Get previous config detail.default MapperResultGet the number of configurations before the specified time.default MapperResultfindConfigHistoryFetchRows(MapperContext context) List configuration history change record.default MapperResultfindDeletedConfig(MapperContext context) Query deleted config.default MapperResultgetNextHistoryInfo(MapperContext context) Get updated history config detail of the history config.default String获取返回表名.page search List configuration history.removeConfigHistory(MapperContext context) Delete data before startTime.从接口继承的方法 com.alibaba.nacos.plugin.datasource.mapper.Mapper
count, delete, getDataSource, getFunction, getPrimaryKeyGeneratedKeys, insert, select, update
-
方法详细资料
-
removeConfigHistory
Delete data before startTime. The default sql: DELETE FROM his_config_info WHERE gmt_modified < ? LIMIT ?- 参数:
context- sql paramMap- 返回:
- The sql of deleting data before startTime.
-
findConfigHistoryCountByTime
Get the number of configurations before the specified time. The default sql: SELECT count(*) FROM his_config_info WHERE gmt_modified < ?- 参数:
context- sql paramMap- 返回:
- The sql of getting the number of configurations before the specified time.
-
findDeletedConfig
Query deleted config. The default sql: SELECT DISTINCT data_id, group_id, tenant_id FROM his_config_info WHERE op_type = 'D' AND gmt_modified >=? AND gmt_modified <= ?- 参数:
context- sql paramMap- 返回:
- The sql of querying deleted config.
-
findConfigHistoryFetchRows
List configuration history change record. The default sql: SELECT nid,data_id,group_id,tenant_id,app_name,src_ip,src_user,op_type,gmt_create,gmt_modified FROM his_config_info WHERE data_id = ? AND group_id = ? AND tenant_id = ? ORDER BY nid DESC- 参数:
context- sql paramMap- 返回:
- The sql of listing configuration history change record.
-
pageFindConfigHistoryFetchRows
page search List configuration history. SELECT nid,data_id,group_id,tenant_id,app_name,src_ip,src_user,op_type,gmt_create,gmt_modified FROM his_config_info WHERE data_id = ? AND group_id = ? AND tenant_id = ? ORDER BY nid DESC limit ?,?- 参数:
context- pageNo- 返回:
-
detailPreviousConfigHistory
Get previous config detail. The default sql: SELECT nid,data_id,group_id,tenant_id,app_name,content,md5,src_user,src_ip,op_type,gmt_create,gmt_modified FROM his_config_info WHERE nid = (SELECT max(nid) FROM his_config_info WHERE id = ?)- 参数:
context- sql paramMap- 返回:
- The sql of getting previous config detail.
-
getTableName
获取返回表名.- 指定者:
getTableName在接口中Mapper- 返回:
- 表名
-
getNextHistoryInfo
Get updated history config detail of the history config. The default sql: SELECT nid,data_id,group_id,tenant_id,app_name,content,md5,src_user,src_ip,op_type,gmt_create,gmt_modified FROM his_config_info WHERE data_id = ? AND group_id = ? AND tenant_id = ? AND publish_type = ? AND gray_name = ? AND nid > ? ORDER BY nid LIMIT 1- 参数:
context- sql paramMap- 返回:
- The sql of getting the next history config detail of the history config.
-