Rapid synchronization and control method of json data and system device
A data synchronization and data technology, applied in relational databases, database models, structured data retrieval, etc., can solve problems such as reducing development efficiency and increasing code redundancy, and achieve the effect of improving development efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] Such as figure 1 As shown, a method for quick synchronization and control of json data, the method includes:
[0040] Step 101, the configuration file editing module obtains the synchronization requirement file of the synchronization data, including the configuration file of json data source file information, target database information and field relationship mapping;
[0041] Step 102, the configuration file parsing module reads the configuration file, analyzes and identifies the json data source and unique target database of each synchronous data according to the parsed configuration file, and establishes a database connection;
[0042] Step 103, the json data reading module obtains the parsed json data source to read the json data, and generates batch-synchronized SQL statements according to the data field mapping relationship in the configuration;
[0043] Step 104, the relational database writing module writes json data in batches to the target database according ...
Embodiment 2
[0046] Such as figure 2 As shown, the configuration file contains the following content:
[0047] 1. Original json data source file information, such as file type (filetype), file path (path), file encoding format (charset), etc.;
[0048] 2. The information of the target database to be synchronized mainly includes the database type identification dbtype (mainly Oracle, Microsoft SQL Server, MySql, etc.) and the host (host), port number (port), and username (username) of the target database to be synchronized , password (password), encoding format (charset), database (database) and other connection information and write data table (datatable).
[0049] 3. The data mapping relationship mainly includes the one-to-one mapping between each sub-property (property) of the json data object and the corresponding data table field (field) in the relational database.
[0050] The method and the system can perform multiple data synchronization tasks at the same time. The json data sou...
Embodiment 3
[0052] Such as image 3As shown, the present invention provides a system for fast synchronization and control of json data, and the system includes:
[0053] The configuration file editing module is used to edit and modify the configuration file. After the modification, restart the synchronization system to take effect;
[0054] The configuration file parsing module is used to automatically read the configuration file, perform accurate parsing, identify the source data and target database of each synchronous data, and establish a connection;
[0055] The json data reading module is used to automatically read the json data source, and generate batch-synchronized SQL statements according to the data field mapping relationship of the configuration file;
[0056] A relational database writing module, configured to write json data in batches to the target database according to the database connection;
[0057] The data synchronization process control module is used to control the...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com