Database access method and device
An access method and access device technology, applied in the field of data processing, can solve problems such as complex access at the application layer, and achieve the effects of simplifying access, reducing workload, and ensuring stability and integrity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0018] refer to figure 2 As shown, it is a flow chart of the database access method provided by the first embodiment of the present invention. In this embodiment, the method includes the following steps:
[0019] Step S1, receiving an access request to the target database in the database system sent by the application program;
[0020] Step S2, selecting the access interface corresponding to the target database from the access interfaces corresponding to various databases preset in the interface layer;
[0021] Step S3, according to the access request, call the selected access interface to perform an access operation on the target database.
[0022] According to the above database access method, each database in the database system can be accessed through an interface layer independent of the database system, and the application layer can shield the difference in access to different types of databases. When the database system is upgraded, the stability and integrity of the...
no. 2 example
[0036] The second embodiment of the present invention provides a database access method. Compared with the database access method provided in the first embodiment, it further proposes:
[0037]The access request to the target database in the database system sent by the receiving application program in step S1 can be realized through a programming language-independent data exchange protocol. Specifically, the programming language-independent data exchange protocol may be a simple object access protocol (SOAP, Simple Object Access Protocol) based on a hypertext transfer protocol (HTTP, HyperText Transfer Protocol). Similarly, sending the access result to the application program through the selected access interface is also implemented through the programming language-independent data exchange protocol.
[0038] Since the application layer and the general interface layer interact through a data exchange protocol independent of the programming language, such as SOAP, the applicati...
no. 3 example
[0040] refer to Figure 4 As shown, it is a flow chart of the database access method provided by the third embodiment of the present invention. In this embodiment, the database access methods described in the first embodiment and the second embodiment are applied to an application scenario where a big data database (such as Hive) is integrated with a traditional database (such as Sybase IQ). Specifically, the application program in the application layer sends a data analysis request to Hive through the interface layer, and Hive returns the analysis result to the application layer after receiving the data analysis request. After receiving the analysis result, the application sends a data saving request to Sybase IQ through the interface layer, and Sybase IQ saves the analysis result after receiving the data saving request. In addition, if the application program has the same data analysis request, it can directly access Sybase IQ to obtain the analysis result from Sybase IQ. ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


