Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix default sql in the comment to be consistent with the implementation #12324

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ default MapperResult findConfigInfoByAppCountRows(MapperContext context) {

/**
* Query configuration information based on group. <br/>The default sql: SELECT
* id,data_id,group_id,tenant_id,app_name,content FROM config_info WHERE tenant_id LIKE ? AND app_name=?
* id,data_id,group_id,tenant_id,app_name,content FROM config_info WHERE tenant_id LIKE ? AND app_name=? LIMIT startRow, pageSize
*
* @param context The context of startRow, pageSize
* @return The sql of querying configration information based on group.
Expand Down Expand Up @@ -114,7 +114,7 @@ default MapperResult configInfoLikeTenantCount(MapperContext context) {
/**
* Query all configuration information by page. The default sql: SELECT data_id,group_id,app_name FROM ( SELECT id
* FROM config_info WHERE tenant_id LIKE ? ORDER BY id LIMIT startRow, pageSize ) g, config_info t WHERE g.id = t.id
* "
*
*
* @param context The context of startRow, pageSize
* @return The sql of querying all configuration information.
Expand All @@ -131,18 +131,18 @@ default MapperResult configInfoLikeTenantCount(MapperContext context) {
MapperResult findAllConfigInfoBaseFetchRows(MapperContext context);

/**
* Query all config info. The default sql: SELECT
* id,data_id,group_id,tenant_id,app_name,content,md5,gmt_modified,type,encrypted_data_key FROM config_info WHERE id
* > ? ORDER BY id ASC LIMIT startRow,pageSize
* Query all config info. The default sql: "SELECT
* id,data_id,group_id,tenant_id,app_name,"+ (needContent ? "content," : "") + "md5,gmt_modified,type,encrypted_data_key FROM config_info WHERE id
* > ? ORDER BY id ASC LIMIT startRow,pageSize"
*
* @param context The context of startRow, pageSize
* @return The sql of querying all config info.
*/
MapperResult findAllConfigInfoFragment(MapperContext context);

/**
* Query change config. <br/>The default sql: SELECT data_id, group_id, tenant_id, app_name, content,
* gmt_modified,encrypted_data_key FROM config_info WHERE gmt_modified >=? AND gmt_modified <= ?
* Query change config. <br/>The default sql: SELECT id, data_id, group_id, tenant_id, app_name, md5,
* gmt_modified,encrypted_data_key FROM config_info WHERE gmt_modified >=? AND id > ? ORDER BY id LIMIT pageSize
*
* @param context sql paramMap
* @return The sql of querying change config.
Expand Down Expand Up @@ -207,7 +207,7 @@ default MapperResult findChangeConfigCountRows(MapperContext context) {

/**
* According to the time period and configuration conditions to query the eligible configuration. The default sql:
* SELECT id,data_id,group_id,tenant_id,app_name,content,type,md5,gmt_modified FROM config_info WHERE ...
* SELECT id,data_id,group_id,tenant_id,app_name,type,md5,gmt_modified FROM config_info WHERE ...
*
* @param context The map of params, the key is the parameter name(dataId, groupId, tenantId, appName, startTime,
* endTime, content, startTime, endTime), the value is the key's value.
Expand Down Expand Up @@ -365,7 +365,7 @@ default MapperResult findConfigInfo4PageCountRows(MapperContext context) {

/**
* Query configuration information based on group. The default sql: SELECT id,data_id,group_id,content FROM
* config_info WHERE group_id=? AND tenant_id=?
* config_info WHERE group_id=? AND tenant_id=? LIMIT startRow, pageSize
*
* @param context The context of startRow, pageSize
* @return Query configuration information based on group.
Expand Down
Loading