Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

35 results about "Code readability" patented technology

Code readability is key for large software projects with many developers, and where the source code that is being written will have to be modified by another person. Code readability plays a central part at the Guardian digital department, where the scale of the projects is large and developers are encouraged to rotate teams.

Business code decoupling method and device and computer equipment

PendingCN120196354AReverse engineeringSoftware engineeringCode readability
The invention discloses a business code decoupling method and device and computer equipment. The method comprises the following steps: acquiring a user-defined annotation which is used for marking a business object to be decoupled; in response to a starting instruction of an application program to which the to-be-decoupled business object belongs, selecting the to-be-decoupled business object from the application program according to the user-defined annotation; and registering the to-be-decoupled business object into a binding device corresponding to the to-be-decoupled business object in the container to complete decoupling of the to-be-decoupled business object and the controller in the application program. According to the method and the device, the technical problem of relatively low readability of the service code caused by high coupling of the service code in the related technology is at least solved.
Owner:CHINA TELECOM CORP LTD

Method and system for cobol to java program conversion based on syntax tree

PendingCN122411953APathPingSource code file
The application discloses a COBOL-to-Java program conversion method and system based on a syntax tree, belongs to the technical field of computer program language conversion, and comprises the following steps: obtaining a COBOL source program file to be converted and configuration rules; performing lexical analysis and syntax analysis to generate an abstract syntax tree; converting COBOL syntax elements into corresponding Java semantic representations according to pre-defined semantic mapping rules; establishing an accurate access chain of a main program and COPYBOOK internal variables through variable path tracking; detecting and solving naming conflicts of COBOL different-level same-name variables based on a scope tree, and renaming variables by adding a parent class name prefix; and generating the converted Java semantic representations into a Java source code file. The application realizes high-fidelity and high-automation COBOL-to-Java conversion, significantly reduces the migration cost of a legacy system, and generates code with strong readability and excellent performance.
Owner:SHANDONG CITY COMMERCIAL BANK COOP ALLIANCE CO LTD

Code repair method and device, electronic equipment, storage medium and product

Embodiments of the present application provide a code repair method and device, electronic equipment, storage medium and product. The method comprises: extracting binary features of a packed file, inputting a pre-trained convolutional neural network model to obtain target packing features corresponding to the packed file, performing unpacking processing on the packed file to obtain an unpacked file; performing decompilation processing on the unpacked file to obtain decompiled code, and performing semantic recognition on the decompiled code by a language recognition model to perform symbol recovery processing to obtain symbol recovery code; performing structural processing on the logic of the symbol recovery code by abstract syntax tree technology to obtain structured code; and performing compilation repair processing on the structured code to obtain target code. The above scheme accurately identifies the target packing type by using the pre-trained convolutional neural network model, automatically performs targeted repair according to the target packing type, can accurately repair the influence of the packing tool on the readability of the code, and thus improves the accuracy of code repair.
Owner:SHENZHEN XINGHAN LASER TECH CO LTD

An NPU system register verification method, system and readable storage medium

PendingCN122635270AMaintainabilityCode readability
The present application relates to the technical field of chip design verification, and especially relates to an NPU system register verification method, system and readable storage medium, wherein register information is directly extracted from a chip specification document through an automatic information extraction tool, and an inefficient and error-prone link of manual arrangement is abandoned; the extracted information is converted into structured data and access constraint information is generated, and is integrated into a transaction class, unified and centralized management of access constraints is realized, scattered conditional judgments in verification code are avoided, and code readability and maintainability are significantly improved; when a register access operation is initiated, pre-checking is automatically performed by the transaction class according to the integrated access constraint information in the internal, and if the checking is passed, the operation is executed, and if the checking fails, an error is thrown, so that a constraint violation problem is captured in the transaction initiation stage, error information is intuitive, and problem positioning difficulty is greatly reduced.
Owner:CIX TECH (SHANGHAI) CO LTD

A method for simplifying the addition, deletion, modification and query of one-to-many association tables in Java

The present invention discloses a method for simplifying the addition, deletion, modification, and query of one-to-many association tables in a Java program. The method comprises the following steps: S1: designing an association table; S2: defining a basic entity class; S3: defining a business entity class; S4: defining a basic database access layer interface; S5: defining an association table database access interface; S6: defining an association table operation interface; and S7: adding addition, deletion, modification, and query methods for the association table to the association table operation interface, and completing the logic code in Java. The present invention reduces the need for repeated method definitions and SQL writing in association table functions during Java business development, shortening R&D time and saving development costs. The unified definition increases code readability, facilitates subsequent unified modification and logic iteration, and improves the versatility and reusability of association tables.
Owner:CHENGDU FANGLIAN CLOUD CODE TECH CO LTD

