Method and device for SQL inspection
An inspection method and technology to be inspected, applied in the computer field, can solve problems such as inability to inspect and reduce the burden of DBA, and achieve the effects of reducing the burden of DBA, saving costs, and ensuring accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0019] refer to figure 1 , shows a flow chart of steps of an SQL checking method according to Embodiment 1 of the present application.
[0020] The SQL checking method of the present embodiment comprises the following steps:
[0021] Step S102: Obtain the file to be checked according to the file change type.
[0022] The file change type refers to the type of SQL changes made by the developer to the file, such as: modify, add, delete, etc. Correspondingly, the changed file type can be modified file, added file, deleted file Wait.
[0023] The file to be checked is a file that has been modified by SQL, and the file that has been modified by SQL is a file of a modified type, that is, a file that has been modified by SQL on the basis of the original file. Of course, a new SQL file, that is, an added type of SQL file can also be considered as a file to be checked.
[0024] Step S104: Perform SQL modification filtering on the file to be checked to obtain the SQL modification to...
Embodiment 2
[0034] refer to figure 2 , shows a flow chart of steps of an SQL checking method according to Embodiment 2 of the present application.
[0035] The SQL check in this embodiment is based on the version management tool SVN and the IBATIS framework. Among them, the IBATIS framework is an open source project of Apache, which is a Java-based persistence layer framework. The persistence layer framework provided by IBATIS includes SQL Maps and Data Access Objects (DAO), which is a "semi-automatic" implementation of ORM (Object Relational Mapping). However, those skilled in the art should understand that systems using similar architectures and tools can refer to this embodiment to perform SQL checking.
[0036] The SQL checking method of the present embodiment comprises the following steps:
[0037] Step S202: Check whether there is an invalidly modified file among the files that have undergone SQL modification, if yes, do not perform SQL check on the invalidly modified file; if n...
Embodiment 3
[0062] refer to image 3 , shows a flow chart of steps of an SQL check method according to Embodiment 3 of the present application.
[0063] The SQL inspection of this embodiment is based on the version management tool SVN and the IBATIS framework, utilizes the Perl language to call the SVN command in the operating system, and obtains the SVN branch information of the project, according to the branch information of the SVN, obtains the information of all files, processes the files, Perform REVIEW, print the execution plan, and make intelligent judgments on the execution plan. It should be noted that the language, framework, and tools in this embodiment are only exemplary descriptions, and systems that use similar languages, frameworks, and tools can refer to this embodiment to perform SQL checks.
[0064] The SQL checking method of the present embodiment comprises the following steps:
[0065] Step S302: Search for SVN items.
[0066] In this embodiment, the Perl language i...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com
