CN105700917A - Method and apparatus for synchronizing DLL and database - Google Patents

Method and apparatus for synchronizing DLL and database Download PDF

Info

Publication number
CN105700917A
CN105700917A CN201610004575.XA CN201610004575A CN105700917A CN 105700917 A CN105700917 A CN 105700917A CN 201610004575 A CN201610004575 A CN 201610004575A CN 105700917 A CN105700917 A CN 105700917A
Authority
CN
China
Prior art keywords
dll
version
upgrade file
current version
data base
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610004575.XA
Other languages
Chinese (zh)
Inventor
肖祝川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN201610004575.XA priority Critical patent/CN105700917A/en
Publication of CN105700917A publication Critical patent/CN105700917A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a method and an apparatus for synchronizing a DLL and a database. The method comprises: pre-making a database upgrade file in a DLL; determining a current version of the DLL and a current version of the database; and determining whether the current version of the DLL matches the current version of the database, and if not, obtaining the database upgrade file from the DLL; and upgrading the database according to the database upgrade file. The present invention provides the method and apparatus for synchronizing a DLL and a database, so as to more easily synchronize the DLL and the database.

Description

A kind of method of DLL and database synchronization and device
Technical field
The present invention relates to field of computer technology, particularly to method and the device of a kind of DLL (DynamicLinkLibrary, dynamic link library) and database synchronization。
Background technology
In field of computer technology, DLL is one, and comprise can by multiple programs, the code simultaneously used and the storehouse of data。When calling DLL component, DLL component is likely to need to access data base, but, after DLL upgrades sometimes, data base does not carry out the upgrading of correspondence so that when calling DLL component, and DLL component occurs abnormal when accessing data base。In order to solve this problem, in prior art, by upgrading tool, manually upgrade DLL and data base respectively, so that DLL and database synchronization。Visible by foregoing description, in prior art, by more complicated for the method for DLL Yu database synchronization。
Summary of the invention
The invention provides a kind of method of DLL and database synchronization and device, it is possible to realize DLL synchronization with data base simplerly。
On the one hand, a kind of method that the invention provides DLL and database synchronization, including: prefab data storehouse upgrade file in DLL, also include:
S1: determine the current version of described DLL and the current version of data base;
S2: judge whether the current version of described DLL mates with the current version of described data base, if it does not match, perform S3;
S3: obtain described database upgrade file from described DLL, upgrades to described data base according to described database upgrade file。
Further, described prefab data storehouse upgrade file in DLL, including:
The database upgrade file that each version of prefabricated described DLL is corresponding in described DLL;
Described S3, including:
A1: determine the fit version of the described DLL matched with the current version of described data base;
A2: determine the intermediate releases of described DLL between the fit version of described DLL and the current version of described DLL;
A3: obtain the intermediate database upgrade file that each intermediate releases of described DLL is corresponding from described DLL, and the current database upgrade file that the current version of described DLL is corresponding;
A4: according to each intermediate database upgrade file and described current database upgrade file, described data base is upgraded。
Further, the method also includes: pre-set version sign table, and in described version sign table, storage has the matching relationship of the version number of DLL and the version number of data base;
The described database upgrade file that each version of prefabricated described DLL is corresponding in described DLL, including: the database upgrade file that the version number of each version of prefabricated described DLL is corresponding in described DLL;
Described S1, comprises determining that the current version number of described DLL and the current version number of data base;
Described S2, including: indicate the described matching relationship in table according to described version, it is judged that whether the current version number of described DLL mates with the current version number of described data base, if it does not match, perform A1;
Described A1, including:
The described matching relationship in table is indicated, it is determined that the fit version number of the fit version of the described DLL matched with the current version of described data base according to described version;
Described A2, including: indicate table according to described version, it is determined that the intermediate releases number of the described DLL between fit version number and the current version number of described DLL of described DLL;
Described A3, including:
The intermediate database upgrade file that each intermediate releases number of described DLL is corresponding is obtained from described DLL, and the current database upgrade file that the current version number of described DLL is corresponding。
Further, described S1, including: the current version of described DLL is determined according to the destructor function of described DLL。
Further, also include: using the described database upgrade file resource file as described DLL。
Further, described database upgrade file includes: the SQL file of database upgrade。
Further, described S2, including:
By the LOAD method of described DLL or destructor function, it is judged that whether the current version of described DLL mates with the current version of data base。
On the other hand, the invention provides the device of a kind of DLL and database synchronization, including:
Prefabricated unit, for prefab data storehouse upgrade file in DLL;
Determine unit, for determining the current version of described DLL and the current version of data base;
Judging unit, for judging whether the current version of described DLL mates with the current version of described data base, if do not mated, triggers upgrade unit;
Described upgrade unit, for obtaining described database upgrade file from described DLL, upgrades to described data base according to described database upgrade file。
Further, described prefabricated unit, for the database upgrade file that each version of prefabricated described DLL is corresponding in described DLL;
Described upgrade unit, including:
First determines subelement, for determining the fit version of the described DLL matched with the current version of described data base;
Second determines subelement, for determining the intermediate releases of the described DLL between the fit version of described DLL and the current version of described DLL;
Obtain subelement, the intermediate database upgrade file corresponding for obtaining each intermediate releases of described DLL from described DLL, and the current database upgrade file that the current version of described DLL is corresponding;
Upgrading subelement, for according to each intermediate database upgrade file and described current database upgrade file, upgrading to described data base。
Further, this device also includes:
Arranging unit, be used for arranging version sign table, in described version sign table, storage has the matching relationship of the version number of DLL and the version number of data base;
Described prefabricated unit, for the database upgrade file that the version number of each version of prefabricated described DLL is corresponding in described DLL;
Described determine unit, for determining the current version number of described DLL and the current version number of data base;
Described judging unit, for indicating the described matching relationship in table, it is judged that whether the current version number of described DLL mates with the current version number of described data base, if it does not match, trigger described first to determine subelement according to described version;
Described first determines subelement, for indicating the described matching relationship in table according to described version, it is determined that the fit version number of the fit version of the described DLL matched with the current version of described data base;
Described second determines subelement, for indicating table according to described version, it is determined that the intermediate releases number of the described DLL between fit version number and the current version number of described DLL of described DLL;
The current database upgrade file that the current version number of described acquisition subelement, the intermediate database upgrade file corresponding for obtaining each intermediate releases number of described DLL from described DLL, and described DLL is corresponding。
Further, described determine unit, for determining the current version of described DLL according to the destructor function of described DLL。
Further, this device also includes: converting unit, for using the described database upgrade file resource file as described DLL。
Further, described database upgrade file includes: the SQL file of database upgrade。
Further, described judging unit, it is used for the LOAD method by described DLL or destructor function, it is judged that whether the current version of described DLL mates with the current version of data base。
By a kind of DLL provided by the invention method with database synchronization and device, by prefabricated for database upgrade file in DLL, whether the current version of current version with data base by judging DLL mates determines whether database upgrade, when not mating, from DLL, obtain database upgrade file data base is upgraded, make DLL and database synchronization, without being upgraded by special instrument, without manually upgrading, achieve DLL synchronization with data base simplerly。
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings。
Fig. 1 is a kind of DLL flow chart with the method for database synchronization of one embodiment of the invention offer;
Fig. 2 is the another kind of DLL flow chart with the method for database synchronization of one embodiment of the invention offer;
Fig. 3 is a kind of DLL schematic diagram with the device of database synchronization of one embodiment of the invention offer;
Fig. 4 is the another kind of DLL schematic diagram with the device of database synchronization of one embodiment of the invention offer。
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearly; below in conjunction with the accompanying drawing in the embodiment of the present invention; technical scheme in the embodiment of the present invention is clearly and completely described; obviously; described embodiment is a part of embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention; the every other embodiment that those of ordinary skill in the art obtain under the premise not making creative work, broadly falls into the scope of protection of the invention。
As it is shown in figure 1, a kind of method embodiments providing DLL and database synchronization, the method may comprise steps of:
S0: prefab data storehouse upgrade file in DLL;
S1: determine the current version of described DLL and the current version of data base;
S2: judge whether the current version of described DLL mates with the current version of described data base, if it does not match, perform S3;
S3: obtain described database upgrade file from described DLL, upgrades to described data base according to described database upgrade file。
By a kind of method embodiments providing DLL and database synchronization, by prefabricated for database upgrade file in DLL, whether the current version of current version with data base by judging DLL mates determines whether database upgrade, when not mating, from DLL, obtain database upgrade file data base is upgraded, make DLL and database synchronization, without being upgraded by special instrument, without manually upgrading, achieve DLL synchronization with data base simplerly。
In a kind of possible implementation, described prefab data storehouse upgrade file in DLL, including:
The database upgrade file that each version of prefabricated described DLL is corresponding in described DLL;
Described S3, including:
A1: determine the fit version of the described DLL matched with the current version of described data base;
A2: determine the intermediate releases of described DLL between the fit version of described DLL and the current version of described DLL;
A3: obtain the intermediate database upgrade file that each intermediate releases of described DLL is corresponding from described DLL, and the current database upgrade file that the current version of described DLL is corresponding;
A4: according to each intermediate database upgrade file and described current database upgrade file, described data base is upgraded。
Owing to DLL needs Tong Bu upgrading with data base, will not there is exception in such guarantee, therefore, each version of DLL has the database upgrade file of correspondence when calling DLL。When differing multiple version between the current version and the current version of data base of DLL, it is necessary to the version of current data base is carried out the upgrading of version one by one, until being upgraded to the version that the current version with DLL matches。For example, the current version of data base is version 1.0, the current version of DLL is edition 4 .0, the version of the DLL matched with the current version of data base is version 1.0, between version 1.0 to edition 4 .0, also has version 2 .0 and version 3 .0, therefore, when upgrade database, it is necessary to pass sequentially through the database upgrade file corresponding for version 2 .0 of DLL, the database upgrade file corresponding for version 3 .0 of DLL, DLL database upgrade file corresponding for edition 4 .0 data base is upgraded。
In a kind of possible implementation, the method also includes: pre-set version sign table, and in described version sign table, storage has the matching relationship of the version number of DLL and the version number of data base;
The described database upgrade file that each version of prefabricated described DLL is corresponding in described DLL, including: the database upgrade file that the version number of each version of prefabricated described DLL is corresponding in described DLL;
Described S1, comprises determining that the current version number of described DLL and the current version number of data base;
Described S2, including: indicate the described matching relationship in table according to described version, it is judged that whether the current version number of described DLL mates with the current version number of described data base, if it does not match, perform A1;
Described A1, including:
The described matching relationship in table is indicated, it is determined that the fit version number of the fit version of the described DLL matched with the current version of described data base according to described version;
Described A2, including: indicate table according to described version, it is determined that the intermediate releases number of the described DLL between fit version number and the current version number of described DLL of described DLL;
Described A3, including:
The intermediate database upgrade file that each intermediate releases number of described DLL is corresponding is obtained from described DLL, and the current database upgrade file that the current version number of described DLL is corresponding。
In this implementation, identify version by version number, each version of DLL by unique version number as mark, each version of data base by unique version number as mark。Above-mentioned matching relationship refers to that the version number of DLL corresponding in version sign table and the version number of data base match。For example, it is as shown in table 1 that a kind of version indicates table, in this implementation, the version number of the DLL matched can be adopted identical version number with the version number of data base, such as: the version A of DLL and the version B of data base matches, then the version number of the version number of the version A of DLL and the version B of data base can be disposed as 3.0.5801.30364。
Table 1
In order to determine the current version of DLL as soon as possible, in a kind of possible implementation, described S1, including: the current version of described DLL is determined according to the destructor function of described DLL。
In a kind of possible implementation, the method also includes: using the described database upgrade file resource file as described DLL。By this implementation, it is possible to the DLL of database upgrade file with corresponding version is bound。
In a kind of possible implementation, described database upgrade file includes: the SQL file of database upgrade。In this implementation, the SQL file of database upgrade includes the SQL for database upgrade。Specifically, the SQL file of database upgrade can include code below:
--DBVERSION2.0.4365
alterTABLESDSYSFILTERADDSDSYSFILTER_SQLvarchar(2000)null
go
--DBVERSION2.0.4426
UpdateSDSYSBUTTONsetSDSYSBUTTON_CL='0'whereSDSYSBUTTON_C Lisnull
go
--DBVERSION2.0.4617
AltertableSDSYSLISTITEMADDSDSYSLISTITEM_GBCOLORvarchar (255) NULL/* background color arrange */
go
--DBVERSION2.0.4652
AltertableSDSYSLISTADDSDSYSLIST_GNBH_URLvarchar (40) NULL/* joint investigation address ID */
go
AltertableSDSYSLISTADDSDSYSLIST_TITLE_URLvarchar (40) NULL/* joint investigation address head */
go
--DBVERSION3.0.5484
AltertableSDSYSLISTADDSDSYSLIST_SKEYvarchar (200) NULL/* sign */
go
--DBVERSION3.0.5513
alterTABLESDSYSFILTERADDSDSYSFILTER_TIPvarchar(100)null
go
In a kind of possible implementation, described S2, including:
By the LOAD method of described DLL or destructor function, it is judged that whether the current version of described DLL mates with the current version of data base。Specifically, it is possible to realized by code below:
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with drawings and the specific embodiments, the present invention is described in further detail。
As in figure 2 it is shown, a kind of method embodiments providing DLL and database synchronization, the method may comprise steps of:
Step 201: the database upgrade file that the version number of each version of prefabricated described DLL is corresponding in described DLL, pre-sets version sign table, and in described version sign table, storage has the matching relationship of the version number of DLL and the version number of data base。
Wherein, version sign table can be saved in data base。
Step 202: determine the current version number of described DLL and the current version number of data base。
Step 203: indicate the described matching relationship in table according to described version, it is judged that whether the current version number of described DLL mates with the current version number of described data base, if it does not match, perform step 204。
If it does, then follow-up service logic can be continued。It is to say, user can normally use DLL and data base。
Step 204: indicate the described matching relationship in table according to described version, it is determined that the fit version number of the fit version of the described DLL matched with the current version of described data base。
Step 205: indicate table according to described version, it is determined that the intermediate releases number of the described DLL between fit version number and the current version number of described DLL of described DLL。
Step 206: obtain the intermediate database upgrade file that each intermediate releases number of described DLL is corresponding from described DLL, and the current database upgrade file that the current version number of described DLL is corresponding。
Step 207: according to each intermediate database upgrade file and described current database upgrade file, described data base is upgraded。
As shown in Figure 3, Figure 4, the device of a kind of DLL and database synchronization is embodiments provided。Device embodiment can be realized by software, it is also possible to is realized by the mode of hardware or software and hardware combining。Say from hardware view; as shown in Figure 3; a kind of DLL provided for the embodiment of the present invention and a kind of hardware structure diagram of the device place equipment of database synchronization; except the processor shown in Fig. 3, internal memory, network interface and nonvolatile memory; in embodiment, the equipment at device place generally can also include other hardware, such as the forwarding chip etc. of responsible process message。Implemented in software for example, as shown in Figure 4, as the device on a logical meaning, it is that computer program instructions corresponding in nonvolatile memory is read to run in internal memory and formed by the CPU by its place equipment。A kind of DLL of the present embodiment offer and the device of database synchronization, including:
Prefabricated unit 401, for prefab data storehouse upgrade file in DLL;
Determine unit 402, for determining the current version of described DLL and the current version of data base;
Judging unit 403, for judging whether the current version of described DLL mates with the current version of described data base, if do not mated, triggers upgrade unit 404;
Described upgrade unit 404, for obtaining described database upgrade file from described DLL, upgrades to described data base according to described database upgrade file。
In a kind of possible implementation, described prefabricated unit 401, for the database upgrade file that each version of prefabricated described DLL is corresponding in described DLL;
Described upgrade unit 404, including:
First determines subelement, for determining the fit version of the described DLL matched with the current version of described data base;
Second determines subelement, for determining the intermediate releases of the described DLL between the fit version of described DLL and the current version of described DLL;
Obtain subelement, the intermediate database upgrade file corresponding for obtaining each intermediate releases of described DLL from described DLL, and the current database upgrade file that the current version of described DLL is corresponding;
Upgrading subelement, for according to each intermediate database upgrade file and described current database upgrade file, upgrading to described data base。
In a kind of possible implementation, this device also includes:
Arranging unit, be used for arranging version sign table, in described version sign table, storage has the matching relationship of the version number of DLL and the version number of data base;
Described prefabricated unit 401, for the database upgrade file that the version number of each version of prefabricated described DLL is corresponding in described DLL;
Described determine unit 402, for determining the current version number of described DLL and the current version number of data base;
Described judging unit 403, for indicating the described matching relationship in table, it is judged that whether the current version number of described DLL mates with the current version number of described data base, if it does not match, trigger described first to determine subelement according to described version;
Described first determines subelement, for indicating the described matching relationship in table according to described version, it is determined that the fit version number of the fit version of the described DLL matched with the current version of described data base;
Described second determines subelement, for indicating table according to described version, it is determined that the intermediate releases number of the described DLL between fit version number and the current version number of described DLL of described DLL;
The current database upgrade file that the current version number of described acquisition subelement, the intermediate database upgrade file corresponding for obtaining each intermediate releases number of described DLL from described DLL, and described DLL is corresponding。
In a kind of possible implementation, described determine unit 402, for determining the current version of described DLL according to the destructor function of described DLL。
In a kind of possible implementation, this device also includes: converting unit, for using the described database upgrade file resource file as described DLL。
In a kind of possible implementation, described database upgrade file includes: the SQL file of database upgrade。
In a kind of possible implementation, described judging unit 403, it is used for the LOAD method by described DLL or destructor function, it is judged that whether the current version of described DLL mates with the current version of data base。
The contents such as the information between each unit in said apparatus is mutual, execution process, due to the inventive method embodiment based on same design, particular content referring to the narration in the inventive method embodiment, can repeat no more herein。
A kind of DLL of embodiment of the present invention offer and the method for database synchronization and device, have the advantages that
1, by embodiments providing method and the device of a kind of DLL and database synchronization, by prefabricated for database upgrade file in DLL, whether the current version of current version with data base by judging DLL mates determines whether database upgrade, when not mating, from DLL, obtain database upgrade file data base is upgraded, make DLL and database synchronization, without being upgraded by special instrument, without manually upgrading, achieve DLL synchronization with data base simplerly。
2, by embodiments providing method and the device of a kind of DLL and database synchronization, the current version of DLL is determined according to the destructor function of DLL, it is possible to accelerate to obtain the speed of the current version of DLL。
3, by embodiments providing method and the device of a kind of DLL and database synchronization, when using DLL, the DLL judgement whether mated with data base is first carried out, when not mating, data base is upgraded so that the two matches, it is to avoid occur abnormal when using DLL。
It should be noted that, in this article, the relational terms of such as first and second etc is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially。And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment。When there is no more restriction, statement " including a 〃 〃 〃 〃 〃 〃 " key element limited, it is not excluded that there is also other same factor in including the process of described key element, method, article or equipment。
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in the storage medium of embodied on computer readable, this program upon execution, performs to include the step of said method embodiment;And aforesaid storage medium includes: in the various media that can store program code such as ROM, RAM, magnetic disc or CD。
Last it should be understood that the foregoing is only presently preferred embodiments of the present invention, it is merely to illustrate technical scheme, is not intended to limit protection scope of the present invention。All make within the spirit and principles in the present invention any amendment, equivalent replacement, improvement etc., be all contained in protection scope of the present invention。