A rapid development and verification method for a wireless charging system

The technical scheme of the present application provides a wireless charging system rapid development and verification method. The present application makes full use of the advantages of high compatibility, high adaptability and high code readability of the debugging platform, and uses the same debugging platform unified debugging interface design and debugging wireless charging system. Through the method provided by the present application, the research, simulation and real demonstration of the control algorithm of the charging system in the actual deviation, disturbance and fault can be realized, and the response speed and steady state characteristics of the actual controller can also be quickly verified. The present application provides a fast, reliable and practical verification platform for verifying the key technology research of input, position and load disturbance change on the safe and stable output of the system.
Owner:SHANGHAI TECH UNIV

A flood evolution analysis method based on instant compiling technology

The application discloses a flood evolution analysis method based on instant compiling technology, mainly comprising the following steps: setting a hardware acceleration environment, specifying a calculation time and an iteration step length, loading a grid topological structure, an initial water level and an initial flow velocity, a grid roughness field and model boundary conditions, optimizing codes of a finite volume method and a HLLC shallow water equation solving algorithm based on instant compiling technology, and realizing parallel acceleration simulation of flood evolution. The method is written in Python language with strong interpretability to compile shallow water equation solving codes, and machine codes are generated by instant compiling technology during runtime to greatly improve code running efficiency. Different hardware platforms such as CPU, GPU or CUDA can be selected to perform parallel acceleration solving on the shallow water equation, simple and efficient simulation of flood evolution is realized, and the method has the advantages of strong code readability and high performance.
Owner:NANJING INST OF GEOGRAPHY & LIMNOLOGY

A method for locating a source code location of a software problem by a log, an electronic device

The application discloses a method for locating software problem source code position through a log, and electronic equipment, comprising the following steps: acquiring a log output point of the target software, creating an index record for the log output point, detecting source code position information of each log output point, analyzing log content of each log output point based on the source code position information, extracting and generating feature values corresponding to the log content, constructing a log index library, receiving an actual running log, extracting feature values of the log, and performing matching in the log index library to determine the source code position corresponding to the log output point, and locating to a specific position of the source code according to a matching result. The application is beneficial to improving code performance and readability, does not depend on code position information output in the log, reduces requirements on the log format, enhances code readability, improves the integrity of the log by scanning the code and providing suggestions for improving the log, and the like.
Owner:CHINA FAW CO LTD +1

Special effect processing method and device, electronic equipment, storage medium and program product

The embodiment of the invention provides a special effect processing method and device, electronic equipment, a storage medium and a program product. The method comprises the following steps: in response to a special effect processing request input at a client, obtaining special effect input information and a target special effect file; wherein the target special effect file comprises at least one special effect processing component and a component scheduling file; the component scheduling file comprises component scheduling logic used for scheduling the special effect processing component; and processing the special effect input information through the component scheduling file and the special effect processing component to obtain target special effect information corresponding to the special effect input information, and displaying the target special effect information on the client. According to the technical scheme provided by the embodiment of the invention, the problems that the readability of codes in the special effect file is poor and subsequent maintenance of the special effect file is inconvenient in the related technology are solved, the special effect file in special effect processing is componentized, and the readability and maintainability of the codes in the special effect file can be improved.
Owner:BEIJING ZITIAO NETWORK TECH CO LTD

Network Request Processing Method, Apparatus, Device, and Program Product

ActiveCN119645714BFault responseExecution paradigmsCallbackCode readability
The present application relates to the field of network data processing, and in particular to a network request processing method, apparatus, device, and program product. The method includes: sending a network request and obtaining a first observable object generated by the network request; inserting a global error conversion class into the first observable object through a combination operator to obtain a second observable object, where the global error conversion class is used for unified processing according to the type of the global error; receiving response data of the network request, and performing conversion processing on the response data through the global error conversion class to obtain a processing result corresponding to the response data. All errors are uniformly processed by the global error conversion class. Regardless of what error the network request returns, it can be processed through this conversion class, so that developers do not need to nest multiple callbacks in the callback, reducing the amount of code development. Only by updating the global error conversion class is it beneficial to reduce the maintenance cost and improve the readability of the code.
Owner:ROYPOW TECH CO LTD

