CN115993981A - Data processing method, device, electronic equipment and computer readable medium - Google Patents

Data processing method, device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN115993981A
CN115993981A CN202310027335.1A CN202310027335A CN115993981A CN 115993981 A CN115993981 A CN 115993981A CN 202310027335 A CN202310027335 A CN 202310027335A CN 115993981 A CN115993981 A CN 115993981A
Authority
CN
China
Prior art keywords
database
program data
version
information
data
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
CN202310027335.1A
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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202310027335.1A priority Critical patent/CN115993981A/en
Publication of CN115993981A publication Critical patent/CN115993981A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a data processing method, a data processing device, electronic equipment and a computer readable medium, and relates to the technical field of big data processing, and one specific embodiment comprises the steps of receiving a data processing request and acquiring corresponding first program data and database parameter identification; generating second program data according to the first program data and the database parameter identification; responding to the existence of a database corresponding to the second program data in the target container, and acquiring version dependent information in the database; and performing an upgrade processing procedure for the first program data based on the version-dependent information. Therefore, the version dependency relationship required by data upgrading can be rapidly and accurately acquired, and the data is efficiently and easily upgraded based on each dependent version acquired from the version dependency relationship and the execution sequence of the dependent version.

Description

Data processing method, device, electronic equipment and computer readable medium
Technical Field
The present disclosure relates to the field of big data processing technologies, and in particular, to a data processing method, a device, an electronic apparatus, and a computer readable medium.
Background
In the development process of some projects, the version of the database needs to be kept stable in updating, convenient to migrate, consistent in data structure of the new database and the source database, and the like. But various types of sql files are contained in one online database version, so that the upgrade script involves sequential execution operations and batch update code table operations. The structure operation of the database is prioritized over the data operation of the table, and the batch updating script needs to consider the hierarchy information of the table and the like. The efficiency and accuracy of upgrading script data by a software client used for synchronizing the current code version are low.
Disclosure of Invention
In view of this, the embodiments of the present application provide a data processing method, apparatus, electronic device, and computer readable medium, which can solve the problem of low efficiency and accuracy in upgrading script data in the prior art.
To achieve the above object, according to one aspect of the embodiments of the present application, there is provided a data processing method, including:
receiving a data processing request, and acquiring corresponding first program data and a database parameter identifier;
generating second program data according to the first program data and the database parameter identification;
responding to the existence of a database corresponding to the second program data in the target container, and acquiring version dependent information in the database;
and performing an upgrade processing procedure for the first program data based on the version-dependent information.
Optionally, generating the second program data includes:
positioning judgment condition items in the first program data;
and inserting the database parameter identification into the judging condition item to generate second program data.
Optionally, before the version dependent information in the database is obtained, the method further comprises:
and positioning the custom item definition table, and further determining the custom item definition table as a target container.
Optionally, obtaining version dependent information in the database includes:
acquiring current version information from a database;
version dependency information between the current version and other versions in the database is obtained based on the current version information.
Optionally, performing an upgrade processing procedure for the first program data includes:
and in response to receiving the upgrade failure information, modifying and updating the upgrade processing process based on the upgrade failure information, and executing the updated upgrade processing process.
Optionally, performing an upgrade processing procedure for the first program data includes:
and updating the version state of the first program data in response to receiving the upgrade success information.
Optionally, performing an upgrade processing procedure for the first program data includes:
acquiring database connection information corresponding to a database and version configuration information corresponding to first program data;
and calling a corresponding execution method according to the database connection information, the version configuration information and the version dependency information to execute the upgrading processing process of the first program data.
In addition, the application also provides a data processing device, which comprises:
the receiving unit is configured to receive a data processing request and acquire corresponding first program data and database parameter identifiers;
a second program data generating unit configured to generate second program data based on the first program data and the database parameter identification;
an acquisition unit configured to acquire version-dependent information in a database corresponding to second program data in response to the presence of the database in the target container;
and a data processing unit configured to execute an upgrade processing process for the first program data based on the version-dependent information.
Optionally, the second program data generating unit is further configured to:
positioning judgment condition items in the first program data;
and inserting the database parameter identification into the judging condition item to generate second program data.
Optionally, the apparatus further comprises a target container determining unit configured to:
and positioning the custom item definition table, and further determining the custom item definition table as a target container.
Optionally, the acquisition unit is further configured to:
acquiring current version information from a database;
version dependency information between the current version and other versions in the database is obtained based on the current version information.
Optionally, the data processing unit is further configured to:
and in response to receiving the upgrade failure information, modifying and updating the upgrade processing process based on the upgrade failure information, and executing the updated upgrade processing process.
Optionally, the data processing unit is further configured to:
and updating the version state of the first program data in response to receiving the upgrade success information.
Optionally, the data processing unit is further configured to:
acquiring database connection information corresponding to a database and version configuration information corresponding to first program data;
and calling a corresponding execution method according to the database connection information, the version configuration information and the version dependency information to execute the upgrading processing process of the first program data.
In addition, the application also provides data processing electronic equipment, which comprises: one or more processors; and a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the data processing method as described above.
In addition, the application also provides a computer readable medium, on which a computer program is stored, which when executed by a processor implements a data processing method as described above.
To achieve the above object, according to yet another aspect of the embodiments of the present application, a computer program product is provided.
A computer program product of an embodiment of the present application includes a computer program, which when executed by a processor implements a data processing method provided by the embodiment of the present application.
One embodiment of the above invention has the following advantages or benefits: the method comprises the steps of obtaining corresponding first program data and database parameter identifiers by receiving a data processing request; generating second program data according to the first program data and the database parameter identification; responding to the existence of a database corresponding to the second program data in the target container, and acquiring version dependent information in the database; and performing an upgrade processing procedure for the first program data based on the version-dependent information. Therefore, the version dependency relationship required by data upgrading can be rapidly and accurately acquired, and the data is efficiently and easily upgraded based on each dependent version acquired from the version dependency relationship and the execution sequence of the dependent version.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the present application and are not to be construed as unduly limiting the present application. Wherein:
FIG. 1 is a schematic diagram of the main flow of a data processing method according to one embodiment of the present application;
FIG. 2 is a schematic diagram of the main flow of a data processing method according to one embodiment of the present application;
FIG. 3 is a schematic diagram of the main flow of a data processing method according to one embodiment of the present application;
FIG. 4 is a schematic flow diagram of a data processing method according to one embodiment of the present application;
FIG. 5 is a schematic diagram of the main units of a data processing apparatus according to an embodiment of the present application;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present application may be applied;
fig. 7 is a schematic diagram of a computer system suitable for use in implementing the terminal device or server of the embodiments of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one 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 present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness. In the technical scheme of the application, the aspects of acquisition, analysis, use, transmission, storage and the like of the related user personal information all meet the requirements of related laws and regulations, are used for legal and reasonable purposes, are not shared, leaked or sold outside the aspects of legal use and the like, and are subjected to supervision and management of a supervision department. Necessary measures should be taken for the personal information of the user to prevent illegal access to such personal information data, ensure that personnel having access to the personal information data comply with the regulations of the relevant laws and regulations, and ensure the personal information of the user. Once these user personal information data are no longer needed, the risk should be minimized by limiting or even prohibiting the data collection and/or deletion.
User privacy is protected by de-identifying data when used, including in some related applications, such as by removing a particular identifier, controlling the amount or specificity of stored data, controlling how data is stored, and/or other methods.
FIG. 1 is a schematic diagram of the main flow of a data processing method according to an embodiment of the present application, as shown in FIG. 1, the data processing method includes:
step S101, a data processing request is received, and corresponding first program data and database parameter identifiers are obtained.
In this embodiment, the execution body (for example, may be a server) of the data processing method may receive the data processing request by means of a wired connection or a wireless connection. The data processing request may be, for example, a request to upgrade a version of the database. After receiving the data processing request, the executing body may acquire corresponding first program data, for example, script data start.sh of the current version, and may also acquire a database parameter identifier carried in the request, and specifically, the database parameter identifier may be, for example, a database name.
Step S102, generating second program data according to the first program data and the database parameter identification.
And generating second program data by means of character splicing, character matching and the like through the first program data and the database parameter identification. To perform a query operation of the database based on the second program data.
Step S103, in response to the existence of the database corresponding to the second program data in the target container, version dependency information in the database is acquired.
The target container may be, for example, a custom item definition table userdefs. Judging whether the custom item definition table userdefs contains a database corresponding to the second program data, for example, upgrading the corresponding database, and if so, acquiring the database connection.
Specifically, before the version dependent information in the database is acquired, the method further comprises: and positioning the custom item definition table, and further determining the custom item definition table as a target container. And determining the user-defined item definition table customized by the user as a target container.
Specifically, obtaining version dependent information in a database includes: acquiring current version information from a database; version dependency information between the current version and other versions in the database is obtained based on the current version information.
All version information associated with the current version information is obtained from the database as version dependent information between the current version and other versions in the database.
Step S104, based on the version dependency information, an upgrade processing process for the first program data is executed.
The execution body may acquire version numbers corresponding to the version-dependent information, and sort the version numbers to sequentially execute the upgrade processing process on the first program data based on the corresponding version numbers.
Specifically, an upgrade processing procedure for the first program data is performed, including: and in response to receiving the upgrade failure information, modifying and updating the upgrade processing process based on the upgrade failure information, and executing the updated upgrade processing process.
When the execution body receives the upgrade failure information, the upgrade failure information can be sent to the error reporting processing node, so that the error reporting processing node is triggered to call the repairing program to analyze the upgrade failure information, and the upgrade processing process is automatically modified and executed according to the analysis result.
Specifically, an upgrade processing procedure for the first program data is performed, including: and updating the version state of the first program data in response to receiving the upgrade success information. For example, after receiving the upgrade success information, a success identifier in the upgrade success information is obtained, and then the version status of the first program data is updated based on the success identifier to be
In the embodiment, a corresponding first program data and database parameter identification are obtained by receiving a data processing request; generating second program data according to the first program data and the database parameter identification; responding to the existence of a database corresponding to the second program data in the target container, and acquiring version dependent information in the database; and performing an upgrade processing procedure for the first program data based on the version-dependent information. Therefore, the version dependency relationship required by data upgrading can be rapidly and accurately acquired, and the data is efficiently and easily upgraded based on each dependent version acquired from the version dependency relationship and the execution sequence of the dependent version.
FIG. 2 is a schematic flow chart of a data processing method according to an embodiment of the present application, as shown in FIG. 2, the data processing method includes:
step S201, a data processing request is received, and corresponding first program data and database parameter identifiers are obtained.
The data processing request may be, for example, a request to upgrade a version of the database. After receiving the data processing request, the executing body may acquire corresponding first program data, for example, script data start.sh of the current version, and may also acquire a database parameter identifier carried in the request, and specifically, the database parameter identifier may be, for example, a database name.
Step S202, locating the judging condition item in the first program data.
The judging condition items in the first program data are used for inserting parameters to execute corresponding data inquiry according to the parameters.
Step S203, inserts the database parameter identifier into the judgment condition item to generate the second program data.
The parameter to be inserted in the first program data may be a database parameter, such as a database name. The judgment condition item of the database parameter inserted into the first program data can obtain second program data containing query sentences. The second program data may be used to query a database corresponding to the database parameters. Version dependent information corresponding to each program data may be stored in the database.
In step S204, in response to the database corresponding to the second program data being present in the target container, version dependency information in the database is acquired.
The target container may be a database set, or a table may be defined for a user-defined item, and the embodiment of the present application does not specifically limit the target container. When the execution subject detects that the target container contains the database corresponding to the second program data, version dependency information corresponding to the first program data in the database can be acquired.
Step S205, based on the version dependency information, executes an upgrade processing procedure for the first program data.
The upgrade processing process for the first program data may be sequentially executed according to the version number in the version-dependent information.
According to the embodiment of the invention, the version dependency relation required by data upgrading can be rapidly and accurately acquired, and the data is efficiently and easily upgraded based on each dependent version acquired from the version dependency relation and the execution sequence of the dependent version.
FIG. 3 is a schematic flow chart of a data processing method according to an embodiment of the present application, and as shown in FIG. 3, the data processing method includes:
step S301, a data processing request is received, and corresponding first program data and database parameter identifiers are obtained.
The data processing request may be, for example, a request to upgrade a version of the database. After receiving the data processing request, the executing body may acquire corresponding first program data, for example, script data start.sh of the current version, and may also acquire a database parameter identifier carried in the request, and specifically, the database parameter identifier may be, for example, a database name.
Step S302, locate the judgment condition item in the first program data.
For example, an item including if in the first program data is determined as a judgment condition item in the first program data.
Step S303, the database parameter identification is inserted into the judgment condition item to generate second program data.
And positioning judgment condition items in the first program data, and splicing database parameter identifiers, such as database names, with the judgment condition items to obtain corresponding second program data. The second program data is used to query whether the first program data has corresponding version dependency information.
Step S304, in response to the existence of the database corresponding to the second program data in the target container, version dependency information in the database is acquired.
The target container may be a database set, or a table may be defined for a user-defined item, and the embodiment of the present application does not specifically limit the target container. When the execution subject detects that the target container contains the database corresponding to the second program data, version dependency information corresponding to the first program data in the database can be acquired.
Step S305, obtaining database connection information corresponding to the database and version configuration information corresponding to the first program data.
And acquiring database connection information corresponding to a database corresponding to the second program data. The database connection information may be a database connection pool corresponding to the database, and the version configuration information corresponding to the first program data may be, for example, to which version the first program data needs to be upgraded.
Step S306, calling a corresponding execution method according to the database connection information, the version configuration information and the version dependency information to execute the upgrading processing process of the first program data.
The execution body may determine, according to the version configuration information, a target version to which the first program data is to be upgraded, and further call a corresponding connection in the database connection pool corresponding to the database connection information, so as to call a corresponding execution method according to the version dependency information to upgrade the first program data to the target version. Therefore, the version dependency relationship required by data upgrading can be rapidly and accurately acquired, and the data is efficiently and easily upgraded based on each dependent version acquired from the version dependency relationship and the execution sequence of the dependent version.
Fig. 4 is a schematic flow chart of a data processing method according to an embodiment of the present application. The data processing method is applied to the version upgrading scene. A set of synchronous upgrade scripts is written based on shell (Command Line Interface shell, namely command line shell), and the scripts comprise database version upgrade, new library construction, characteristic version upgrade, upgrade log viewing and the like. The db catalog mainly stores interaction scripts for processing the same database, and comprises two parts of data acquisition scripts and execution scripts. The logs directory is a running script log directory in which running logs of each batch are stored. The script directory is a master run directory that contains the primary script files needed to upgrade the database, including the acquired version, the batch upgrade script list, and so forth. The version data catalog is used for storing various characteristic and non-characteristic upgrade script files submitted by development, and is a catalog stored by the database script. The version info directory is used for storing urban administrative division, database connection, database upgrading mechanism, mechanism tid and version control information. And acquiring the dependence among the versions of the database and the connection information of the database according to the configuration files in the version info directory by combining the shell statements and the sql statements. The association and the inter-call between the sh scripts, as shown in the flowchart of fig. 4, show the whole process execution sequence of the upgrade script and the result after execution. Specifically, in the start.sh script, by using the name of the parameter of the database, character splicing and character matching are used to judge whether the custom item definition table userdefs contains the database corresponding to the ascending level, if so, the database connection is obtained. In the upgrade script, the execution method, such as the format of dmp, the format of sql, the format of sh, etc., needs to be determined according to the different scripts.
Firstly, a start.sh script (namely a script to be upgraded) is acquired, then a setting script setEnv.sh is called to set a database environment and a character set, and then an upgraded starting script upgrade_databash is called to judge an upgraded database according to parameters, further current version information is acquired from the database, then a return value acquisition script getOracleVal.sh is executed to process dependence among current versions and acquire a returned single-row value, and the database script exeOracleVal.sh is executed only focusing on an operation result and not returning a specific value. Further executing version dependent scripts exedersonde. Sh, displaying the upgrade scripts to be executed, reading database connection information { database } -userdef. Txt, obtaining version configuration information userconf. Txt, further executing upgrade scripts upgrade_subsys. Sh according to configuration files, executing database scripts exeOracleval. Sh to update the executed version script state, obtaining prompt information, judging the next operation according to the prompt information, ending the version upgrade process in response to the success of the update, for example upgrade successfully, and returning to re-execute the version upgrade process in response to the failure of the update of the prompt information, for example upgrade unsuccessfully. The method for upgrading the version is high in efficiency and easy to expand by utilizing the splicing of the sql statement and the shell, has stronger adaptability, can monitor the upgrading process in real time in the process of upgrading the version, solves the problem according to the error reporting information, and improves the rate and the accuracy of version upgrading.
Fig. 5 is a schematic diagram of main units of a data processing apparatus according to an embodiment of the present application. As shown in fig. 5, the data processing apparatus 500 includes a receiving unit 501, a second program data generating unit 502, an acquiring unit 503, and a data processing unit 504.
The receiving unit 501 is configured to receive a data processing request, and obtain corresponding first program data and database parameter identification.
The second program data generating unit 502 is configured to generate the second program data based on the first program data and the database parameter identification.
An obtaining unit 503 configured to obtain version dependency information in a database corresponding to the second program data in response to the database being present in the target container.
The data processing unit 504 is configured to execute an upgrade processing process for the first program data based on the version-dependent information.
In some embodiments, the second program data generating unit 502 is further configured to: positioning judgment condition items in the first program data; and inserting the database parameter identification into the judging condition item to generate second program data.
In some embodiments, the data processing apparatus further comprises a target container determination unit, not shown in fig. 5, configured to: and positioning the custom item definition table, and further determining the custom item definition table as a target container.
In some embodiments, the acquisition unit 503 is further configured to: acquiring current version information from a database; version dependency information between the current version and other versions in the database is obtained based on the current version information.
In some embodiments, the data processing unit 504 is further configured to: and in response to receiving the upgrade failure information, modifying and updating the upgrade processing process based on the upgrade failure information, and executing the updated upgrade processing process.
In some embodiments, the data processing unit 504 is further configured to: and updating the version state of the first program data in response to receiving the upgrade success information.
In some embodiments, the data processing unit 504 is further configured to: acquiring database connection information corresponding to a database and version configuration information corresponding to first program data; and calling a corresponding execution method according to the database connection information, the version configuration information and the version dependency information to execute the upgrading processing process of the first program data.
Note that the data processing method and the data processing apparatus of the present application have a corresponding relationship in terms of implementation contents, and therefore, the description is not repeated.
Fig. 6 illustrates an exemplary system architecture 600 in which the data processing methods or data processing apparatus of embodiments of the present application may be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 is used as a medium to provide communication links between the terminal devices 601, 602, 603 and the server 605. The network 604 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 605 via the network 604 using the terminal devices 601, 602, 603 to receive or send messages, etc. Various communication client applications such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 601, 602, 603.
The terminal devices 601, 602, 603 may be various electronic devices having a data processing screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 605 may be a server providing various services, such as a background management server (by way of example only) providing support for data processing requests submitted by users using the terminal devices 601, 602, 603. The background management server can receive a data processing request and acquire corresponding first program data and database parameter identifiers; generating second program data according to the first program data and the database parameter identification; responding to the existence of a database corresponding to the second program data in the target container, and acquiring version dependent information in the database; and performing an upgrade processing procedure for the first program data based on the version-dependent information. Therefore, the version dependency relationship required by data upgrading can be rapidly and accurately acquired, and the data is efficiently and easily upgraded based on each dependent version acquired from the version dependency relationship and the execution sequence of the dependent version.
It should be noted that, the data processing method provided in the embodiment of the present application is generally executed by the server 605, and accordingly, the data processing apparatus is generally disposed in the server 605.
It should be understood that the number of terminal devices, networks and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to fig. 7, there is illustrated a schematic diagram of a computer system 700 suitable for use in implementing the terminal device of an embodiment of the present application. The terminal device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data required for the operation of the computer system 700 are also stored. The CPU701, ROM702, and RAM703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output section 707 including a Cathode Ray Tube (CRT), a liquid crystal credit authorization query processor (LCD), and the like, and a speaker, and the like; a storage section 708 including a hard disk or the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments disclosed herein include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 701.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware. The described units may also be provided in a processor, for example, described as: a processor includes a receiving unit, a second program data generating unit, an acquiring unit, and a data processing unit. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to receive a data processing request, obtain corresponding first program data and database parameter identification; generating second program data according to the first program data and the database parameter identification; responding to the existence of a database corresponding to the second program data in the target container, and acquiring version dependent information in the database; and performing an upgrade processing procedure for the first program data based on the version-dependent information.
The computer program product of the present application comprises a computer program which, when executed by a processor, implements the data processing method in the embodiments of the present application.
According to the technical scheme of the embodiment of the application, the version dependency relation required by data upgrading can be rapidly and accurately obtained, and the data can be efficiently and easily upgraded based on each dependent version obtained from the version dependency relation and the execution sequence of the dependent version.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (16)

