Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Database access method and device

An access method and database technology, applied in database models, database management systems, electrical digital data processing, etc., can solve the problems of increasing project development, testing, maintenance costs, heavy development workload, and SQL not decoupling, etc., to achieve Reduce the probability of online modification errors, improve development efficiency, and reduce the number of restarts

Pending Publication Date: 2020-09-15
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of realizing the present invention, the inventor found that there are at least the following problems in the prior art: in the existing technical solution for database access, the front-end page data items and the SQL in the persistence layer framework configuration file have not been decoupled. Or when product personnel put forward new requirements and need to add query conditions or query results, the developers need to modify the SQL statements in the front-end page and the configuration file at the same time, the development workload is huge, and the development efficiency is low; moreover, the existing database access In the technical solution, after each modification of the SQL statement in the backend configuration file, the backend server needs to be restarted to deploy the backend service, which not only brings a lot of inconvenience to system deployment and maintenance, but also easily causes online modification errors, Increase project development, testing, and maintenance costs

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0030] 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.

[0031] Before introducing the embodiments of the present invention in detail, some technical terms involved in the embodiments of the present invention will be described first.

[0032] Microservice Arc...

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 access method and device, and relates to the technical field of computers. The method is applied to a database access device adopting a front-end and rear-end separated micro-service architecture, and comprises the following steps: after receiving a database access request of a front-end page, packaging page data carried by the request into a first entity object,and transmitting the first entity object to a service layer; analyzing the first entity object, and dynamically generating an SQL statement according to an analysis result; packaging the SQL statement into a second entity object, and transmitting the second entity object to a data persistence layer; and analyzing the SQL statement from the second entity object and executing the SQL statement to realize access to a database. Through the above steps, the SQL can be dynamically generated in the memory based on the page request, the SQL statement is completely decoupled from the back-end configuration file, and the server restarting frequency caused by demand change is effectively reduced.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a database access method and device. Background technique [0002] At present, the development of business systems in various fields requires access to databases. A more common scenario is that users access the database through the front-end page. For example, the user performs query, update, delete or add operations on data in the database based on the data items on the front-end page. [0003] The existing technical scheme for database access is: the developer writes the SQL statement in advance according to the data item of the front-end page, and saves the SQL statement in the configuration file of the persistence layer framework (such as Mybatis); After the access request, use the SQL statement in the configuration file of the persistence layer framework to realize the access operation to the database table. [0004] In the process of realizing the present invention, th...

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/242G06F16/25G06F16/28
Inventor 黄攀登
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products