Storage process conversion method and device

A stored procedure and conversion method technology, which is applied in the field of stored procedure conversion method and device, can solve problems such as not supporting new syntax, long development time, unrecognizable functions, etc., and achieve the effect of improving user experience

Active Publication Date: 2021-03-09
XIAOMI INC
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] 1. tsql2mysql has been developed for a long time, and can only deal with specific writing and standard style SQLServer stored procedure codes. However, with the continuous release of new versions of SQLServer and MySQL, tsql2mysql has been unable to keep up with the development of technology, and has been unable to recognize many new syntaxes. And conversion, does not support the new syntax of some stored procedures, and cannot recognize some newly added functions, especially for some functions that can only replace the name, but cannot really convert the parameters. In fact, encountering such functions will cause Converted code doesn't work properly
[0007] 2. There is no syntax compatibility conversion for SQL, such as rowcount and limit when turning pages;
[0008] 3. Due to the loose syntax requirements of SQL Server stored procedures, developers can use many non-standard styles. When encountering such random code writing, the conversion work will not be completed normally.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Storage process conversion method and device
  • Storage process conversion method and device
  • Storage process conversion method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

[0058] At present, when converting a stored procedure in one type of database into a stored procedure in another type of database, technicians need to study the stored procedure syntax of the two types of databases in depth before completing the manual conversion; but when When the code volume of database stored procedures is large, even if the technicians are very professional, their workload w...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present disclosure relates to a conversion method and device for stored procedures. The method includes: obtaining the name of the first-type stored procedure from the first-type database; according to the name of the first-type stored procedure, reading the corresponding first-type stored procedure in the first-type database a code and a first input parameter; converting the first input parameter and the first code into a second input parameter and a second code compatible with the second type of database; according to the second input parameter and the The second code generates a stored procedure of a second type. The technical solution can automatically and quickly convert the first-type stored procedure in the first-type database into the second-type stored procedure without human participation, so as to improve user and developer experience.

Description

technical field [0001] The disclosure relates to the technical field of databases, in particular to a method and device for converting stored procedures. Background technique [0002] At present, the LNMP architecture has become the most mainstream development model in the Internet industry. When choosing a database for most projects, they usually choose the MySQL open source database, because it is free to use and the source code is open. Users can even directly modify and submit relevant codes. At the same time, there is no technical control by a certain manufacturer, so it will greatly facilitate developers. [0003] However, some projects still use other commercial closed-source databases due to technology selection at the start of the project or other reasons. However, when there are performance problems or bugs in the closed-source database, you can only find a solution from the manufacturer or purchase a newer version of the database software. Therefore, in terms of ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/25
CPCG06F16/258
Inventor 窦锦帅谭国斌沈建荣
Owner XIAOMI INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products