Methods and plugins for automatically detecting unimplemented functions based on the Xcode protocol.

This invention provides a method and plugin for automatically detecting unimplemented protocol functions based on Xcode. It obtains the configuration file of the currently foreground Xcode project; parses the configuration file to obtain all class and protocol data for the project; calculates an array of unimplemented protocol functions based on all class and protocol data; and outputs the array in JSON format. This achieves automated detection of unimplemented protocol functions, saving time and development costs, reducing missed functions due to human error, reducing trial and error and maintenance costs, and offering high accuracy. The functions are uniformly stored in a designated area for easy viewing and modification, reducing maintenance difficulty and time, and providing good code readability.
Owner:宝宝巴士股份有限公司

Annotation statement generation method and device, storage medium and electronic equipment

The invention discloses an annotation statement generation method and device, a storage medium and electronic equipment. The method comprises the steps that a target path and an annotation generation option are received, and the annotation generation option is used for indicating attribute information of a target annotation statement; determining file structure information based on the target path, the file structure information being used for determining annotation content of the target annotation statement; and generating a target annotation statement according to the file structure information and the annotation generation option, and inserting the target annotation statement in the target position. The technical problem that code readability is poor due to nonstandard code annotation is solved.
Owner:CHINA CONSTRUCTION BANK +1

A method for implementing an adaptation layer based on OpenGL

The present invention relates to an OpenGL-based adaptation layer implementation method, belonging to the field of model-driven system engineering. The adaptation layer of the present invention comprises three functional parts: unified management, computational optimization, and external interface. Unified management includes resource, status, and error management; computational optimization includes mathematical operation optimization and curve and polygon drawing optimization; and the external interface includes an interface that matches the onModel tool. The present invention establishes an adaptation layer based on the primitives provided by the onModel tool, implements OpenGL encapsulation, and forms an adaptation layer that matches the onModel primitives. This simplifies the process of generating C code from a graphical interface, improves code readability, and provides support for the implementation of subsequent functions of the OnModel tool.
Owner:BEIJING INST OF COMP TECH & APPL

Method, device, electronic device and storage medium for converting PLSQL code

The embodiment of the present invention provides a method, device, electronic device and storage medium for converting PLSQL code, including: obtaining a PLSQL code text to be converted that carries a loop block statement object, a cursor loop fetch statement object and an exit when statement object; translating the PLSQL code text to generate a syntax tree, the syntax tree including corresponding loop stmt nodes, fetch stmt nodes and exit stmt nodes; traversing nodes in the syntax tree and obtaining a node position sequence between the loop stmt nodes, fetch stmt nodes and exit stmt nodes in the syntax tree; identifying the PLSQL code text according to the node position sequence to obtain a scenario type of the PLSQL code text; and converting the PLSQL code text according to the scenario type to obtain a target code text. The embodiment of the present invention can not only realize automatic translation, but also make the target code more consistent with coding habits, greatly improve code readability, and can also perform targeted conversion processing for different scenario types.
Owner:CHINA PING AN LIFE INSURANCE CO LTD

Message processing method and device, electronic equipment and computer readable medium

The invention discloses a message processing method and device, electronic equipment and a computer readable medium, and relates to the technical field of computers.The specific implementation mode comprises the steps that in response to a message processing request, a corresponding annotation is obtained, and then an annotation attribute corresponding to the annotation is determined; querying to obtain a corresponding message producer based on the annotation attribute; calling a message producer to assemble according to the configured method name and parameter to obtain a corresponding message; serializing the message to obtain a serialized message, and sending the serialized message to a message queue; dynamically creating a message consumer, and in response to a message consumption request of the message consumer for the message queue, analyzing the content of the message body in the message queue to obtain a method name; and according to the method name, obtaining a fully defined name of the corresponding class so as to reflect and call the corresponding asynchronous method. Code redundancy during message processing is avoided, code readability is improved, and therefore fast and asynchronous message processing is achieved.
Owner:BEIJING JINGDONG YUANSHENG TECH CO LTD

A message generation method, device and electronic equipment

