Offline data updating method, system, storage medium and electronic device
By establishing data export, transmission and import service units in the Saas environment, the difficulty of cross-network environment upgrades when data is updated in the Saas environment is solved, data consistency and efficiency are improved, and personnel usage is reduced.
Patent Information
- Application Number
- CN202410069691.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-17
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-01-17
AI Technical Summary
In a SaaS deployment environment, when user data is modified, the application needs to be processed to ensure the final consistency of the data. Especially when the customer's network environment is isolated from the Internet, there are difficulties in upgrading the data and database structure, resulting in increased personnel usage and efficiency. low.
By establishing a data export service unit, file transfer unit and data import service unit, export the data definition language and data manipulation language of the target database, upload it to cloud storage, monitor and update the data, perform comparison and log rollback operations, and achieve cross-network environments Smooth data structure upgrades and eventual consistency.
It realizes offline data synchronization of user self-service and system automation, reduces personnel usage, and improves the efficiency of data update and system availability.
Smart Images

Figure CN117909346B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an offline data updating method, system, storage medium and electronic device. Background Art
[0002] In some SaaS deployment environments, when users have modified the original data, applications need to be processed to ensure the final consistency of user data. However, some customers' network environments are isolated from the Internet, which makes it difficult to upgrade application data. In this case, specialists are required to bring all data to the site for complex operations, and comprehensively upgrade multiple types of database structures, data, and applications during the upgrade to ensure the final consistency of data and system availability.
[0003] How to reduce the use of personnel and improve the upgrade efficiency of offline users is the problem that needs to be solved now. Summary of the invention
[0004] In view of this, the purpose of the present disclosure is to provide an offline data updating method, system, electronic device and storage medium, which solves the problem of how to improve the updating efficiency when offline users update data.
[0005] In order to achieve one of the above-mentioned disclosed purposes, the present disclosure provides a method for updating offline data, the method comprising: establishing a data export service unit, the data export service unit is used to create a description file, and is also used to export the data definition language, data manipulation language and folder in the target database, and upload them to cloud storage; establishing a file transfer unit; obtaining updated data in the cloud storage, and putting the updated data into the file transfer unit; establishing a data import service unit, the data import service unit is used to monitor whether there is data update on the file transfer unit, and in response to data update, import and read the update description file of the updated data; comparing and executing the data definition language of the source database and the data definition language of the target database, and updating the content of the data definition language; comparing and executing the data manipulation language of the source database and the data manipulation language of the target database, and updating the content of the data manipulation language; performing log rollback operations on the updated data definition language and the updated data manipulation language.
[0006] As a further improvement of an embodiment of the present disclosure, the establishment of the data export service unit also includes: selecting multiple databases; setting a plug-in interface, the plug-in interface adopts a standard socket protocol; and establishing the data export service unit according to the database and the plug-in interface.
[0007] As a further improvement of an implementation mode of the present disclosure, in response to data update, after importing and reading the update description file of the updated data, it includes: calling the non-source data plug-in corresponding to the database application registered in the update description file, and updating the data in multiple database applications.
[0008] As a further improvement of an embodiment of the present disclosure, the data export service unit is also used to export the data definition language, data manipulation language and folders in the target database, and also includes: the data export service unit is also used to export the data table structure in the data definition language according to the standard SQL schema; the data export service unit is also used to monitor and parse the Mysql binlog log according to the PostgreSql wal log, and export the data manipulation language; the data export service unit is also used to monitor the folders in each storage bucket according to the audit log of the minio system, monitor whether the folders are updated, and export the folders in response to the folder updates.
[0009] As a further improvement of an embodiment of the present disclosure, the obtaining of update data in the cloud storage and placing the update data into the file transfer unit includes: downloading the update data in the cloud storage and burning the update data to a disc; obtaining the burned data to a designated directory of the file transfer unit.
[0010] As a further improvement of an implementation mode of the present disclosure, the data export service unit is further used to: generate an export task according to the description file; and manage the export task according to user needs.
[0011] As a further improvement of an embodiment of the present disclosure, the comparison of the data definition language of the source database and the data definition language of the target database includes: comparing at least one of the fields, indexes, comments and sequences of the data definition language; comparing the data manipulation language of the source database and the data manipulation language of the target database includes: comparing at least one of the user adding fields, user deleting data and changing source data in the data manipulation language.
[0012] Based on the same inventive concept, the present disclosure also provides a system for predicting activity trajectories, including: a first establishment module, used to establish a data export service unit, the data export service unit is used to create a description file, and is also used to export the data definition language, data manipulation language and folder in the target database, and upload them to the cloud storage; a second establishment module, used to establish a file transfer unit; an acquisition module, used to obtain updated data in the cloud storage, and put the updated data into the file transfer unit; a third establishment module, used to establish a data import service unit, the data import service unit is used to monitor whether there is data update on the file transfer unit, and in response to data update, import and read the update description file of the updated data; a first comparison module, used to compare and execute the data definition language of the source database and the data definition language of the target database, and update the content of the data definition language; a second comparison module, used to compare and execute the data manipulation language of the source database and the data manipulation language of the target database, and update the content of the data manipulation language; a rollback module, used to perform log rollback operations on the updated data definition language and the updated data manipulation language.
[0013] Based on the same inventive concept, the present disclosure further provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute any of the above-mentioned offline data updating methods.
[0014] Based on the same inventive concept, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, an offline data updating method as described in any one of the above items is implemented.
[0015] Compared with the prior art, the technical effect of the present invention is that by establishing a data export service unit, a cultural transmission unit and a data import service unit, a smooth data structure across network environments is achieved, data upgrades are achieved, the final consistency of data is achieved, user self-service is achieved, and system automated data offline synchronization is achieved, ultimately reducing the use of personnel. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the implementation methods or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only implementation methods of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 A flow chart of an offline data updating method provided in one embodiment of the present disclosure;
[0018] Figure 2 A flowchart of establishing a data export service unit provided in another embodiment of the present disclosure;
[0019] Figure 3 A flowchart of transmitting update data provided by another embodiment of the present disclosure;
[0020] Figure 4 A schematic diagram of an offline data updating system provided in an embodiment of the present disclosure;
[0021] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0022] The present invention will be described in detail below in conjunction with the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, methodological, or functional changes made by a person skilled in the art based on these embodiments are all within the scope of protection of the present invention.
[0023] Embodiments It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects.
[0024] The present disclosure provides a method for updating offline data. Figure 1 As shown, the offline data updating method includes the following steps:
[0025] Step S100, establishing a data export service unit, wherein the data export service unit is used to create a description file, and is also used to export the data definition language, data manipulation language and folders in the target database, and upload them to the cloud storage.
[0026] Specifically, by establishing a data export service, the existing data in the system subscribed by the user is exported to obtain the existing data before the update. After obtaining the three source data of data definition language, data manipulation language and folder, the three source data are compressed and packaged for cloud storage. The data definition language, data manipulation language and the content in the folder include basic operations on the database, define the relational model of the database, and record the insertion, deletion, modification and other operations of the database.
[0027] In one possible implementation of the present disclosure, for step S100, Figure 2 As shown, it also includes:
[0028] Step S110, creating a description file.
[0029] Step S120: generating an export task according to the description file.
[0030] Step S130: managing the export task according to user needs.
[0031] Specifically, first create an export description file, generate export tasks regularly according to the content of the description file, and manage the specific content of the export tasks according to user needs, including but not limited to the data definition language, data manipulation language and folders described in the following steps.
[0032] The present disclosure discloses a possible implementation method, for step S100, further comprising:
[0033] Step S140: the data export service unit is further used to export the data table structure in the data definition language according to the standard SQL schema.
[0034] It should be noted that the abbreviation of data definition language is DDL, which is used to define the relationship model, delete the relationship, modify the relationship model, and create various objects in the database, such as tables, clusters, indexes, views, functions, stored procedures, and triggers. Data definition language is a language that is responsible for data structure definition and database object definition in SQL language.
[0035] Specifically, in SQL, a schema is a database object used to organize and manage data tables, views, stored procedures, etc. in a database. Schema can be understood as a directory or namespace of a database, which is used to organize objects in a database into logically related groups. In this embodiment, the data structure definition in the data definition language, that is, the data table structure, is exported.
[0036] By utilizing the standard SQL protocol, the data is divided into the data of the source database and the updated data of the target database. The standard SQL protocol is applied to the data export service unit and the data import service unit, thus realizing user self-service and system-automated offline data update with high efficiency.
[0037] Step S150, the data export service unit is further used to monitor and parse the Mysql binlog log according to the WAL log of PostgreSQL, and export the data manipulation language.
[0038] Specifically, the data manipulation language is referred to as DML, which is used to update the data records of the tables in the database. The WAL (Write-Ahead Logging) log is a logging mechanism in PostgreSQL, which is used to ensure the consistency and reliability of data. The WAL log records the order of database changes, including operations such as writing data pages, updating indexes, and committing transactions. By monitoring the content of the WAL log, you can obtain the content of the data update in the data manipulation language.
[0039] Step S160, the data export service unit is also used to monitor the folders in each storage bucket according to the audit log provided by the minio system, monitor whether the folders are updated, and export the folders in response to the folder updates.
[0040] Specifically, the minio system's audit log records all operations on buckets and objects, including upload, download, delete, copy, etc. Through the audit log, users can track and monitor data access and modification to ensure data security and compliance.
[0041] In one possible implementation of the present disclosure, step S100 further includes:
[0042] Step S170, selecting multiple databases.
[0043] Step S180, setting a plug-in interface, wherein the plug-in interface adopts a standard socket, and establishing the data export service unit according to the database, the S3 system and the plug-in interface.
[0044] Specifically, multiple databases, S3 systems and plug-in interfaces are units on a data export service unit. The data export service unit obtains data from multiple databases. The compressed data definition language, data manipulation language and folders in the data export service unit are stored in the S3 system.
[0045] It should be noted that the data export service unit is applied to the system in the form of a plug-in, or other services are applied to the data export service unit in the form of a plug-in. The plug-in interface and plug-in access of the data export service unit adopt a standard interface protocol. The standard interface protocol includes the plug-in function, plug-in address, storage category and call source.
[0046] Step S200: establishing a file transmission unit.
[0047] Specifically, a file transfer unit is established at the user. The abbreviation of the file transfer unit is FTP. FTP is used to transfer files between two computers. FTP is used to connect the user to the data export service unit and the data import service unit.
[0048] Step S300, obtaining updated data in the cloud storage, and putting the updated data into the file transfer unit.
[0049] Specifically, the update data may be a data definition language, a data manipulation language, and a folder in the data export service unit, or may be a structure file, a data file, and a picture / video file included in the description file and folder. After the data export service unit compresses and uploads the above update data to the cloud storage, the client obtains the above update data in the cloud storage.
[0050] In one possible implementation of the present disclosure, for step S300, Figure 3 As shown, it also includes:
[0051] Step 310, downloading the update data from the cloud storage and burning the update data to a disc.
[0052] Step 320, obtaining the updated data in the disc and transferring it to a designated directory of the file transfer unit.
[0053] Specifically, the user uses an external network machine to download and burn the desired update data into a disc, the user inputs the data on the disc, and the system obtains the disc data and puts it into a specified directory of the file transfer unit. This step enables the user to obtain the update data in an offline state.
[0054] Step S400, establishing a data import service unit, wherein the data import service unit is used to monitor whether there is data update on the file transfer unit, and in response to the data update, import and read the update description file of the updated data.
[0055] Specifically, the data import service unit automatically monitors whether there is any data update on the file transfer unit, that is, whether there is any file change. When the file is changed, it means that the data has been updated. The compressed file on the file transfer unit is downloaded and decompressed to the specified directory. After the file is decompressed, it contains the description file created in the data export unit. The description file is read to obtain the specific content of the updated data.
[0056] In addition, after the data import service unit responds to the data update, it obtains the time of the last data update of the system, and identifies whether the update file can be updated according to the update time requirements of different systems. After responding that the update file can be updated, it decompresses the file to the specified directory.
[0057] In one possible implementation of the present disclosure, after decompressing the file, a locking operation is performed to ensure that the data import service unit is executed serially. Locking is a synchronization mechanism used to ensure that only one thread or process can access shared resources or critical areas at any given time. Locking can prevent race conditions and data inconsistency and ensure the serial execution of threads or processes.
[0058] In one possible implementation of the present disclosure, after step S400, the following is further included:
[0059] Step S410: According to the non-source data plug-in corresponding to the database application registered in the update description file, the non-source data plug-in is called to update the data in the plurality of database applications.
[0060] Specifically, in this step, the non-source data plug-in is used to upload the updated data to multiple databases and provide them to the databases for use.
[0061] In some specific embodiments, the database applications include ES, Nebule, and Milvus. First, the non-source data plug-in corresponding to the application registered in the description file needs to be updated. The plug-in is a tool for performing data update operations. Use these non-source data plug-ins to update data for ES (Elasticsearch), Nebule, and Milvus. The data is extracted from the source system, processed and converted, and then written to the target database in batches or incrementally. Among them, ES (Elasticsearch) is an open source distributed search and analysis engine. Nebule refers to an artificial intelligence. Milvus is an open source vector database for storing and managing large-scale vector data.
[0062] The protocol and implementation process are defined. For various databases, the data structure can be connected to the system as long as the updated data can be obtained at a scheduled time, and data export and import can be automated. At the same time, it supports data updates of various relational databases in the form of plug-ins, which is highly scalable.
[0063] Step S500 : Compare and execute the data definition language of the source database and the data definition language of the target database, and update the content of the data definition language.
[0064] Specifically, firstly, the data definition language of the source database of the user system and the data definition language of the updated target database are executed, and the data definition language is changed.
[0065] In an implementation manner of the present disclosure, at least one of the fields, indexes, comments and sequences of the data definition language is compared.
[0066] Step S600: compare and execute the data manipulation language of the source database and the data manipulation language of the target database, and update the content of the data manipulation language.
[0067] Specifically, the data manipulation language of the original database of the user system and the data manipulation language of the updated target database are executed again to perform the change of the data manipulation language.
[0068] In an implementable manner of the present disclosure, the data manipulation language is compared with at least one of a user adding a field, a user deleting data, and a user changing source data.
[0069] Step S700: performing a log rollback operation on the updated data definition language and the updated data manipulation language.
[0070] Specifically, after executing the data definition language and the data manipulation language, a detailed operation log needs to be recorded for rollback operations. Rollback based on the log is used to restore or undo the previous operations so that the database can be transformed from one state to another. Rollback based on the log is achieved by using log files. The log file records the operations performed and the corresponding written data. When rollback is required, the database management system can gradually undo the previous operations according to the operation sequence recorded in the log file and put the database into the state after the updated data.
[0071] Through log rollback operations, the final consistency of the system is guaranteed, and the date and file name of the system after the data is updated have been successfully imported.
[0072] In one possible implementation of the present disclosure, the following further includes:
[0073] Step S800: Establish a query service unit to inform the user of the update result and the last update time.
[0074] In one possible implementation of the present disclosure, before step S100, the method further includes:
[0075] Step S101, define the entire architecture design, which includes the source database and storage engine, and uses the mainstream ER model as the source database. The user's data is used as the master data, and the data export service unit, file transfer unit, and data import service unit in the subsequent steps are registered in the system in the form of plug-ins. Through the universal structural design, smooth cross-network environment data structure and data update, final data consistency, and upgrade of various storage types are achieved.
[0076] Another embodiment of the present disclosure discloses a system for updating offline data, such as Figure 4 As shown, including:
[0077] The first establishment module 100 is used to establish a data export service unit, which is used to create a description file and export the data definition language, data manipulation language and folders in the target database and perform cloud storage.
[0078] The second establishing module 200 is used to establish a file transmission unit.
[0079] The acquisition module 300 is used to acquire the updated data in the cloud storage and put the updated data into the file transmission unit.
[0080] The third establishing module 400 is used to establish a data import service unit, and the data import service unit is used to monitor whether there is data update on the file transmission unit, and in response to the data update, import and read the update description file of the updated data.
[0081] The first comparison module 500 is used to compare the data definition language of the source database and the data definition language of the target database, and update the content of the data definition language.
[0082] The second comparison module 600 is used to compare the data manipulation language of the source database and the data manipulation language of the target database, and update the content of the data manipulation language.
[0083] The rollback module 700 is used to perform log rollback operations on updated data definition language and updated data manipulation language.
[0084] Based on the same inventive concept, corresponding to any of the above-mentioned implementation methods, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the offline data updating method described in any of the above implementation methods is implemented.
[0085] Figure 5 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0086] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the implementation methods of this specification.
[0087] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0088] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0089] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0090] The bus 1050 includes pathways that transmit information between the various components of the device (eg, the processor 1010 , the memory 1020 , the input / output interface 1030 , and the communication interface 1040 ).
[0091] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the implementation scheme of this specification, and does not necessarily include all the components shown in the figure.
[0092] The electronic device of the above-mentioned implementation is used to implement the corresponding offline data updating method in any of the above-mentioned implementations, and has the beneficial effects of the corresponding method implementation, which will not be described in detail here.
[0093] Based on the same inventive concept, corresponding to any of the above-mentioned implementation methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the offline data updating method described in any of the above implementation methods.
[0094] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0095] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the offline data updating method described in any of the above embodiments, and have the beneficial effects of the corresponding method implementation methods, which will not be repeated here.
[0096] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. This narrative style of the specification is only for the sake of clarity, and those skilled in the art should take the specification as a whole. Under the concept of the present disclosure, the above embodiments or the technical features in different embodiments may be appropriately combined, the steps may be implemented in any order, and there are many other variations of different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.
[0097] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present disclosure difficult to understand, the known power / ground connections to the integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present disclosure difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is obvious to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0098] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0099] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and principles of the embodiments of the present disclosure shall be included in the scope of protection of the present disclosure.
Claims
1. A method for updating offline data, characterized in that: The method comprises: Establishing a data export service unit, the data export service unit is used to create a description file, and is also used to export the data definition language, data manipulation language and folders in the target database, and upload them to the cloud storage; Establishing a file transfer unit; Acquire updated data in the cloud storage, and put the updated data into the file transfer unit; Establishing a data import service unit, the data import service unit is used to monitor whether there is data update on the file transmission unit, and in response to data update, import and read the update description file of the updated data; Compare and execute the data definition language of the source database and the data definition language of the target database, and update the content of the data definition language; Compare and execute the data manipulation language of the source database and the data manipulation language of the target database, and update the content of the data manipulation language; Perform log rollback operations on updated data definition language and updated data manipulation language; The data definition language, data manipulation language and folders in the export target database include: The data export service unit is also used to export the data table structure in the data definition language according to the standard SQL schema; the data export service unit is also used to monitor and parse the Mysqlbinlog log according to the WAL log of PostgreSQL to export the data manipulation language; the data export service unit is also used to monitor the folders in each storage bucket according to the audit log of the MinIO system, monitor whether the folders are updated, and export the folders in response to the folder updates; In response to data update, importing and reading the update description file of the update data includes: According to the non-source data plug-in corresponding to the database application registered in the update description file, the non-source data plug-in is called to update the data in the plurality of database applications.
2. The offline data updating method according to claim 1, characterized in that: The step of establishing a data export service unit comprises: Select multiple databases; Setting a plug-in interface, wherein the plug-in interface adopts a standard socket protocol; The data export service unit is established according to the database and the plug-in interface.
3. The offline data updating method according to claim 1, characterized in that: The step of obtaining updated data from the cloud storage and placing the updated data into the file transfer unit includes: Downloading the update data in the cloud storage and burning the update data to a disc; Get the updated data in the disc to the specified directory of the file transfer unit.
4. The offline data updating method according to claim 1, characterized in that: The data export service unit is also used for: Generate an export task according to the description file; Manage the export tasks according to user needs.
5. The offline data updating method according to claim 1, characterized in that: The comparing and executing the data definition language of the source database and the data definition language of the target database includes: comparing at least one of a field, an index, a remark, and a sequence of the data definition language; Comparing and executing the data manipulation language of the source database and the data manipulation language of the target database, including: The data manipulation language is compared with at least one of a user adding a field, a user deleting data, and a user changing source data.
6. An offline data updating system, characterized in that: The system comprises: A first establishment module is used to establish a data export service unit, wherein the data export service unit is used to create a description file and to export a data definition language, a data manipulation language and a folder in a target database and upload them to a cloud storage; A second establishing module, used for establishing a file transmission unit; An acquisition module, used for acquiring updated data in the cloud storage and putting the updated data into the file transfer unit; A third establishment module is used to establish a data import service unit, wherein the data import service unit is used to monitor whether there is data update on the file transmission unit, and in response to data update, import and read the update description file of the updated data; A first comparison module, used for comparing the data definition language of the source database and the data definition language of the target database, and updating the content of the data definition language; A second comparison module, used for comparing the data manipulation language of the source database and the data manipulation language of the target database, and updating the content of the data manipulation language; A rollback module, used for performing log rollback operation on updated data definition language and updated data manipulation language; The data definition language, data manipulation language and folders in the export target database include: The data export service unit is further used to export the data table structure in the data definition language according to the standard SQL schema; the data export service unit is further used to monitor and parse the Mysqlbinlog log according to the WAL log of PostgreSQL to export the data manipulation language; the data export service unit is further used to monitor the folders in each storage bucket according to the audit log provided by the MinIO system, monitor whether the folders are updated, and export the folders in response to the folder updates; In response to data update, importing and reading the update description file of the update data includes: According to the non-source data plug-in corresponding to the database application registered in the update description file, the non-source data plug-in is called to update the data in the plurality of database applications.
7. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the offline data updating method according to any one of claims 1 to 5.
8. An electronic device, characterized in that: include: Processor and memory; The memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the offline data updating method according to any one of claims 1 to 5.