1. A method of data processing, comprising:
receiving a data processing request, and acquiring corresponding first program data and a database parameter identifier;
generating second program data according to the first program data and the database parameter identifier;
responding to the existence of a database corresponding to the second program data in a target container, and acquiring version dependent information in the database;
and executing the upgrading processing process of the first program data based on the version dependent information.
2. The method of claim 1, wherein the generating the second program data comprises:
locating a judgment condition item in the first program data;
and inserting the database parameter identification into the judging condition item to generate second program data.
3. The method of claim 1, wherein prior to the obtaining version dependent information in the database, the method further comprises:
and positioning a custom item definition table, and further determining the custom item definition table as a target container.
4. The method of claim 1, wherein the obtaining version dependent information in the database comprises:
acquiring current version information from the database;
version dependency information between a current version and other versions in the database is obtained based on the current version information.
5. The method of claim 1, wherein the performing an upgrade process for the first program data comprises:
and in response to receiving the upgrade failure information, modifying and updating the upgrade processing process based on the upgrade failure information, and executing the updated upgrade processing process.
6. The method of claim 1, wherein the performing an upgrade process for the first program data comprises:
and updating the version state of the first program data in response to receiving upgrade success information.
7. The method of claim 1, wherein the performing an upgrade process for the first program data comprises:
acquiring database connection information corresponding to the database and version configuration information corresponding to the first program data;
and calling a corresponding execution method according to the database connection information, the version configuration information and the version dependency information to execute the upgrading processing process of the first program data.
8. A data processing apparatus, comprising:
the receiving unit is configured to receive a data processing request and acquire corresponding first program data and database parameter identifiers;
a second program data generating unit configured to generate second program data according to the first program data and the database parameter identification;
an acquisition unit configured to acquire version-dependent information in a database corresponding to the second program data in response to the presence of the database in a target container;
and a data processing unit configured to execute an upgrade processing process for the first program data based on the version dependency information.
9. The apparatus of claim 8, wherein the second program data generation unit is further configured to:
locating a judgment condition item in the first program data;
and inserting the database parameter identification into the judging condition item to generate second program data.
10. The apparatus according to claim 8, further comprising a target container determination unit configured to:
and positioning a custom item definition table, and further determining the custom item definition table as a target container.
11. The apparatus of claim 8, wherein the acquisition unit is further configured to:
acquiring current version information from the database;
version dependency information between a current version and other versions in the database is obtained based on the current version information.
12. The apparatus of claim 8, wherein the data processing unit is further configured to:
and in response to receiving the upgrade failure information, modifying and updating the upgrade processing process based on the upgrade failure information, and executing the updated upgrade processing process.
13. The apparatus of claim 8, wherein the data processing unit is further configured to:
and updating the version state of the first program data in response to receiving upgrade success information.
14. A data processing electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-7.
15. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-7.
16. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-7.
CN202310027335.1A 2023-01-09 2023-01-09 Data processing method, device, electronic equipment and computer readable medium Pending CN115993981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310027335.1A CN115993981A (en) 2023-01-09 2023-01-09 Data processing method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310027335.1A CN115993981A (en) 2023-01-09 2023-01-09 Data processing method, device, electronic equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN115993981A true CN115993981A (en) 2023-04-21