ActiveCN119135780BTransmissionComputer hardwareCode readability
The application relates to the technical field of network services, in particular to a message generation method and device and electronic equipment, which are used for generating a message body according to rules contained in target source code, and solve the problem that when a client not supporting a Web system interacts with a target front end supporting the Web system, the code of the target front end needs to be increased or modified, leading to poor readability of the code of the target front end. The message generation method comprises the following steps: a client receives a business instruction; target source code obtained is compiled to generate a message body corresponding to the business instruction; wherein the target source code comprises rules for generating the message body, the target source code is source code of a target front end, the target front end supports a Web system, and the client does not support the Web system; a message head is added to the message body to generate a first message.
Owner:CHINA CONSTRUCTION BANK +1

Code odor automatic reconstruction method and device based on code large model

The invention discloses an automatic code odor reconstruction method and device based on a code large model. The method is characterized by comprising the following steps: preprocessing a data set; code peculiar smell existing in the data set is detected through a SonarQube tool; reconstructing each code peculiar smell one by one by using a code large model, and obtaining a new data set through multi-round reconstruction optimization; inputting the optimized new data set into SonarQube for quality detection again, analyzing a code odor report to extract the number of code odor before and after reconstruction of five grades, calculating the code odor reconstruction and restoration proportion of each grade, and if the code odor reconstruction and restoration proportion of each grade reaches a preset threshold value, judging that automatic reconstruction of the code odor is completed, otherwise, judging that automatic reconstruction of the code odor is completed. The method has the advantages that the code peculiar smell in the codes can be effectively eliminated, the readability and maintainability of the codes are improved, the manual reconstruction amount is reduced, and the development period is shortened.
Owner:SCHOOL OF SOFTWARE ZHEJIANG UNIV (NINGBO) MANAGEMENT CENT (NINGBO SOFTWARE EDUCATION CENT)

Method and system for code summarization based on hypergraph representation

The application provides a code summary generation method and system based on a hypergraph representation, and relates to the technical field of code data processing. The source code is converted into an abstract syntax tree, and the abstract syntax tree is pruned; a code hypergraph is constructed using the pruned abstract syntax tree; based on the constructed code hypergraph, code hypergraph data is input into a trained summary generation model to obtain a code summary. The summary generation model includes an encoding layer, and the encoding layer includes a hypergraph neural network layer. The hypergraph neural network layer uses a three-step message passing mechanism to aggregate information of the code hypergraph data. The three-step message passing mechanism is used to aggregate high-order interaction information of the code hypergraph, breaking through the limitation of traditional ordinary graphs that can only express second-order relationships, effectively capturing high-order dependencies and group interactions in the code, fully representing the complex semantics of the code, improving the accuracy of code summary generation, accurately reflecting the core functions of the code, improving the readability of the code, and reducing the software development and maintenance cost.
Owner:HEFEI UNIV OF TECH

Behavior tree-based automatic parking decision model construction method and device

The invention provides an automatic parking decision model construction method and device based on a behavior tree. The problems that in the prior art, development difficulty is large, maintenance is difficult, code readability is poor, a decision process is lacked, and visualization cannot be achieved are solved. The behavior tree is used as a main body of parking decision, construction of the decision system in a complex parking environment is efficiently realized, and meanwhile, the behavior tree-based automatic parking decision system is high in readability, convenient to maintain and high in code reuse rate.
Owner:NULLMAX INC

Table processing method and device and storage medium

The embodiment of the invention provides a table processing method and device and a storage medium. The method comprises the following steps: when a user initiates an import request for a table of any language, calling an import interceptor corresponding to the import request to intercept the import request; according to the import request, obtaining a table needing to be imported and an import language needing to be adopted for importing the table; calling a table entity class corresponding to the table to obtain a key value of the I18Nkey annotation on the table entity class; according to the key value and the internationalized file, determining a corresponding internationalized header of the table under the import language; analyzing the table to obtain data content of each attribute under each internationalized header of the table; when the data content is not empty, storing the data content into an import result file corresponding to the table; according to all the data contents in the import result file, the import operation for the table is completed, the table import performance is improved, the table import efficiency is higher, and the code readability and maintainability are improved.
Owner:ZHONGKE YUNGU TECH

Automatic generation method of UML sequence diagrams compatible with multilingual code analysis

This invention provides an automatic UML sequence diagram generation method compatible with multilingual code analysis. By capturing the characteristics of C++ and Java code, it identifies the code types of each part of the mixed source code and analyzes different code types. For code marked as C++, regular expressions are used to match keywords, class information, and inheritance information of the C++ source code to be analyzed, and these are converted into parameter names. For code marked as Java, syntax and lexical analysis are used to extract class information and method call information of the Java source code to be analyzed. Corresponding Plant UML code is generated and drawn as a comprehensive UML sequence diagram. This invention's automatic UML sequence diagram generation method compatible with multilingual code analysis can intuitively reflect the functional and logical composition of mixed C++ and Java code, and intuitively reflect the interaction relationship between them. It avoids the need to view tedious source code to obtain program information and functional relationships, improving code readability and maintainability.
Owner:HEFEI UNIV OF TECH