Claims (10)

1. the method for a dynamic link library (DLL) and database synchronization, it is characterised in that including: prefab data storehouse upgrade file in DLL, also include:
S1: determine the current version of described DLL and the current version of data base;
S2: judge whether the current version of described DLL mates with the current version of described data base, if it does not match, perform S3;
S3: obtain described database upgrade file from described DLL, upgrades to described data base according to described database upgrade file。
2. method according to claim 1, it is characterised in that described prefab data storehouse upgrade file in DLL, including:
The database upgrade file that each version of prefabricated described DLL is corresponding in described DLL;
Described S3, including:
A1: determine the fit version of the described DLL matched with the current version of described data base;
A2: determine the intermediate releases of described DLL between the fit version of described DLL and the current version of described DLL;
A3: obtain the intermediate database upgrade file that each intermediate releases of described DLL is corresponding from described DLL, and the current database upgrade file that the current version of described DLL is corresponding;
A4: according to each intermediate database upgrade file and described current database upgrade file, described data base is upgraded。
3. method according to claim 2, it is characterised in that also include: pre-set version sign table, in described version sign table, storage has the matching relationship of the version number of DLL and the version number of data base;
The described database upgrade file that each version of prefabricated described DLL is corresponding in described DLL, including: the database upgrade file that the version number of each version of prefabricated described DLL is corresponding in described DLL;
Described S1, comprises determining that the current version number of described DLL and the current version number of data base;
Described S2, including: indicate the described matching relationship in table according to described version, it is judged that whether the current version number of described DLL mates with the current version number of described data base, if it does not match, perform A1;
Described A1, including:
The described matching relationship in table is indicated, it is determined that the fit version number of the fit version of the described DLL matched with the current version of described data base according to described version;
Described A2, including: indicate table according to described version, it is determined that the intermediate releases number of the described DLL between fit version number and the current version number of described DLL of described DLL;
Described A3, including:
The intermediate database upgrade file that each intermediate releases number of described DLL is corresponding is obtained from described DLL, and the current database upgrade file that the current version number of described DLL is corresponding。
4. method according to claim 1, it is characterised in that described S1, including: the current version of described DLL is determined according to the destructor function of described DLL;
And/or,
Also include: using the described database upgrade file resource file as described DLL。
5. according to described method arbitrary in claim 1-4, it is characterised in that described database upgrade file includes: the SQL file of database upgrade;
And/or,
Described S2, including:
By the LOAD method of described DLL or destructor function, it is judged that whether the current version of described DLL mates with the current version of data base。
6. the device of a dynamic link library (DLL) and database synchronization, it is characterised in that including:
Prefabricated unit, for prefab data storehouse upgrade file in DLL;
Determine unit, for determining the current version of described DLL and the current version of data base;
Judging unit, for judging whether the current version of described DLL mates with the current version of described data base, if do not mated, triggers upgrade unit;
Described upgrade unit, for obtaining described database upgrade file from described DLL, upgrades to described data base according to described database upgrade file。
7. device according to claim 6, it is characterised in that described prefabricated unit, for the database upgrade file that each version of prefabricated described DLL is corresponding in described DLL;
Described upgrade unit, including:
First determines subelement, for determining the fit version of the described DLL matched with the current version of described data base;
Second determines subelement, for determining the intermediate releases of the described DLL between the fit version of described DLL and the current version of described DLL;
Obtain subelement, the intermediate database upgrade file corresponding for obtaining each intermediate releases of described DLL from described DLL, and the current database upgrade file that the current version of described DLL is corresponding;
Upgrading subelement, for according to each intermediate database upgrade file and described current database upgrade file, upgrading to described data base。
8. device according to claim 7, it is characterised in that also include:
Arranging unit, be used for arranging version sign table, in described version sign table, storage has the matching relationship of the version number of DLL and the version number of data base;
Described prefabricated unit, for the database upgrade file that the version number of each version of prefabricated described DLL is corresponding in described DLL;
Described determine unit, for determining the current version number of described DLL and the current version number of data base;
Described judging unit, for indicating the described matching relationship in table, it is judged that whether the current version number of described DLL mates with the current version number of described data base, if it does not match, trigger described first to determine subelement according to described version;
Described first determines subelement, for indicating the described matching relationship in table according to described version, it is determined that the fit version number of the fit version of the described DLL matched with the current version of described data base;
Described second determines subelement, for indicating table according to described version, it is determined that the intermediate releases number of the described DLL between fit version number and the current version number of described DLL of described DLL;
The current database upgrade file that the current version number of described acquisition subelement, the intermediate database upgrade file corresponding for obtaining each intermediate releases number of described DLL from described DLL, and described DLL is corresponding。
9. device according to claim 6, it is characterised in that described determine unit, for determining the current version of described DLL according to the destructor function of described DLL;
And/or,
This device also includes: converting unit, for using the described database upgrade file resource file as described DLL。
10. according to described device arbitrary in claim 6-9, it is characterised in that described database upgrade file includes: the SQL file of database upgrade;
And/or,
Described judging unit, is used for the LOAD method by described DLL or destructor function, it is judged that whether the current version of described DLL mates with the current version of data base。
CN201610004575.XA 2016-01-04 2016-01-04 Method and apparatus for synchronizing DLL and database Pending CN105700917A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610004575.XA CN105700917A (en) 2016-01-04 2016-01-04 Method and apparatus for synchronizing DLL and database

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610004575.XA CN105700917A (en) 2016-01-04 2016-01-04 Method and apparatus for synchronizing DLL and database