Family

ID=85994880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310027335.1A Pending CN115993981A (en) 2023-01-09 2023-01-09 Data processing method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN115993981A (en)

Similar Documents

Publication Publication Date Title
CN109492053B (en) Method and device for accessing data
CN110858172A (en) Automatic test code generation method and device
CN111126948A (en) Processing method and device for approval process
CN113760722A (en) Test system and test method
CN112988583A (en) Method and device for testing syntax compatibility of database
CN111488286B (en) Method and device for independently developing Android modules
CN109683942B (en) Script management method, script management device, script management medium and electronic equipment
CN116737662A (en) Method, device, electronic equipment and storage medium for processing business data
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN110580216B (en) Application lifting method and device
CN112100168A (en) Method and device for determining data association relationship
CN115543967A (en) Data migration method and device, electronic equipment and computer readable medium
CN110806967A (en) Unit testing method and device
CN115993981A (en) Data processing method, device, electronic equipment and computer readable medium
CN114489674A (en) Data verification method and device of dynamic data model
CN113420010A (en) Database management method and device, electronic equipment and storage medium
CN113535221A (en) Method and device for managing application version
CN113010174A (en) Service monitoring method and device
CN110727739B (en) Data storage method and device
CN113688152B (en) System function self-checking method and device
CN113495747B (en) Gray scale release method and device
CN115904474A (en) Data processing method and device, electronic equipment and computer readable medium
CN111596941B (en) Application updating method, device, electronic equipment and medium
CN113760921A (en) Method and device for creating dictionary value
CN110262756B (en) Method and device for caching data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination