Data access method and device

A data access and data technology, applied in the field of information processing, can solve problems such as inability to reuse, lack of unified interface specifications for front-end and back-end interfaces, and lack of general implementation of back-end server services, so as to reduce repetitive workload and optimize the establishment process.

Active Publication Date: 2018-02-13
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main defect of the existing technology is that the front-end and back-end interfaces lack a unified interface specification, and the server-side needs to repeatedly write server-side codes for clients that need similar functions. Backend server developers bring a lot of repetitive workload

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
  • Data access method and device
  • Data access method and device
  • Data access method and device

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0050] figure 2 It is a flow chart of a data access method provided by the first embodiment of the present invention. The method of this embodiment can be executed by a data access device, which can be implemented by hardware and / or software, and can generally be integrated into a server , and the method of this embodiment is generally applicable to the situation where the server queries a locally stored database and returns corresponding access results according to the data access request of the client. The method of this embodiment specifically includes:

[0051] 210. Receive a data access request sent by the client based on setting the data access interface.

[0052] In this embodiment, the developer of the front-end client sets the action attribute of different forms to the URI (Uniform Resource Identifie, Uniform Resource Identifier) ​​address corresponding to the data access interface of the background server according to the different functions of the form. Among the...

no. 2 example

[0087] image 3 It is a flow chart of a data access method in the second embodiment of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiments. In this embodiment, the data access request is optimized as data in a preset form format, wherein the name-value pair connector is in the form format A connector used to connect the name of the form item and the input value of the form item.

[0088] At the same time, the business object attribute, operator, and target attribute or value will be parsed from the received data access request and optimized as follows: through the background infrastructure service, the data access request will be converted into the name of the form item and the name of the form item. The two-tuple data corresponding to the input values ​​of the form items are analyzed to obtain the target attribute or value; the preset spacer is identified in the first data corresponding to the name of the form item; according t...

no. 3 example

[0104] Figure 4 It is a flowchart of a data access method in the third embodiment of the present invention. This embodiment is optimized based on the first embodiment. In this embodiment, the data access request is optimized into data in JSON object format.

[0105] Correspondingly, the method in this embodiment specifically includes:

[0106] 410. Receive the data access request in JSON object format sent by the client based on the set data access interface.

[0107] In this embodiment, the data access request is data in JSON object format, and the JSON object is generated through data encapsulation in form format.

[0108] Wherein, the name of the JSON object corresponds to the form item name in the data in the form format, the value pair of the JSON object corresponds to the form item input value in the data in the form format, and the name-value pair is connected The character is a connector used to connect the name of the JSON object and the value pair of the JSON obj...

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 data access method and device. The method includes: receiving the data access request sent by the client based on setting the data access interface, the data access request includes: the business object attribute corresponding to the form item name of the form submitted by the client, the preset spacer, and the operator, name-value pair connector, and the target attribute or value input by the user corresponding to the input value of the form item; parse the business object attribute, operator, and target attribute or value from the received data access request; based on The parsed business object attributes, operators, and target attributes or values ​​are used to perform corresponding data access operations according to the business object access method corresponding to the set data access interface; and return the access results to the client. The technical scheme of the invention optimizes the establishment process of the existing data access system based on the database, and reduces the workload of developers of the data access system.

Description

technical field [0001] The embodiments of the present invention relate to information processing technologies, and in particular, to a data access method and device. Background technique [0002] With the continuous development of computer technology, more and more information is stored in various databases in digital form. Therefore, various information management systems are also operating. For example: XX school established a student information management system for maintaining student information, or XX mobile sales company established a mobile sales information management system for statistics and maintenance of sales products, etc. Generally speaking, this type of management system mainly includes client software and a background server for storing databases. [0003] Among them, in figure 1 A schematic diagram of the human-computer interaction of the client software of the student information management system is shown in . Such as figure 1 As shown, if an operat...

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 Patents(China)
IPC IPC(8): H04L29/08
CPCH04L67/56H04L65/40
Inventor 王甲民
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
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