Switching method and device among multiple databases and electronic equipment
A database and switching request technology, applied in the field of data processing, can solve problems such as low efficiency, achieve the effect of improving efficiency and solving development time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] The embodiment of this application provides a method for switching between multiple databases, such as figure 1 As shown, the method includes: step S101 to step S103.
[0052] Wherein, in step S101 , when a switching request for the current database is detected, a database identifier of a target database corresponding to the switching request is acquired.
[0053] For this embodiment of the application, the database identifier is used to represent different databases, and the switching request includes the database identifier of the target database. When a certain business program is connected to the current database, the purpose of determining the target database is realized through the switching request.
[0054] In actual application, the same business program can be used to connect to one database or multiple databases.
[0055] For example, all the databases provided to business program A are database 1, database 2 and data 3 respectively, and the database identif...
Embodiment 2
[0097]The embodiment of the present application provides a switching device between multiple databases, such as figure 2 As shown, the device 20 for switching between multiple databases may include: a switching detection module 201 , an interface determination module 202 and a switching processing module 203 .
[0098] Wherein, the switching detection module 201 is configured to obtain the database identifier of the target database corresponding to the switching request when detecting a switching request for the current database;
[0099] Interface determination module 202, configured to determine the interface class corresponding to the database identifier of the target database;
[0100] The switch processing module 203 is used to switch the connection with the current database to the target database corresponding to the interface class, so as to complete the switch between the current database and the target database.
[0101] This application obtains the database identif...
Embodiment 3
[0114] The embodiment of the present application provides an electronic device, such as Figure 4 as shown, Figure 4 The electronic device 400 shown includes: a processor 4001 and a memory 4003 . Wherein, the processor 4001 is connected to the memory 4003 , such as through a bus 4002 . Further, the electronic device 400 may further include a transceiver 4004 . Among them, the transceiver is used to provide communication functions between electronic devices and other electronic devices. It should be noted that, in practical applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 400 does not limit the embodiment of the present application.
[0115] The processor 4001 may be a CPU, a general processor, DSP, ASIC, FPGA or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute the various illustrative logical blocks, modules and circuits described in c...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