A code readability evaluation method based on a program graph and a graph neural network

ActiveCN116048614BProgram graphData stream
The application discloses a code readability evaluation method based on a program graph and a graph neural network, mainly relates to a program graph based on an abstract syntax tree and a graph representation learning method based on a graph neural network, and comprises the following steps: firstly, converting source code into an abstract syntax tree, then adding data flow and control flow edges to obtain a program graph; then, performing node embedding on the program graph through a pre-training model and one-hot encoding; finally, obtaining source code semantic information through graph neural network learning and training to obtain a readability evaluation prediction result. The application overcomes the characteristics that current code representation methods lack semantic information extraction and are difficult to be organically integrated with a deep learning framework, proposes an effective graph representation method, and improves the readability classification accuracy.
Owner:BEIJING UNIV OF TECH

Code readability classification method and system based on hypergraph representation

The application provides a code readability classification method and system based on a hypergraph representation, and relates to the technical field of neural networks. The method comprises the following steps: constructing an abstract syntax tree according to obtained source code; adjusting edges between nodes with a parent-child relationship in the abstract syntax tree into parent-child hyperedges to obtain a code hypergraph, wherein the feature of each node in the code hypergraph is the average value of all tokens contained in the corresponding position range of each node; constructing a row-level hyperedge according to the code sequence of the source code by rows, wherein the node feature of the row-level hyperedge is the token extracted by performing word segmentation on the code by rows; extracting the node feature of the row-level hyperedge, aggregating the node features of the parent-child hyperedges in the code hypergraph, mining context semantic information in the code data, obtaining deep structure information of the source code, integrating the mined node features and hyperedge information into a node feature matrix and an association matrix, inputting the node feature matrix and the association matrix into a trained hypergraph neural network model, and obtaining a readability classification result, so that the readability classification result is more accurate.
Owner:HEFEI UNIV OF TECH

Code readability classification method and system based on hypergraph representation

The invention provides a code readability classification method and system based on hypergraph representation, and relates to the technical field of neural networks. The method comprises the following steps: constructing an abstract syntax tree according to an obtained source code; edges between nodes with the father-son relation in the abstract syntax tree are adjusted to be father-son hyperedge, a code hypergraph is obtained, and each node in the code hypergraph is characterized by the average value of all tokens contained in the position range corresponding to each node; row-level hyperedges are constructed for the code sequence of the source code according to rows, and node features of the row-level hyperedges are tokens for performing word segmentation extraction on the codes according to the rows; extracting node features of row-level hyperedges, aggregating node features of father and son hyperedges in the code hypergraph, mining context semantic information in code data to obtain deep structure information of a source code, integrating the mined node features and hyperedge information into a node feature matrix and an incidence matrix, and inputting the node feature matrix and the incidence matrix into a trained hypergraph neural network model to obtain a hypergraph neural network model; and a readability classification result is obtained, and the readability classification result is more accurate.
Owner:HEFEI UNIV OF TECH

Autonomous agent log analysis system and method based on large language model

The invention provides an autonomous agent log analysis system and method based on a large language model, and relates to the field of log analysis, the system takes an autonomous agent as a core, and a log analysis engine, a knowledge base supporting code understanding and the autonomous agent comprising six modules such as a universal module and an engine log analysis module are constructed to analyze the log. A planning-execution loop mechanism is adopted, an autonomous agent autonomously manages and controls the whole log analysis process, a large language model is used for generating analysis codes to replace regular rules to conduct log data analysis, manual participation is not needed for bottom layer analysis logic, and therefore the problem of large-flow and high-concurrency log analysis is solved; the method has the innovation points that the action space of the large language model is expanded, the code self-management is realized, and the requirements on the readability of bottom-layer codes and a graphical interface are reduced.
Owner:HANGZHOU DBAPPSECURITY CO LTD

Interactive front-end code generation device and use method thereof

