Data table processing method, device, storage medium, and program product

By generating application-level API-data tables and SDK method-data table mapping libraries during compilation, the problem of low accuracy in evaluating data table structure changes in existing technologies is solved, enabling accurate evaluation and automated control of the impact scope of API interfaces.

CN123178398APending Publication Date: 2026-11-27CHINA MERCHANTS BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611337029.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies have low accuracy in assessing the impact of changes to data table structures on API interfaces, especially as microservices scale up. Manual assessment is time-consuming and prone to omissions, and runtime monitoring is lagging, resulting in incomplete assessments.

Method used

By performing static code analysis on the source code of the target application and its dependent SDKs during compilation, application-level API-data table mapping relationships and SDK method-data table mapping relationships are generated. These two relationships are then combined into a mapping relationship library. In response to data table structure change requests, reverse retrieval is performed, and release permission control is automatically executed.

Benefits of technology

It enables accurate assessment of the impact of API interfaces, covering data table dependencies under low-frequency and abnormal branches, improving the accuracy and comprehensiveness of change scope assessment, and reducing the risk of assessment omissions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178398A_ABST
    Figure CN123178398A_ABST
Patent Text Reader

Abstract

The application discloses a data table processing method and device, a storage medium and a program product, relates to the technical field of computers, and comprises the following steps: establishing a first mapping relationship based on the source code of a target application and the persistence layer configuration file of the target application, and extracting the calling relationship between an API entry method and an SDK method of an SDK relied on by the target application; establishing a second mapping relationship based on the source code of the SDK and the persistence layer configuration file of the SDK; splicing the first mapping relationship and the second mapping relationship based on the calling relationship between the API entry method and the SDK method, to obtain a mapping relationship library; in response to a data table structure change request, searching based on the mapping relationship library to obtain a target API corresponding to the data table structure change request, and performing release authority control based on the target API. The application improves the accuracy of API interface influence range evaluation before data table structure change release.
Need to check novelty before this filing date? Find Prior Art

Claims

1. A data table processing method, characterized in that, The method includes: Based on the source code of the target application and the persistent layer configuration file of the target application, a first mapping relationship is established, and the call relationship between the API entry method and the SDK method of the SDK that the target application depends on is extracted. The first mapping relationship represents the mapping relationship between the API entry method and the application data table of the target application. Based on the source code of the SDK and the persistence layer configuration file of the SDK, a second mapping relationship is established, wherein the second mapping relationship represents the mapping relationship between the SDK methods and the SDK data tables of the SDK; Based on the calling relationship between the API entry method and the SDK method, the first mapping relationship and the second mapping relationship are concatenated to obtain a mapping relationship library, wherein the mapping relationship library represents the mapping relationship between the API entry method and the application data table, and the mapping relationship between the API entry method and the SDK data table via the SDK method; In response to a data table structure change request, the target API corresponding to the data table structure change request is obtained based on the mapping relationship database, and release permission control is performed based on the target API.

2. The method as described in claim 1, characterized in that, The step of establishing the first mapping relationship based on the source code of the target application and the persistent layer configuration file of the target application includes: An abstract syntax tree of the target application's source code is constructed based on the source code parser; Based on the abstract syntax tree of the target application's source code, the annotation information and method call relationships of the target application are extracted; Based on the annotation information of the target application, identify the API entry method marked by the annotation used to identify the API entry point; Based on the method call relationship of the target application, starting from the API entry method, the internal call chain of the target application is traced to the data operation method of the target application to generate the internal call chain of the target application; Based on the persistent layer configuration file of the target application, a binding relationship is established between the persistent layer configuration file of the target application and the data operation interface of the target application. The database operation statements in the persistent layer configuration file of the target application are parsed, and the correspondence between the data operation methods of the target application and the application data table is extracted. The first mapping relationship is generated based on the internal call chain of the target application and the correspondence between the data operation methods of the target application and the application data table.

3. The method as described in claim 2, characterized in that, The step of tracing the data operation methods of the target application from the API entry method to generate the internal call chain of the target application includes: Starting with the API entry method, the downstream methods called by the API entry method are parsed layer by layer until the data operation methods of the target application are traced, thus generating the internal call chain of the target application.

4. The method as described in claim 1, characterized in that, The step of establishing a second mapping relationship based on the SDK source code and the SDK persistence layer configuration file includes: An abstract syntax tree of the SDK's source code is constructed based on the source code parser; Extract the method call relationships of the SDK based on the abstract syntax tree of the SDK's source code; Based on the method call relationships of the SDK, the source code of the SDK is recursively traced to generate the internal call chain of the SDK; Based on the persistence layer configuration file of the SDK, establish the binding relationship between the persistence layer configuration file of the SDK and the data operation interface of the SDK, parse the database operation statements in the persistence layer configuration file of the SDK, and extract the correspondence between the data operation methods of the SDK and the data tables of the SDK. The second mapping relationship is generated based on the internal call chain of the SDK and the correspondence between the data operation methods of the SDK and the data table of the SDK.

5. The method as described in claim 1, characterized in that, The step of retrieving the target API corresponding to the data table structure change request based on the mapping relationship database includes: Obtain the table identifier of the target data table corresponding to the data table structure change request; Using the table identifier as an index, all API entry methods associated with the target data table are searched in reverse in the mapping relationship library and selected as the target API.

6. The method as described in claim 1, characterized in that, The steps for performing release permission control based on the target API include: Risk levels are determined based on application level tags and API coreness tags, wherein the application level tags characterize the importance of the target application, and the API coreness tags characterize the importance of the APIs in the target application; Based on the risk level and the target API, a risk alert message is generated and output to the front-end page.

7. The method as described in claim 6, characterized in that, Following the step of determining the risk level based on application level tags and API core level tags, the following steps are included: For data table structure change requests that are determined to be high-risk, an approval work order is generated and transferred to the corresponding approval node; Before the approval node approves the request, block the data definition language operation corresponding to the data table structure change request.

8. A data table processing device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the data table processing method as described in any one of claims 1 to 7.

9. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the data table processing method as described in any one of claims 1 to 7.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the data table processing method as described in any one of claims 1 to 7.