Database drive processing method, device and equipment and storage medium

A processing method and database technology, applied in the database field, can solve problems such as affecting the efficiency of switching operations, cumbersome switching database operation processes, and inability to achieve seamless program code migration.

Active Publication Date: 2019-07-02
SHANGHAI DAMENG DATABASE
View PDF8 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the inventor finds that there are at least the following problems in the prior art: due to the need to modify the program code in the JDBC application program during the switching process, the JDBC application program cannot be implemented The program code in the database is seamlessly migrated, so the operation process of switching database is cumbersome, which affects the efficiency of switching operation

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 drive processing method, device and equipment and storage medium
  • Database drive processing method, device and equipment and storage medium
  • Database drive processing method, device and equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0030] JDBC is a set of Java API (Application Programming Interface, application programming interface) for executing SQL statements, which consists of a set of classes and interfaces written in Java language. Using the classes and interfaces it provides, you can easily make Java applications establish connections with different databases (such as MySQL, Oracle, DB2, and SQL Server, etc.), and send SQL statements to the database. In addition, JDBC can also encapsulate query results returned by the database, and the above-mentioned access operations to database data are realized. JDBC provides a standard API for application developers, so that application developers do not need to bind the API of a specific database vendor when programming. On this basis, more advanced tools and interfaces can be built. Application developers Ability to write database applications using pure Java API.

[0031] JDBC includes the following four levels: Java application layer, JDBC API layer, JDB...

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 embodiment of the invention discloses a database drive processing method, device and equipment and a storage medium. The method comprises the steps of acquiring a database access request; if the database access interface corresponding to the currently accessed database identifier is a non-JDBC API, obtaining a first type and a first method according to the currently accessed database identifier, and obtaining a second type and a second method according to the to-be-accessed database identifier; establishing a class corresponding relation between the first class and the second class according to the class function feature information, and establishing a method corresponding relation between the first method and the second method according to the method function feature information; andcalling a class corresponding relationship in a pre-established preset class and a calling method corresponding relationship in a preset method to obtain a preset compatible file, and taking the preset compatible file and the to-be-accessed database driver as compatible drivers to replace the current accessed database driver, the preset class corresponding to the first class, and the preset methodcorresponding to the first method. According to the embodiment of the invention, the process of switching operation is simplified.

Description

technical field [0001] Embodiments of the present invention relate to database technologies, and in particular, relate to a database-driven processing method, device, device, and storage medium. Background technique [0002] At present, more and more databases are needed to develop application programs, for example, B / S application programs and C / S application programs. Especially for B / S application programs (i.e. browser / server structure), this is because the present webpages are basically dynamic webpages, and dynamic webpages mean that the information on the page will change frequently, and the above-mentioned information is stored The carrier is mainly the database. The above requirements master the use of application programs to operate databases and the methods of manipulating data in databases. In Java applications, JDBC (Java Database Base Connectivity, Java Database Connection) is usually used to connect and operate the database. JDBC is a set of Java API (Appli...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/25
Inventor 杨超赵侃郑靖博
Owner SHANGHAI DAMENG DATABASE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products