Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for generating programming language classes based on sql creation statements

A programming language and statement technology, applied in the field of generating programming languages ​​based on SQL, can solve the problems of laborious, cumbersome and slow, slow writing process, etc., and achieve the effect of reducing repetitive operations and simplifying work.

Pending Publication Date: 2021-03-16
贵阳语玩科技有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Now, manual writing is mostly used to define related model classes according to requirements, but in daily development, manual definition is required every time, which is not only laborious, but also very cumbersome and slow; especially, when a complex class appears, There are often more than a dozen attributes, resulting in a very slow writing process; in complex large-scale projects, these problems are even more prominent

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
  • Method for generating programming language classes based on sql creation statements
  • Method for generating programming language classes based on sql creation statements
  • Method for generating programming language classes based on sql creation statements

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0020] The invention discloses a method for generating programming language classes based on sql creation statements, such as figure 1 shown, including the following steps:

[0021] S1, put the sql creation statement into the text file, and pass in the programming language parameters to be generated;

[0022] S2, using multiple experiments to obtain sql parsing rules;

[0023] S3. Analyze the variable type by matching the sql parsing rules;

[0024] S4. Acquiring real data types used by different programming languages;

[0025] S5. After formatting and splicing, write the spliced ​​content into a text file to obtain a required model file.

[0026] Regarding the method for generating programming language classes based on sql creation statements disclosed in the present invention, the model classes required by different programming ...

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 invention discloses a method for generating programming language classes based on sql creation statements, which comprises the following steps: S1, putting the sql creation statements into a textfile, and introducing programming language parameters required to be generated; s2, obtaining an sql analysis rule by utilizing multiple experiments; s3, analyzing a variable type through sql analysisrule matching; s4, acquiring a required real data type; and S5, formatting and splicing the variable name and the converted data type, and writing the spliced content into a text file to obtain a required model class file. According to the invention, the model classes required by different programming languages are quickly generated according to the introduced sql creation statements, the methodis very efficient and convenient, manual writing work is replaced, many repeated operations can be reduced, and the work in program development is simplified.

Description

technical field [0001] The invention relates to a method, in particular to a method for generating programming language classes based on SQL creation statements. Background technique [0002] At present, in program development, there are many functional modules, and many model classes need to be defined and written. A class contains many attributes, which makes the workload of writing very heavy. Now, manual writing is mostly used to define related model classes according to requirements, but in daily development, manual definition is required every time, which is not only laborious, but also very cumbersome and slow; especially, when a complex class appears, There are often more than a dozen attributes, resulting in a very slow writing process; in complex large-scale projects, these problems are even more prominent. Contents of the invention [0003] In order to solve the shortcomings of the above-mentioned technologies, the present invention provides a method for genera...

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 Applications(China)
IPC IPC(8): G06F8/30G06F16/242G06F16/25
CPCG06F8/31G06F16/2433G06F16/252
Inventor 孙保权王金刚段凌云王振兴吴奇陈正超
Owner 贵阳语玩科技有限公司