Publications (1)

Publication Number Publication Date
CN105700917A true CN105700917A (en) 2016-06-22

Family

ID=56226080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610004575.XA Pending CN105700917A (en) 2016-01-04 2016-01-04 Method and apparatus for synchronizing DLL and database

Country Status (1)

Country Link
CN (1) CN105700917A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528780A (en) * 2016-11-08 2017-03-22 努比亚技术有限公司 Network database updating method and mobile terminal
CN107357907A (en) * 2017-07-17 2017-11-17 郑州云海信息技术有限公司 A kind of database upgrade method and device for supporting cross-version
CN108595167A (en) * 2018-03-16 2018-09-28 深圳极智联合科技股份有限公司 A kind of procedure management method and system based on SQL Server
CN109634634A (en) * 2018-12-12 2019-04-16 浪潮(北京)电子信息产业有限公司 A kind of BMC firmware upgrade method, device and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794222A (en) * 2010-01-13 2010-08-04 腾讯科技(深圳)有限公司 Software version collecting method, management system and software upgrading detection method and system
CN102419712A (en) * 2011-12-28 2012-04-18 北京华环电子股份有限公司 Method and device for upgrading client software
CN102495733A (en) * 2011-12-08 2012-06-13 方正国际软件有限公司 Methods for detecting compatibility of application program and relevant database script and performing upgrading maintenance on application program and relevant database script
WO2013149460A1 (en) * 2012-04-01 2013-10-10 广东欧珀移动通信有限公司 Over the air upgrade method for continuous increment of android handheld device
CN104052818A (en) * 2014-06-27 2014-09-17 青岛海信移动通信技术股份有限公司 Version upgrade method and device for mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794222A (en) * 2010-01-13 2010-08-04 腾讯科技(深圳)有限公司 Software version collecting method, management system and software upgrading detection method and system
CN102495733A (en) * 2011-12-08 2012-06-13 方正国际软件有限公司 Methods for detecting compatibility of application program and relevant database script and performing upgrading maintenance on application program and relevant database script
CN102419712A (en) * 2011-12-28 2012-04-18 北京华环电子股份有限公司 Method and device for upgrading client software
WO2013149460A1 (en) * 2012-04-01 2013-10-10 广东欧珀移动通信有限公司 Over the air upgrade method for continuous increment of android handheld device
CN104052818A (en) * 2014-06-27 2014-09-17 青岛海信移动通信技术股份有限公司 Version upgrade method and device for mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528780A (en) * 2016-11-08 2017-03-22 努比亚技术有限公司 Network database updating method and mobile terminal
CN106528780B (en) * 2016-11-08 2021-01-26 努比亚技术有限公司 Network database upgrading method and mobile terminal
CN107357907A (en) * 2017-07-17 2017-11-17 郑州云海信息技术有限公司 A kind of database upgrade method and device for supporting cross-version
CN108595167A (en) * 2018-03-16 2018-09-28 深圳极智联合科技股份有限公司 A kind of procedure management method and system based on SQL Server
CN109634634A (en) * 2018-12-12 2019-04-16 浪潮(北京)电子信息产业有限公司 A kind of BMC firmware upgrade method, device and terminal

