Method and system device for synchronizing json data into relational database
A data synchronization and database technology, applied in relational databases, database models, database distribution/replication, 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] like figure 1 As shown, a method for synchronizing json data to a relational database, the method includes:
[0040] Step 101, the configuration file editing module obtains the synchronization requirements of the synchronization data, and creates a configuration file containing json data source file information, target database information and field relationship mapping;
[0041] Step 102, the configuration file parsing module reads the configuration file, parses and identifies the json data source and the unique target database of each synchronized 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 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 to the target database in batches accordin...
Embodiment 2
[0046] like figure 2 As shown, the configuration file contains the following contents:
[0047] 1. Original json data source file information, such as file type (filetype), file path (path), file encoding format (charset), etc.;
[0048] 2. Synchronized target database information, mainly including the database type identifier dbtype (mainly Oracle, Microsoft SQL Server, MySql, etc.) and the host, port number (port), and username (username) of the target database to be synchronized to. , 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 of the json data object and the corresponding data table field (field) in the relational database.
[0050] The method and system can simultaneously perform multiple data synchronization tasks. The json data source file, target database information and...
Embodiment 3
[0052] like image 3 As shown, the present invention provides a system for synchronizing json data to a relational database, the system comprising:
[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 and perform accurate analysis, identify the source data and target database of each synchronized data, and establish a connection;
[0055] The json data reading module is used to automatically read the json data source, and generate batch synchronization SQL statements according to the data field mapping relationship of the configuration file;
[0056] A relational database writing module is used 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 th...
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