Method and apparatus for accessing database

A database and access operation technology, applied in the field of data processing, can solve problems such as low system operation efficiency, poor scalability, and inflexible access to databases, and achieve the effects of improving system operation efficiency, improving system operation efficiency, and flexible access to databases

Inactive Publication Date: 2005-01-19
HUAWEI TECH CO LTD
View PDF0 Cites 40 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. There are a lot of redundant codes when accessing the database, occupying system resources, making the system run slowly and inefficient
Since accessing the database is implemented according to the process of obtaining the database connection, encapsulating SQL, executing SQL and returning the access result, when the parameters of the access operation of accessing the database change, it needs to be recoded, which will generate a lot of redundant code. Occupy system resources and reduce system operation efficiency;
[0005] 2. Accessing the database is inflexible and insecure
In the prior art, once the connection parameters of the database system are selected, they cannot be changed easily. For the high-level application system of database access, if the database user name and password parameters are defined as constants, then the users of ...

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
  • Method and apparatus for accessing database
  • Method and apparatus for accessing database
  • Method and apparatus for accessing database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] The method and device of the present invention will be further described in specific embodiments in conjunction with the accompanying drawings, so that those skilled in the art can better understand how the present invention implements database access based on the description.

[0054] Because the prior art includes the same process when realizing database access, this process can be fixed, and at the same time the most frequently changing connection parameters and access operation parameters in database access are separated from the processing flow. This method realizes the database access, and the application of this method can greatly reduce the amount of redundant codes, improve the flexibility and security of the high-level application system and expand the application in the future. please see figure 1 As shown, the method for accessing database of the present invention comprises the following steps:

[0055] Step 101 establishes a description file of connection ...

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

This invention discloses a kind of database access method and apparatus. The method comprises the following steps: a) creating the description file of database system connection parameter; b) creating the description file of database system access operation; c) reading the description file of database system connection parameter, initializing database connection pool; d) reading the description file of database system access operation, initializing database access operation object; e) acquiring database access operation object according to the database access claim; acquiring effective connection from the database connection pool; accessing database and returning result. The said apparatus comprises description module, analysis module and process module. By describing the connection parameter of database access and parameter of data access operation, this invention can reduce redundancy code, and increase system operation efficiency.

Description

technical field [0001] The present invention relates to data processing technology, more specifically to a method and device for realizing database access. Background technique [0002] With the development of society, a large amount of data needs to be stored. For the stored data, certain data processing methods can be applied according to the needs of different users. The database is a technology that meets this demand. Simply put, the database is Data is a collection of data stored in a way that can be persisted and manipulated. A database system consists of a database and its surrounding environment, including software, operating system, hardware, and users who use it. In order to enable the user to access the database, if the user needs to perform operations such as query, addition, deletion, and modification on the data in the database, the prior art implements database access through the following methods: first determine the connection parameters of the correspondin...

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): G06F13/14G06F17/30
Inventor 董欣史扬
Owner HUAWEI TECH 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