Similar Documents

Publication Publication Date Title
US10908925B2 (en) Dynamic loading method, and target file creation method and apparatus
US8887135B2 (en) Generating test cases for functional testing of a software application
CN107122368B (en) Data verification method and device and electronic equipment
US20150186161A1 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
EP3185027B1 (en) Information processing method and device and computer storage medium
CN107741903A (en) Application compatibility method of testing, device, computer equipment and storage medium
CN105700917A (en) Method and apparatus for synchronizing DLL and database
WO2018040270A1 (en) Method and device for loading linux-system elf file in windows system
CN105468373A (en) Branch merging method and device
CN103593281A (en) Test system and test method
US20160246709A1 (en) Source code unit testing using an indexing tool
CN111615688A (en) Assertion verification code binding method and device
US10175958B2 (en) Acquiring identification of an application lifecycle management entity associated with similar code
CN112463596B (en) Test case data processing method, device and equipment and processing equipment
CN114816772B (en) Debugging method, debugging system and computing device for application running based on compatible layer
CN115757172A (en) Test execution method and device, storage medium and computer equipment
CN113805861B (en) Code generation method based on machine learning, code editing system and storage medium
CN107766228B (en) Multi-language-based automatic testing method and device
CN106844205B (en) Driver debugging method and system
CN112003837A (en) Intelligent equipment adaptation method and device based on Modbus protocol and storage medium
CN113885963B (en) Secondary development file execution method, device and storage medium
JP2015011685A (en) Business rule management system and business rule management method
CN113722208B (en) Project progress verification method and device for software test report
CN116580748B (en) Configuration method, device, equipment and storage medium of memory chip test fixture
CN112541182B (en) Kernel VFS layer system repairing method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160622