The invention provides an interactive front-end code generation device and a use method thereof, and solves the problems of low code development efficiency and poor code readability and maintainability in the prior art. Comprising a command line control module used for defining a scaffold instruction set, analyzing command line parameters input by a user and executing corresponding actions according to analyzed contents; the interactive question and answer module is used for generating an interactive command line interface and providing business customization options; the terminal display optimization module is used for optimizing a terminal display interface; the template downloading module is used for downloading a preset template; and the compiling and publishing module is used for compiling the scaffold source code into a binary file which can be executed by Node.js, and publishing the binary file to an NPM warehouse, so that the user experience is improved.
Owner:XIANGYU HUIYU (SHANGHAI) INFORMATION TECHNOLOGY CO LTD

Code repairing method and device, electronic equipment, storage medium and product

The embodiment of the invention provides a code repairing method and device, electronic equipment, a storage medium and a product. Comprising the following steps: extracting binary features of a packed file, inputting a pre-trained convolutional neural network model to obtain target packed features corresponding to the packed file, and shelling the packed file to obtain a shelled file; carrying out decompilation processing on the unshelled file to obtain a decompilation code, and carrying out semantic recognition on the decompilation code through a language recognition model to carry out symbol recovery processing to obtain a symbol recovery code; performing structured processing on logic of the symbol recovery code through an abstract syntax tree technology to obtain a structured code; and compiling and repairing the structured code to obtain a target code. According to the scheme, the target packing type is accurately identified through the pre-trained convolutional neural network model, and targeted repair is automatically performed according to the target packing type, so that the influence of a packing tool on code readability can be accurately repaired, and the code repair accuracy is improved.
Owner:SHENZHEN XINGHAN LASER TECH CO LTD

Method for locating source code location of software issue by means of log, and electronic device

Disclosed in the present invention are a method for locating a source code location of a software issue by means of a log, and an electronic device. The method comprises: acquiring log output points of target software, and creating index records for the log output points; detecting source code location information of each log output point, analyzing the log content of each log output point on the basis of the source code location information, and extracting and generating a feature value corresponding to the log content; constructing a log index database; and receiving an actual running log, extracting a feature value of the log, performing matching in the log index database to determine source code locations corresponding to the log output points, and locating the specific location of a source code on the basis of a matching result. The present invention can improve the code performance and readability, does not depend on code location information outputted in a log, reduces requirements for a log format, enhances code readability, improves the integrity of the log by scanning the code and providing suggestions for perfecting the log.
Owner:CHINA FAW CO LTD +1

Horizontal unauthorized vulnerability repairing method and device, equipment and medium

The invention discloses a horizontal unauthorized vulnerability repairing method and device, equipment and a medium, and belongs to the technical field of Internet. The horizontal unauthorized vulnerability repair method comprises the following steps: determining an authentication check section corresponding to a service module with a horizontal unauthorized vulnerability; obtaining a service request for the service module based on the authentication check aspect; judging whether the service request conforms to a horizontal unauthorized feature or not; and intercepting the service request under the condition that the service request conforms to the level unauthorized feature. Through the scheme disclosed by the invention, the service request conforming to the horizontal unauthorized feature can be effectively intercepted, and the horizontal unauthorized vulnerability can be repaired. Moreover, the coupling degree between the repairing mode and the source code corresponding to the business module is low, the code readability is high, the vulnerability repairing workload is small, and the method has relatively high level unauthorized vulnerability repairing efficiency.
Owner:NETSUNION CLEARING CORP

Method, system and equipment for creating predefined query instruction PLSQLUNIT based on openGauss database

The invention relates to the technical field of database management, and provides a predefined query instruction PLSQLUNIT creating method, system and equipment based on an openGauss database, and the method comprises the following steps: in a lexical analysis stage, identifying a predefined query instruction from the beginning; in the grammar processing stage, a predefined query instruction is recognized as an expression, and corresponding content constants are obtained from compilation information and database metadata for replacement; and creating a function corresponding to the predefined query instruction PLSQLUNIT, and obtaining compiling unit information through the function. According to the method, the migration convenience from the Oracle to the openGauss can be improved; the code adjustment cost is reduced, the development efficiency of the SQL and the PLSQL is enhanced, and the code writing and maintenance work is simplified; the problem of parsing conflict of symbols is solved, and the compatibility with original functions of openGauss is ensured; the name of the current compiling unit is dynamically acquired during compiling, and the code readability and the operation efficiency are optimized; and through a predefined query instruction compatible with Oracle, good ecological compatibility is kept.
Owner:BEIJING VASTDATA TECH