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

Database exception capture processing method and device and computer equipment

An exception handling and processing method technology, applied in the database field, can solve problems such as inability to guarantee data uniqueness and integrity, complex logic, bloated code, etc., to ensure data uniqueness and integrity, clear logic, and reduce code redundancy volume effect

Pending Publication Date: 2021-03-12
DAWNING INFORMATION IND BEIJING +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the mode of cooperative development, this will repeat part of the business logic, resulting in data superposition, the uniqueness and integrity of data cannot be guaranteed, the code is bloated, and the logic is complicated

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
  • Database exception capture processing method and device and computer equipment
  • Database exception capture processing method and device and computer equipment
  • Database exception capture processing method and device and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] It should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and examples.

[0060] The present invention will be described in further detail below in conjunction with specific examples, and these examples should not be construed as limiting the scope of protection claimed by the present invention.

[0061] The method, device and computer equipment for capturing and processing database exceptions according to the embodiments of the present invention will be described below with reference to the accompanying drawings.

[0062] figure 1 It is a flow chart of a database exception capture processing method according to an embodiment of the present invention, such as figure 1 As shown, the method includes the following steps:

[0063] S1, encapsulate the operation function ...

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 database exception capture processing method and device and computer equipment. The database exception capture processing method comprises the steps that an operation function in a database is packaged, and a packaging function is generated; when the operation function calls the database, whether an exception occurs or not is judged by utilizing a packaging function; andif the operation function is abnormal, corresponding abnormality processing is performed on the operation function. According to the database exception capture processing method and device and the computer equipment, the operation function in the database is packaged, the packaging function is generated, when the operation function calls the database, whether exception occurs or not is judged through the packaging function, if exception occurs, corresponding exception processing is conducted on the operation function, code redundancy is reduced, logic is clear, code writing and maintenance arefacilitated, and uniqueness and integrity of data are guaranteed.

Description

technical field [0001] The invention relates to the technical field of databases, in particular to a method, device and computer equipment for database abnormality capture and processing. Background technique [0002] In a large-scale distributed business system, when a Redis node or client calls an interface function to establish a connection with the Redis database, the interface function will not check the availability of the connection. Even if the connection is unavailable, the code level will run normally. Therefore, if an exception occurs on the Redis client, the storage service of the Redis database will be unavailable, thereby blocking the operation of the business logic of the entire system. At present, every time an interface function is called, in addition to executing the code of the business logic itself, a try / catch mechanism is also used to catch exceptions. However, in the mode of cooperative development, this will repeat part of the business logic, resulti...

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
IPC IPC(8): G06F11/07
CPCG06F11/0766
Inventor 李登杰于文健
Owner DAWNING INFORMATION IND BEIJING