Database mapping file conversion method and system based on large model

By automatically converting the SQL statements of the MyBatis framework project into the target database syntax based on a large model method, the problems of low efficiency and poor accuracy of manual conversion are solved, and efficient and accurate database migration and adaptation are achieved.

CN120631967AActive Publication Date: 2025-09-12NEW SINGULARITY INT TECHN DEV
11 Cites 1 Cited by

Patent Information

Application Number
CN202511133790.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-14
Publication Date
2025-09-12
Estimated Expiration
2045-08-14

AI Technical Summary

Technical Problem

During the database migration process, manually converting SQL statements in the MyBatis framework project to different database syntaxes is labor-intensive, inefficient, and prone to errors, affecting project progress and the stability of the application system.

Method used

Using a large model-based approach, we recursively traverse the files under the project path, use the natural language processing capabilities of the large model to construct target prompt words, convert SQL statements into target database syntax, and generate an adapted database mapping file.

Benefits of technology

It improves the efficiency and accuracy of database adaptation and conversion, ensures that the project can interact normally after migration, reduces manual intervention, and improves the stability and adaptation efficiency of the project.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention relates to the technical field of databases, in particular to a database mapping file conversion method and system based on a large model, and the method comprises the steps: recursively traversing files under a target project path to obtain a file path list; according to a path sequence in the file path list, circularly executing the following steps S1-S5; s1, reading to-be-converted file content of the Nth to-be-converted file; s2, constructing a target cue word based on the read to-be-converted file content, and inputting the target cue word and the to-be-converted file content into the large model; the target cue word is used for guiding the large model to convert an SQL statement in the to-be-converted file content into a target statement conforming to the target grammar; s3, analyzing an output result of the large model to obtain to-be-written file content in a preset format; s4, generating an output path; and S5, writing the to-be-written file content into the target file under the output path. In this way, the efficiency and accuracy of database adaptation conversion can be improved.
Need to check novelty before this filing date? Find Prior Art