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

Database drive loading method and database drive loading device

A technology for loading device and database, applied in the field of database management

Inactive Publication Date: 2020-09-18
SHANGHAI ICEKREDIT INC
View PDF2 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when the existing java project uses JDBC for database connection operations, it directly introduces a certain version driver of a certain database (such as Oracle, Mysql, and Hive, etc.), and it is difficult to switch between different versions of the database during the running of the java project.

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 loading method and database drive loading device
  • Database drive loading method and database drive loading device
  • Database drive loading method and database drive loading device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053]In order to better understand the above technical solutions, the technical solutions of the present invention will be described in detail below through the accompanying drawings and specific examples. It should be understood that the embodiments of the present invention and the specific features in the examples are detailed descriptions of the technical solutions of the present invention, and It is not a limitation to the technical solutions of the present invention, and the embodiments of the present invention and the technical features in the embodiments can be combined with each other under the condition of no conflict.

[0054] After research and analysis by the inventor, it is found that when existing java projects use JDBC for database connection operations, they all directly introduce a specific version driver of a certain database (such as Oracle, Mysql, and Hive, etc.). If different versions need to be supported database operations (for example, supporting Mysql5...

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 provides a database drive loading method and a database drive loading device. In this method, the method comprises the following steps: firstly, acquiring a fully-defined class name of aJDBC drive class pre-configured by a java operating system and a drive JAR package; secondly, storing the drive JAR package in a directory, used for storing the JAR package, of a server, obtaining astorage path of the drive JAR package, and storing the storage path and the fully-limited class name into a Mysql database; when a drive loading instruction is detected; reading configuration information of a target JDBC drive corresponding to the drive loading instruction from a Mysql database, determining a target storage path and a target fully-defined class name corresponding to the target JDBC drive, and finally registering the target JDBC drive according to the target storage path and the target fully-defined class name. Thus, the target storage path and the target fully-defined class name can be read from the Mysql database according to the detected drive loading instruction, so that registration of the target JDBC drive is realized. The dynamic loading and switching of the JDBC drive of different versions and types of databases are realized.

Description

technical field [0001] The invention relates to the technical field of database management, in particular to a database driver loading method and a database driver loading device. Background technique [0002] When a java program accesses a relational database, it needs to load the database driver into the memory first, and then obtain the database connection. JDBC (java Data Base Connectivity) is a java database connection. The API provided by JDBC allows java programs to access relational databases and execute SQL statements through APIs to obtain data. However, when the existing java project uses JDBC for database connection operations, it directly introduces a certain version driver of a certain database (such as Oracle, Mysql, and Hive, etc.), and it is difficult to switch between different versions of the database during the running of the java project. . Contents of the invention [0003] In order to improve the above problems, the present invention provides a dat...

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): G06F9/445
CPCG06F9/44521
Inventor 顾凌云郭志攀王伟万凯
Owner SHANGHAI ICEKREDIT INC
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