CN117453229A - Output code analysis method for automatic code generation database - Google Patents
Output code analysis method for automatic code generation database Download PDFInfo
- Publication number
- CN117453229A CN117453229A CN202311805311.0A CN202311805311A CN117453229A CN 117453229 A CN117453229 A CN 117453229A CN 202311805311 A CN202311805311 A CN 202311805311A CN 117453229 A CN117453229 A CN 117453229A
- Authority
- CN
- China
- Prior art keywords
- database
- code
- automatic
- output
- periodic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000004458 analytical method Methods 0.000 title claims abstract description 21
- 238000012545 processing Methods 0.000 claims abstract description 34
- 125000004122 cyclic group Chemical group 0.000 claims abstract description 9
- 230000000737 periodic effect Effects 0.000 claims description 52
- 238000000034 method Methods 0.000 claims description 29
- 238000012795 verification Methods 0.000 claims description 27
- 238000013507 mapping Methods 0.000 claims description 15
- 230000008569 process Effects 0.000 claims description 14
- 230000008859 change Effects 0.000 claims description 6
- 230000006870 function Effects 0.000 abstract description 8
- 238000011161 development Methods 0.000 abstract description 5
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000004590 computer program Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000010276 construction Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012958 reprocessing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/31—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to the field of database code analysis, in particular to an output code analysis method for automatically generating a database by codes, which comprises the following steps: s1, acquiring database features of an automatic code generation database; s2, carrying out iterative configuration on an automatic code generation database by utilizing the database characteristics to obtain a loop code database; s3, carrying out structural processing on basic output codes according to the cyclic code database to obtain an output code analysis result, greatly improving development efficiency, ensuring that code generation can automatically generate a large number of repeated codes on the basis of the automatic code output database, reducing manual writing workload of developers, standardizing consistency of output code styles, and quickly tracing and searching problems when spelling errors and grammar errors occur in the writing codes, wherein the final output result contains front-back relevance information, and is beneficial to subsequent developers to understand code intention and functions.
Description
Technical Field
The invention relates to the field of database code analysis, in particular to an output code analysis method for an automatic code generation database.
Background
The application of the existing software system is spread over various industries, aiming at the development process of the software system, the function similarity of a plurality of business systems is higher, the repeated code writing consumes huge man-hours in the development process, each developer has own writing habit in the development process, the code style is different, the probability of generating bug by repeatedly writing the code with higher similarity is higher, the later maintenance is relatively difficult, a database capable of automatically generating codes can be introduced at the beginning of each project construction to meet the basic requirement for improving the code construction efficiency, but the database has single function, the information such as code history and the like cannot be processed, and the accuracy of an automatically output result cannot be ensured.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides an output code analysis method for an automatic code generation database, and the high availability and the comprehensiveness of an automatic code output result are improved through grading establishment of the database and superposition processing of code data.
To achieve the above object, the present invention provides an output code parsing method for an automatic code generation database, comprising:
s1, acquiring database features of an automatic code generation database;
s2, carrying out iterative configuration on an automatic code generation database by utilizing the database characteristics to obtain a loop code database;
and S3, obtaining a basic output code according to the cyclic code database, and carrying out structuring processing to obtain an output code analysis result.
Preferably, the acquiring the database features of the automatic code generation database includes:
s1-1, acquiring the database capacity of an automatic code generation database;
s1-2, judging whether the database capacity is kept fixed, if so, using the database capacity of the automatic code generation database as the internal characteristic of the database, otherwise, using the database capacity change period of the automatic code generation database as the internal characteristic of the database;
s1-3, utilizing the automatic code to generate a data type of a database as an internal secondary characteristic of the database;
s1-4, utilizing the internal features of the database and the internal secondary features of the database as automatic codes to generate database features of the database.
Further, performing iterative configuration on the automatic code generation database by using the database features to obtain a loop code database includes:
s2-1, judging whether the database internal features of the database features are the database capacity, if so, performing iterative configuration by using the automatic code generation database to obtain a fixed code database, and executing S2-3, otherwise, executing S2-2;
s2-2, performing iterative configuration by using the automatic code generation database to obtain a periodic code database, and executing S2-4;
s2-3, performing framework stability verification on the fixed code database by utilizing the database characteristics to obtain a circulating code database;
s2-4, performing sequential logic verification on the periodic code database by utilizing the database characteristics to obtain a circular code database.
Further, performing iterative configuration by using the automatic code generation database to obtain a fixed code database includes:
s2-1-1, utilizing an automatic code to generate a corresponding connection address and a port number of a database to establish external mapping of the database as an external tag of the database;
s2-1-2, utilizing the automatic code to generate a data index of the database to establish sequential association mapping as an internal label of the database;
s2-1-3, generating a database according to the automatic code to obtain a database virtual access request, and using the current moment as an iteration starting moment t;
s2-1-3, judging whether the database virtual access request corresponds to an external tag of the database, if so, executing S2-1-4, otherwise, returning to S2-1-3;
s2-1-4, performing virtual access on the automatic code generation database by utilizing the database virtual access request to obtain a virtual request result of the automatic code generation database, judging whether the virtual request result corresponds to a label in the database, if so, executing S2-1-5, otherwise, returning to S2-1-3;
s2-1-5, outputting an automatic code generation database as a fixed code database, and dividing the fixed code database into iterative access features by utilizing the external and internal labels of the database;
the database virtual access request comprises a connection user name and a connection password corresponding to the automatic code generation database.
Further, performing iterative configuration by using the automatic code generation database to obtain a periodic code database includes:
s2-2-1, acquiring the current moment as a periodic capturing starting moment of an automatic code generation database;
s2-2-2, acquiring a database catalog and a database capacity of an automatic code generation database corresponding to the periodic capture starting moment as a standard starting database catalog and a standard starting database capacity respectively;
s2-2-3, acquiring the database catalog and the database capacity of the automatic code generation database corresponding to the current moment as the periodic comparison database catalog and the periodic comparison database capacity respectively;
s2-2-4, judging whether the periodical comparison database catalog is respectively consistent with the standard initial database catalog, the periodical comparison database capacity is consistent with the standard initial database capacity, if so, returning to S2-2-3, otherwise, using the corresponding moment of the periodical comparison database catalog and the periodical comparison database capacity as the periodical change cut-off moment;
s2-2-5, acquiring a periodic variation period according to the periodic acquisition starting moment and the periodic variation ending moment;
s2-2-6, acquiring an automatic code generation database corresponding to the periodic variation period as a periodic code database;
wherein the current time in S2-2-1 and S2-2-3 is not the same time.
Further, performing architecture stability verification on the fixed code database by using the database features to obtain a loop code database includes:
s2-3-1, acquiring an execution process, a shared memory and a bottom layer storage of a fixed code database;
s2-3-2, judging whether the bottom storage of the fixed code database is consistent with the internal features of the database features, if so, executing S2-3-3, otherwise, returning to S2-1-1;
s2-3-3, judging whether the corresponding streaming data of the shared memory of the fixed code database corresponds to the secondary features in the database, if so, executing S2-3-4, otherwise, returning to S2-1-3;
s2-3-4, judging whether the corresponding streaming data quantity of the execution process of the fixed code database corresponds to the fixed code database, if so, outputting the fixed code database as a circulating code database by the framework stability verification, otherwise, returning to S2-1-4.
Further, performing sequential logic verification on the periodic code database by using the database features to obtain a cyclic code database includes:
s2-4-1, dividing the internal features of the database and the secondary features in the database into a time sequence verification tag and a logic verification tag respectively by utilizing the features of the database;
s2-4-2, acquiring the actual operation data type corresponding to the periodic code database as an actual operation tag of the periodic code database;
s2-4-3, judging whether the operation time sequence of the actually operated tag corresponds to the time sequence verification tag, if so, executing S2-4-4, otherwise, returning to S2-2-2;
s2-4-4, judging whether the range of the logic verification tag is smaller than that of an actual operation tag, if yes, returning to S2-2-4, otherwise, enabling the sequential logic verification to pass, and outputting a periodic code database as a circulating code database.
Further, obtaining a basic output code according to the loop code database, and performing structural processing to obtain an output code analysis result includes:
s3-1, outputting a basic output code by using the cyclic code database;
s3-2, performing structural backtracking processing by using the basic output code to obtain a structural backtracking processing result of the basic output code;
s3-3, obtaining an output code analysis result by utilizing the structural backtracking processing result.
Further, performing structural backtracking processing by using the basic output code to obtain a structural backtracking processing result of the basic output code includes:
s3-2-1, acquiring a database type corresponding to the basic output code;
s3-2-2, judging whether the database type is a fixed code, if so, using a fixed code database corresponding to the basic output code as a fixed base layer framework, and executing S3-2-3, otherwise, using a periodic code database corresponding to the basic output code as a periodic base layer framework, and executing S3-2-4;
s3-2-3, acquiring a correlation code according to a fixed basic framework by utilizing the basic output code to serve as a derivative supplementary feature, and establishing one-way mapping by utilizing the basic output code and the derivative supplementary feature to serve as a structural backtracking processing result;
s3-2-4, acquiring a cycle period moment according to a cycle basic framework by using the basic output code as a derivative supplementary feature, and establishing unidirectional mapping by using the basic output code and the derivative supplementary feature as a structural backtracking processing result;
the base output code corresponding database type is fixed code and cycle code, the association code is code which has association with the base output code, and the cycle period time is the corresponding time of the current base output code in the complete cycle code database.
Further, obtaining an output code analysis result by using the structural backtracking processing result includes:
establishing a preset code catalog by utilizing the basic output codes corresponding to the structural backtracking processing results;
establishing a directory directivity result according to a preset code directory by utilizing the unidirectional mapping of the structural backtracking processing result;
and using the preset code catalogue and the catalogue directivity result as output code analysis results.
Compared with the closest prior art, the invention has the following beneficial effects:
the development efficiency is greatly improved, on the basis of an automatic code output database, the code generation is ensured to automatically generate a large amount of repeated codes, the manual writing workload of developers is reduced, meanwhile, the consistency of the output code style is standardized, when spelling errors and grammar errors occur in the writing codes, the problems can be quickly traced, and the final output result contains front-rear relevance information, so that the intention and the function of the codes can be understood by subsequent developers.
Drawings
Fig. 1 is a flowchart of an output code parsing method for an automatic code generation database according to the present invention.
Detailed Description
The following describes the embodiments of the present invention in further detail with reference to the drawings.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1: the invention provides an output code analysis method for an automatic code generation database, as shown in fig. 1, comprising the following steps:
s1, acquiring database features of an automatic code generation database;
s2, carrying out iterative configuration on an automatic code generation database by utilizing the database characteristics to obtain a loop code database;
and S3, obtaining a basic output code according to the cyclic code database, and carrying out structuring processing to obtain an output code analysis result.
S1 specifically comprises:
s1-1, acquiring the database capacity of an automatic code generation database;
s1-2, judging whether the database capacity is kept fixed, if so, using the database capacity of the automatic code generation database as the internal characteristic of the database, otherwise, using the database capacity change period of the automatic code generation database as the internal characteristic of the database;
s1-3, utilizing the automatic code to generate a data type of a database as an internal secondary characteristic of the database;
s1-4, utilizing the internal features of the database and the internal secondary features of the database as automatic codes to generate database features of the database.
S2 specifically comprises:
s2-1, judging whether the database internal features of the database features are the database capacity, if so, performing iterative configuration by using the automatic code generation database to obtain a fixed code database, and executing S2-3, otherwise, executing S2-2;
s2-2, performing iterative configuration by using the automatic code generation database to obtain a periodic code database, and executing S2-4;
s2-3, performing framework stability verification on the fixed code database by utilizing the database characteristics to obtain a circulating code database;
s2-4, performing sequential logic verification on the periodic code database by utilizing the database characteristics to obtain a circular code database.
S2-1 comprises:
s2-1-1, utilizing an automatic code to generate a corresponding connection address and a port number of a database to establish external mapping of the database as an external tag of the database;
s2-1-2, utilizing the automatic code to generate a data index of the database to establish sequential association mapping as an internal label of the database;
s2-1-3, generating a database according to the automatic code to obtain a database virtual access request, and using the current moment as an iteration starting moment t;
s2-1-3, judging whether the database virtual access request corresponds to an external tag of the database, if so, executing S2-1-4, otherwise, returning to S2-1-3;
s2-1-4, performing virtual access on the automatic code generation database by utilizing the database virtual access request to obtain a virtual request result of the automatic code generation database, judging whether the virtual request result corresponds to a label in the database, if so, executing S2-1-5, otherwise, returning to S2-1-3;
s2-1-5, outputting an automatic code generation database as a fixed code database, and dividing the fixed code database into iterative access features by utilizing the external and internal labels of the database;
the database virtual access request comprises a connection user name and a connection password corresponding to the automatic code generation database.
S2-2 comprises:
s2-2-1, acquiring the current moment as a periodic capturing starting moment of an automatic code generation database;
s2-2-2, acquiring a database catalog and a database capacity of an automatic code generation database corresponding to the periodic capture starting moment as a standard starting database catalog and a standard starting database capacity respectively;
s2-2-3, acquiring the database catalog and the database capacity of the automatic code generation database corresponding to the current moment as the periodic comparison database catalog and the periodic comparison database capacity respectively;
s2-2-4, judging whether the periodical comparison database catalog is respectively consistent with the standard initial database catalog, the periodical comparison database capacity is consistent with the standard initial database capacity, if so, returning to S2-2-3, otherwise, using the corresponding moment of the periodical comparison database catalog and the periodical comparison database capacity as the periodical change cut-off moment;
s2-2-5, acquiring a periodic variation period according to the periodic acquisition starting moment and the periodic variation ending moment;
s2-2-6, acquiring an automatic code generation database corresponding to the periodic variation period as a periodic code database;
wherein the current time in S2-2-1 and S2-2-3 is not the same time.
S2-3 comprises:
s2-3-1, acquiring an execution process, a shared memory and a bottom layer storage of a fixed code database;
s2-3-2, judging whether the bottom storage of the fixed code database is consistent with the internal features of the database features, if so, executing S2-3-3, otherwise, returning to S2-1-1;
s2-3-3, judging whether the corresponding streaming data of the shared memory of the fixed code database corresponds to the secondary features in the database, if so, executing S2-3-4, otherwise, returning to S2-1-3;
s2-3-4, judging whether the corresponding streaming data quantity of the execution process of the fixed code database corresponds to the fixed code database, if so, outputting the fixed code database as a circulating code database by the framework stability verification, otherwise, returning to S2-1-4.
In this embodiment, an output code parsing method for an automatic code generation database verifies the consistency relationship between the bottom storage and the database capacity in S2-3-2, and when the bottom storage and the database capacity are inconsistent, the bottom storage and the database capacity are regarded as a link error of the database, so that iteration to the link establishment step is performed for reprocessing.
In this embodiment, in the output code analysis method for automatic code generation database, after the types of the inflow and outflow data in the shared memory are compared with the overall types of the database in S2-3-3, the number of the data types in the shared memory is greater than the number of the overall types of the database.
S2-4 comprises:
s2-4-1, dividing the internal features of the database and the secondary features in the database into a time sequence verification tag and a logic verification tag respectively by utilizing the features of the database;
s2-4-2, acquiring the actual operation data type corresponding to the periodic code database as an actual operation tag of the periodic code database;
s2-4-3, judging whether the operation time sequence of the actually operated tag corresponds to the time sequence verification tag, if so, executing S2-4-4, otherwise, returning to S2-2-2;
s2-4-4, judging whether the range of the logic verification tag is smaller than that of an actual operation tag, if yes, returning to S2-2-4, otherwise, enabling the sequential logic verification to pass, and outputting a periodic code database as a circulating code database.
S3 specifically comprises:
s3-1, outputting a basic output code by using the cyclic code database;
s3-2, performing structural backtracking processing by using the basic output code to obtain a structural backtracking processing result of the basic output code;
s3-3, obtaining an output code analysis result by utilizing the structural backtracking processing result.
S3-2 specifically comprises:
s3-2-1, acquiring a database type corresponding to the basic output code;
s3-2-2, judging whether the database type is a fixed code, if so, using a fixed code database corresponding to the basic output code as a fixed base layer framework, and executing S3-2-3, otherwise, using a periodic code database corresponding to the basic output code as a periodic base layer framework, and executing S3-2-4;
s3-2-3, acquiring a correlation code according to a fixed basic framework by utilizing the basic output code to serve as a derivative supplementary feature, and establishing one-way mapping by utilizing the basic output code and the derivative supplementary feature to serve as a structural backtracking processing result;
s3-2-4, acquiring a cycle period moment according to a cycle basic framework by using the basic output code as a derivative supplementary feature, and establishing unidirectional mapping by using the basic output code and the derivative supplementary feature as a structural backtracking processing result;
the base output code corresponding database type is fixed code and cycle code, the association code is code which has association with the base output code, and the cycle period time is the corresponding time of the current base output code in the complete cycle code database.
S3-3 specifically comprises:
s3-3-1, establishing a preset code catalog by utilizing basic output codes corresponding to the structural backtracking processing result;
s3-3-2, establishing a directory directivity result according to a preset code directory by utilizing the unidirectional mapping of the structural backtracking processing result;
s3-3-3, using the preset code catalogue and the catalogue directivity result as an output code analysis result.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical aspects of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the invention without departing from the spirit and scope of the invention, which is intended to be covered by the claims.
Claims (10)
1. An output code parsing method for an automatic code generation database, comprising:
s1, acquiring database features of an automatic code generation database;
s2, carrying out iterative configuration on an automatic code generation database by utilizing the database characteristics to obtain a loop code database;
and S3, obtaining a basic output code according to the cyclic code database, and carrying out structuring processing to obtain an output code analysis result.
2. An output code parsing method for an automatic code generation database as in claim 1, wherein said obtaining database features of the automatic code generation database comprises:
s1-1, acquiring the database capacity of an automatic code generation database;
s1-2, judging whether the database capacity is kept fixed, if so, using the database capacity of the automatic code generation database as the internal characteristic of the database, otherwise, using the database capacity change period of the automatic code generation database as the internal characteristic of the database;
s1-3, utilizing the automatic code to generate a data type of a database as an internal secondary characteristic of the database;
s1-4, utilizing the internal features of the database and the internal secondary features of the database as automatic codes to generate database features of the database.
3. An output code parsing method for an automatic code generation database as in claim 2, wherein iteratively configuring the automatic code generation database with the database features to obtain a loop code database comprises:
s2-1, judging whether the database internal features of the database features are the database capacity, if so, performing iterative configuration by using the automatic code generation database to obtain a fixed code database, and executing S2-3, otherwise, executing S2-2;
s2-2, performing iterative configuration by using the automatic code generation database to obtain a periodic code database, and executing S2-4;
s2-3, performing framework stability verification on the fixed code database by utilizing the database characteristics to obtain a circulating code database;
s2-4, performing sequential logic verification on the periodic code database by utilizing the database characteristics to obtain a circular code database.
4. An output code parsing method for an automatic code generation database as in claim 3, wherein iteratively configuring a fixed code database using said automatic code generation database comprises:
s2-1-1, utilizing an automatic code to generate a corresponding connection address and a port number of a database to establish external mapping of the database as an external tag of the database;
s2-1-2, utilizing the automatic code to generate a data index of the database to establish sequential association mapping as an internal label of the database;
s2-1-3, generating a database according to the automatic code to obtain a database virtual access request, and using the current moment as an iteration starting moment t;
s2-1-3, judging whether the database virtual access request corresponds to an external tag of the database, if so, executing S2-1-4, otherwise, returning to S2-1-3;
s2-1-4, performing virtual access on the automatic code generation database by utilizing the database virtual access request to obtain a virtual request result of the automatic code generation database, judging whether the virtual request result corresponds to a label in the database, if so, executing S2-1-5, otherwise, returning to S2-1-3;
s2-1-5, outputting an automatic code generation database as a fixed code database, and dividing the fixed code database into iterative access features by utilizing the external and internal labels of the database;
the database virtual access request comprises a connection user name and a connection password corresponding to the automatic code generation database.
5. An output code parsing method for an automatic code generation database as in claim 3, wherein iteratively configuring the periodic code database with the automatic code generation database comprises:
s2-2-1, acquiring the current moment as a periodic capturing starting moment of an automatic code generation database;
s2-2-2, acquiring a database catalog and a database capacity of an automatic code generation database corresponding to the periodic capture starting moment as a standard starting database catalog and a standard starting database capacity respectively;
s2-2-3, acquiring the database catalog and the database capacity of the automatic code generation database corresponding to the current moment as the periodic comparison database catalog and the periodic comparison database capacity respectively;
s2-2-4, judging whether the periodical comparison database catalog is respectively consistent with the standard initial database catalog, the periodical comparison database capacity is consistent with the standard initial database capacity, if so, returning to S2-2-3, otherwise, using the corresponding moment of the periodical comparison database catalog and the periodical comparison database capacity as the periodical change cut-off moment;
s2-2-5, acquiring a periodic variation period according to the periodic acquisition starting moment and the periodic variation ending moment;
s2-2-6, acquiring an automatic code generation database corresponding to the periodic variation period as a periodic code database;
wherein the current time in S2-2-1 and S2-2-3 is not the same time.
6. An output code parsing method for an automatic code generation database according to claim 4, wherein performing architectural stability verification of a fixed code database using said database features to obtain a cyclic code database comprises:
s2-3-1, acquiring an execution process, a shared memory and a bottom layer storage of a fixed code database;
s2-3-2, judging whether the bottom storage of the fixed code database is consistent with the internal features of the database features, if so, executing S2-3-3, otherwise, returning to S2-1-1;
s2-3-3, judging whether the corresponding streaming data of the shared memory of the fixed code database corresponds to the secondary features in the database, if so, executing S2-3-4, otherwise, returning to S2-1-3;
s2-3-4, judging whether the corresponding streaming data quantity of the execution process of the fixed code database corresponds to the fixed code database, if so, outputting the fixed code database as a circulating code database by the framework stability verification, otherwise, returning to S2-1-4.
7. An output code parsing method for an automatic code generation database according to claim 5, wherein verifying the sequential logic of the periodic code database using the database features to obtain the circular code database comprises:
s2-4-1, dividing the internal features of the database and the secondary features in the database into a time sequence verification tag and a logic verification tag respectively by utilizing the features of the database;
s2-4-2, acquiring the actual operation data type corresponding to the periodic code database as an actual operation tag of the periodic code database;
s2-4-3, judging whether the operation time sequence of the actually operated tag corresponds to the time sequence verification tag, if so, executing S2-4-4, otherwise, returning to S2-2-2;
s2-4-4, judging whether the range of the logic verification tag is smaller than that of an actual operation tag, if yes, returning to S2-2-4, otherwise, enabling the sequential logic verification to pass, and outputting a periodic code database as a circulating code database.
8. An output code parsing method for an automatic code generation database as in claim 3, wherein obtaining a base output code from said recurring code database and performing a structuring process to obtain an output code parsing result comprises:
s3-1, outputting a basic output code by using the cyclic code database;
s3-2, performing structural backtracking processing by using the basic output code to obtain a structural backtracking processing result of the basic output code;
s3-3, obtaining an output code analysis result by utilizing the structural backtracking processing result.
9. The method for resolving an output code for an automatic code generation database according to claim 8, wherein performing a structural backtracking process with the base output code to obtain a structural backtracking process result of the base output code comprises:
s3-2-1, acquiring a database type corresponding to the basic output code;
s3-2-2, judging whether the database type is a fixed code, if so, using a fixed code database corresponding to the basic output code as a fixed base layer framework, and executing S3-2-3, otherwise, using a periodic code database corresponding to the basic output code as a periodic base layer framework, and executing S3-2-4;
s3-2-3, acquiring a correlation code according to a fixed basic framework by utilizing the basic output code to serve as a derivative supplementary feature, and establishing one-way mapping by utilizing the basic output code and the derivative supplementary feature to serve as a structural backtracking processing result;
s3-2-4, acquiring a cycle period moment according to a cycle basic framework by using the basic output code as a derivative supplementary feature, and establishing unidirectional mapping by using the basic output code and the derivative supplementary feature as a structural backtracking processing result;
the base output code corresponding database type is fixed code and cycle code, the association code is code which has association with the base output code, and the cycle period time is the corresponding time of the current base output code in the complete cycle code database.
10. The method for output code resolution of an automatic code generation database of claim 9, wherein utilizing the structured backtracking process results to obtain output code resolution results comprises:
establishing a preset code catalog by utilizing the basic output codes corresponding to the structural backtracking processing results;
establishing a directory directivity result according to a preset code directory by utilizing the unidirectional mapping of the structural backtracking processing result;
and using the preset code catalogue and the catalogue directivity result as output code analysis results.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311805311.0A CN117453229B (en) | 2023-12-26 | 2023-12-26 | Output code analysis method for automatic code generation database |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311805311.0A CN117453229B (en) | 2023-12-26 | 2023-12-26 | Output code analysis method for automatic code generation database |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117453229A true CN117453229A (en) | 2024-01-26 |
CN117453229B CN117453229B (en) | 2024-02-23 |
Family
ID=89593396
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311805311.0A Active CN117453229B (en) | 2023-12-26 | 2023-12-26 | Output code analysis method for automatic code generation database |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117453229B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE202006000135U1 (en) * | 2006-01-05 | 2006-04-20 | Framework Systems Gmbh | Device for generating program code of a user program |
US20160041815A1 (en) * | 2014-08-11 | 2016-02-11 | Chirag P. Bhagat | Computer Source Code Generator for Building Software Applications |
CN112131215A (en) * | 2019-06-25 | 2020-12-25 | 中国移动通信集团重庆有限公司 | Bottom-up database information acquisition method and device |
CN112306498A (en) * | 2020-11-13 | 2021-02-02 | 用友网络科技股份有限公司 | Code generation method, ERP system and readable storage medium |
CN114281342A (en) * | 2021-12-29 | 2022-04-05 | 安徽兆尹信息科技股份有限公司 | Automatic code generation method |
CN114968214A (en) * | 2022-07-12 | 2022-08-30 | 云账户技术(天津)有限公司 | Code automatic generation method and device, storage medium and terminal equipment |
CN116360794A (en) * | 2023-03-27 | 2023-06-30 | 平安银行股份有限公司 | Database language analysis method, device, computer equipment and storage medium |
CN116700707A (en) * | 2023-06-12 | 2023-09-05 | 中国工商银行股份有限公司 | Program generation method and device for database application and electronic equipment |
-
2023
- 2023-12-26 CN CN202311805311.0A patent/CN117453229B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE202006000135U1 (en) * | 2006-01-05 | 2006-04-20 | Framework Systems Gmbh | Device for generating program code of a user program |
US20160041815A1 (en) * | 2014-08-11 | 2016-02-11 | Chirag P. Bhagat | Computer Source Code Generator for Building Software Applications |
CN112131215A (en) * | 2019-06-25 | 2020-12-25 | 中国移动通信集团重庆有限公司 | Bottom-up database information acquisition method and device |
CN112306498A (en) * | 2020-11-13 | 2021-02-02 | 用友网络科技股份有限公司 | Code generation method, ERP system and readable storage medium |
CN114281342A (en) * | 2021-12-29 | 2022-04-05 | 安徽兆尹信息科技股份有限公司 | Automatic code generation method |
CN114968214A (en) * | 2022-07-12 | 2022-08-30 | 云账户技术(天津)有限公司 | Code automatic generation method and device, storage medium and terminal equipment |
CN116360794A (en) * | 2023-03-27 | 2023-06-30 | 平安银行股份有限公司 | Database language analysis method, device, computer equipment and storage medium |
CN116700707A (en) * | 2023-06-12 | 2023-09-05 | 中国工商银行股份有限公司 | Program generation method and device for database application and electronic equipment |
Non-Patent Citations (2)
Title |
---|
BO WANG: "Rapid realization of executable domain models via automatic code generation", 《2017 IEEE 28TH ANNUAL SOFTWARE TECHNOLOGY CONFERENCE(STC)》, 25 December 2017 (2017-12-25) * |
VIPBOOKS: "基于数据库的代码自动生成工具,生成JavaBean、生成数据库文档、生成前后端代码等(TableGo v7.4.0版)", Retrieved from the Internet <URL:《https://blog.csdn.net/vipbooks/article/details/120307875?》> * |
Also Published As
Publication number | Publication date |
---|---|
CN117453229B (en) | 2024-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10162612B2 (en) | Method and apparatus for inventory analysis | |
EP3433732B1 (en) | Converting visual diagrams into code | |
US20190213115A1 (en) | Utilizing artificial intelligence to test cloud applications | |
CN106777101B (en) | Data processing engine | |
CN104252481A (en) | Dynamic check method and device for consistency of main and salve databases | |
US9009175B2 (en) | System and method for database migration and validation | |
CN111324610A (en) | Data synchronization method and device | |
CN103514223A (en) | Data synchronism method and system of database | |
US8904352B2 (en) | Systems and methods for processing source code during debugging operations | |
CN112416337B (en) | Software architecture development system for aerospace embedded system | |
Bellettini et al. | Mardigras: Simplified building of reachability graphs on large clusters | |
CN113254054B (en) | Intelligent contract one-stop development system and method | |
CN115509904A (en) | Assertion generation method and device of interface test case | |
Gu et al. | Towards efficient large-scale interprocedural program static analysis on distributed data-parallel computation | |
CN114372102A (en) | Data analysis method and device, storage medium and electronic equipment | |
CN112416336B (en) | Software architecture design method for aerospace embedded system | |
CN117453229B (en) | Output code analysis method for automatic code generation database | |
CN109491904B (en) | Automatic testing method and device for spark SQL application program | |
CN112230904A (en) | Code generation method and device based on interface document, storage medium and server | |
CN115437640A (en) | Method for quickly compiling engineering code | |
CN112181951B (en) | Heterogeneous database data migration method, device and equipment | |
CN115033434A (en) | Kernel performance theoretical value calculation method and device and storage medium | |
CN114625376A (en) | Data transfer mode conversion method and device, electronic equipment and readable storage medium | |
CN111949525A (en) | AI-based robustness intelligent test system and test method thereof | |
CN111679924A (en) | Component software system reliability simulation method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |