数据库处理方法、装置、电子设备及计算机可读介质

By acquiring and comparing baseline and target directory data, database change statements are generated, solving the problems of low efficiency and low accuracy in large-scale database structure change delivery projects, and achieving efficient database structure changes.

CN118796832BActive Publication Date: 2026-07-17JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
Filing Date
2024-07-01
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

In large-scale database structure change delivery projects, database processing is inefficient and inaccurate, especially when there are hundreds or even thousands of databases, which existing technologies struggle to address effectively.

Method used

By responding to database processing requests, the system obtains baseline directory data and target directory data, performs set calculations to obtain difference sets and intersection sets, compares the syntax trees of databases with the same name at the table level, generates database change statements, and finally changes the structure of the target directory data to the structure of the baseline directory data.

Benefits of technology

It improves the efficiency and accuracy of database processing, enabling rapid and batch comparison and modification of database differences between two environments, thus enhancing processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796832B_ABST
    Figure CN118796832B_ABST
Patent Text Reader

Abstract

本申请公开了数据库处理方法、装置、电子设备及计算机可读介质,涉及计算机技术领域,该方法包括:响应于数据库处理请求,获取基准目录数据和变更目标目录数据;对相应的文件列表进行集合计算,得到目标差异集合和目标交集集合;对目标交集集合中的同名数据库对应的语法树进行表级别对比,进而确定目标拷贝语法树和目标删除表语句,基于同库同表进行目标元素对比,根据集合类型确定目标语法树节点并生成更改列语法树节点;基于目标拷贝语法树、目标删除表语句、目标语法树节点和更改列语法树节点,生成数据库变更语句,以将变更目标目录数据对应的数据库结构变更为基准目录数据对应的数据库结构。从而提高数据库处理的效率和准确率。
Need to check novelty before this filing date? Find Prior Art