WO2019029155A1 - Data comparison method and device, computer device and storage medium - Google Patents

Data comparison method and device, computer device and storage medium Download PDF

Info

Publication number
WO2019029155A1
WO2019029155A1 PCT/CN2018/077482 CN2018077482W WO2019029155A1 WO 2019029155 A1 WO2019029155 A1 WO 2019029155A1 CN 2018077482 W CN2018077482 W CN 2018077482W WO 2019029155 A1 WO2019029155 A1 WO 2019029155A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
compared
name
field
database
Prior art date
Application number
PCT/CN2018/077482
Other languages
French (fr)
Chinese (zh)
Inventor
陈志辉
褚红丹
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019029155A1 publication Critical patent/WO2019029155A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database

Definitions

  • the present application relates to the field of computer technology, and in particular, to a data comparison method, apparatus, computer device, and storage medium.
  • data comparison tools such as Compare Beyond (a file comparison tool) can be used to compare large amounts of data.
  • Compare Beyond a file comparison tool
  • these data comparison tools have limited data sources, and can only compare the data in Excel (an office software) table, but can not directly grab data in the database for comparison. Therefore, how to directly compare the data in different databases becomes a technical problem that needs to be solved.
  • a data comparison method, apparatus, computer device, and storage medium are provided.
  • a data comparison method that includes:
  • configuration information includes a field name to be compared in the first file and a field name to be compared in the second file;
  • a data comparison device comprising:
  • a file capture module configured to acquire a first database name and a first file name, and fetch the first file in the first database according to the first database name and the first file name; obtain the second database name and the second file name, according to The second database name and the second file name fetch the second file in the second database;
  • a comparison module configured to obtain configuration information, where the configuration information includes a field name to be compared in the first file and a field name to be compared in the second file; according to the field name to be compared in the first file, and the second The field names to be compared in the file compare the data in the first file and the second file, and output a comparison result.
  • a computer device comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executable by the processor to cause the one or more processors to execute The following steps:
  • configuration information includes a field name to be compared in the first file and a field name to be compared in the second file;
  • One or more computer readable non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of:
  • configuration information includes a field name to be compared in the first file and a field name to be compared in the second file;
  • 1 is a flow chart of a data comparison method in an embodiment
  • FIG. 2 is a schematic diagram of a comparison page in one embodiment
  • FIG. 3 is a schematic structural diagram of a data comparison device in an embodiment
  • FIG. 4 is a schematic structural diagram of a computer device in an embodiment
  • FIG. 5 is a diagram of an application scenario in an embodiment.
  • first may be referred to as a second client
  • second client may be referred to as a first client, without departing from the scope of the present application.
  • Both the first client and the second client are clients, but they are not the same client.
  • a data comparison method is provided.
  • the method is applied to the terminal as an example for description, and specifically includes the following steps:
  • Step 102 Acquire a first database name and a first file name, and fetch the first file in the first database according to the first database name and the first file name.
  • Step 104 Obtain a second database name and a second file name, and fetch the second file in the second database according to the second database name and the second file name.
  • Step 106 Acquire configuration information, where the configuration information includes a field name to be compared in the first file and a field name to be compared in the second file.
  • Step 108 Compare the data in the first file and the second file according to the field name to be compared in the first file and the field name to be compared in the second file, and output a comparison result.
  • a data comparison application is running on the terminal.
  • the application can compare files in different databases.
  • the database includes Sql Server database, Oracle database and MySql database. Multiple files are included in the database. Different databases can be deployed on different servers.
  • the file can be a data table, a package (a file in an Oracle database), or a text.
  • the terminal can display the configuration page through the application.
  • the user can enter configuration information in the configuration page through the terminal.
  • the configuration information includes basic information of the file to be compared, including the file name to be compared, the name of the field to be compared, and the like.
  • the files to be compared may be files from different databases or files from the same database.
  • the two files to be compared may be referred to as a first file and a second file, respectively.
  • the database corresponding to the first file is referred to as a first database
  • the database corresponding to the second file is referred to as a second database.
  • the configuration information may include all field names of the first file and the second file, and may also include partial field names.
  • the server may include a first server and a second server. The first database is deployed on the first server, and the second database is deployed on the second server.
  • the terminal can display the comparison page through the application. Different files can be compared in the comparison page.
  • the comparison page is shown in Figure 2.
  • the user can input the first database name, the first database connection string, the first file name, the second database name, the second database connection string, the second file name, and the like in the comparison page by using the terminal.
  • the first database name and the second database name may be the same. If the first database name and the second database name are different, the first file name and the second file name may be the same.
  • Ado.Net a set of object-oriented libraries for interacting with the data source
  • call the database connection object to connect to the Oracle database and use Ado (ActiveX Data Control).
  • Objects including: Oracle Command (database command object), Oracle Data Adapter (data adapter object) and Oracle Data Reader (a data object, only allow read-only, forward-looking view of the data stored in it), etc.
  • the first file in the first database is crawled. After the user clicks the "View Data" control after the second file name on the comparison page, the application responds to the control, and the second file is captured in the second database according to the second database connection string.
  • the terminal After the terminal captures the first file and the second file through the application, the data of the first file and the data of the second file are respectively read, and the read data is added to the comparison page for display.
  • the page According to the field name to be compared in the first file in the configuration information and the field name to be compared in the second file, the page will be compared.
  • the data of the first file displayed is compared with the data of the second file. If the field name to be compared in the first file in the configuration file and the field name to be compared in the second file are all field names, the terminal compares all the data in the first file and the second file by using the application. For example, the first field in the first file is compared with the first field in the second file from the first line, the second field in the first file and the second field in the second file are from the first line. Compare line by line, and so on, until all fields are
  • the terminal compares the data to be compared in the first file and the second file by using the application program. .
  • the first field in the first file and the second field in the second file are compared line by line from the first line, and the second field in the first file and the third field in the second file start from the first line. Compare line by line until all generations of comparison fields are compared. After the comparison is completed, the comparison result is output.
  • the comparison results can include all data, or only inconsistent data. In order to facilitate the user to understand the comparison result, the comparison result may only display the inconsistent data in the first file and the second file.
  • all or part of the data migrated from the first file may be included in the second file.
  • the first file includes all or part of the data migrated from the second file.
  • the field names to be compared in the configuration information may be the field name before migration and the field name after migration.
  • the field name before migration and the field name after migration can be the same or different.
  • Migration rules are also included in the configuration information. According to the migration rule, the field name before migration and the corresponding migrated field name, and the field value before migration and the corresponding migrated field value can be found.
  • the terminal may perform batch reading or page reading on the first file and the second file, respectively. Add the read data to the comparison page for comparison. Further, in the comparison process, the progress bar can also be displayed in the comparison page, thereby displaying the progress of the data comparison, thereby facilitating the user to know the progress of the data comparison in time.
  • the first file may be captured in the first database by using the first database name and the first file name
  • the second file may be captured in the second database by using the second database name and the second file.
  • the data in the first file and the second file are compared according to the field name to be compared in the first file in the configuration information and the field name to be compared in the second file, thereby outputting the comparison result. Since the first file and the second file can be directly captured from the unused database, the data of the first file and the second file can be effectively compared according to the configuration information. This makes it possible to directly compare data in different databases.
  • steps in the flowchart of FIG. 1 are sequentially displayed as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and may be performed in other sequences. Moreover, at least some of the steps in FIG. 1 may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times, and the order of execution thereof is not necessarily This may be performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of the other steps.
  • the method further includes: if there is no configuration information, obtaining a field name to be compared in the first file and a field name to be compared in the second file; respectively, in the first file according to the field name to be compared Querying the first field to be compared and querying the second field to be compared in the second file; and arranging the first field and the second field in a first preset order; performing the first field and the second field after the arrangement Contrast, output comparison results.
  • the query statement or the query file may include a file name to be compared and a field name to be compared. If only the file name to be compared is included, it means that all fields of the file to be compared need to be compared. If both the file name to be compared and the field name to be compared are included, it means that some fields of the file to be compared need to be compared.
  • the user can use the terminal to input a query statement or a query file corresponding to the first file and a query statement or a query file corresponding to the second file in the comparison page.
  • the terminal obtains the field name to be compared in the first file and the field name to be compared in the second file according to the query statement or the query file, and queries the first field to be compared in the first file according to the field name to be compared. And querying the second field to be compared with the second file.
  • the first field to be compared includes the field name to be compared and the corresponding field value, which may be a field to be compared, or may be a plurality of fields to be compared.
  • the application arranges the first field and the second field that are queried according to the first preset order, so as to ensure that the query result of the first file is consistent with the query result of the second file, thereby ensuring the accuracy of the data comparison.
  • the terminal compares the arranged first field and the second field through the application, and outputs the comparison result.
  • the field name to be compared in the comparison file may be queried by inputting a query statement or importing a query file to obtain data to be compared.
  • the method further includes: obtaining a table structure corresponding to the first file and a table structure corresponding to the second file; comparing the table structure corresponding to the first file with the table structure corresponding to the second file; outputting the first The file is inconsistent with the second file.
  • the first file may be a data table
  • the second file may also be a data table.
  • the table structure of the first file includes a plurality of fields
  • the table structure of the second file also includes a plurality of fields.
  • the comparison page may also include a control "query table structure".
  • the user can click the control "query table structure" in the comparison page through the terminal, and the application responds to the control to separately query the table structure corresponding to the first file and the table structure corresponding to the second file.
  • the terminal compares the table structure of the first comparison file and the table structure of the second file through the application, and outputs a field inconsistent between the first file and the second file.
  • the first file includes a plurality of packages
  • the second file includes a plurality of packages.
  • the method further includes: if the configuration information includes the package name to be compared and the corresponding owner, according to the package name to be compared and the corresponding genus
  • the master obtains two packets to be compared in the first database and the second database respectively, and compares the two packets to be compared; if the configuration information does not include the package name to be compared and the corresponding owner, the first database is Multiple packages in the package and/or multiple packages in the second database are compared separately.
  • the first database and the second database may both be Oracle databases.
  • An Oracle database can include multiple packages.
  • the package can be used to classify functions or stored procedures.
  • the package has a header and a body. A function and a stored procedure are defined in the header, and the body is used to implement the functions and stored procedures defined in the header.
  • Each package has a corresponding package name and owner.
  • the first file may include a plurality of packages, and the second file may also include a plurality of packages. If the package name to be compared and the corresponding owner are entered in the configuration information, the terminal can obtain the corresponding two packages to be compared through the application, and compare the two packages. This gives the content difference between the two specified packages. Therefore, after the database script is handed over, it is convenient to verify whether the package has changed.
  • the terminal may acquire, by the application, multiple packets in the first database, and multiple packages in the second database, and multiple packets in the first database. Compare with multiple packages in the second database. Wherein, multiple packages in the first database can be compared, and multiple packages in the second database can be compared, and multiple packages in the first database and multiple packages in the second database are further Can be compared. Therefore, after the database script is handed over, it is convenient to know whether the package changes between different owners. It is also possible to facilitate the user to know whether the packets between different databases are synchronized to the same content after the database version is synchronized.
  • the first file includes the interface parameter of the current version
  • the second file includes the interface parameter of the previous version
  • the method further includes: converting the interface parameter of the current version to the first interface parameter of the Json format; The plurality of parameter data of the interface parameter are sorted according to the second preset order; the interface parameter of the previous version is converted into the second interface parameter of the Json format; and the plurality of parameter data of the second interface parameter are sorted according to the second preset order; The sorted first interface parameter is compared with the second interface parameter, and the parameter data in which the current version is inconsistent with the previous version is output.
  • the first file may record the interface parameters of the current version of the database.
  • the second file can record the interface parameters of a version on the database. Multiple interface data is included in the interface parameters.
  • the interface data can be recorded in the form of a data table or in the form of text. Due to the poor readability of interface parameters, it is not convenient to compare directly through the application.
  • the terminal can convert the interface parameters through the application. Specifically, the terminal obtains the interface parameter of the current version in the first file by using the application, and converts the interface parameter of the current version into the first interface parameter of the Json format.
  • the first interface parameter includes a plurality of parameter data, and the plurality of parameter data are displayed line by line and are sorted in a second preset order.
  • the terminal obtains the interface parameter of the previous version in the second file through the application, and converts the interface parameter of the previous version into the second interface parameter of the Json format.
  • the second interface parameter includes a plurality of parameter data, and the plurality of parameter data are displayed line by line and sorted in a second preset order.
  • the application compares the first interface parameter with the second interface parameter line by line, and outputs parameter data in which the current version is inconsistent with the previous version. Since the order of the first interface parameter and the plurality of parameter data in the second interface parameter are consistent, it is easy to know the parameter data of the two by comparison. This makes it easy for the user to know which parameter data in the interface data between different versions of the database has been modified.
  • a data comparison apparatus including: a file capture module 302 and a comparison module 304, wherein:
  • the file fetching module 302 is configured to obtain a first database name and a first file name, and fetch the first file in the first database according to the first database name and the first file name; and obtain the second database name and the second file name, according to the first The second database name and the second file name fetch the second file in the second database.
  • the comparison module 304 is configured to obtain configuration information, where the configuration information includes a field name to be compared in the first file, and a field name to be compared in the second file; according to the field name to be compared in the first file and the second file The field names to be compared are compared with the data in the first file and the second file, and the comparison result is output.
  • the comparison module 304 is further configured to: if the configuration information does not exist, obtain the field name to be compared in the first file and the field name to be compared in the second file; respectively, according to the field name to be compared Querying the first field to be compared and querying the second field to be compared in the second file; and arranging the first field and the second field in a first preset order; arranging the first field and the second field Compare and output the comparison results.
  • the first file includes a data table
  • the second file includes a data table
  • the comparison module 304 is further configured to obtain a table structure corresponding to the first file and a table structure corresponding to the second file; The structure is compared with the table structure corresponding to the second file; the fields in which the first file is inconsistent with the second file are output.
  • the first file includes a plurality of packages
  • the second file includes a plurality of packages.
  • the comparison module 304 is further configured to: if the configuration information includes the package name to be compared and the corresponding owner, according to the package name to be compared and the corresponding The owner obtains two packages to be compared in the first database and the second database, and compares the two packages to be compared; if the configuration information does not include the package name to be compared and the corresponding owner, the first will be Multiple packages in the database and/or multiple packages in the second database are compared separately.
  • the first file includes the interface parameter of the current version
  • the second file includes the interface parameter of the previous version
  • the comparison module 304 is further configured to convert the interface parameter of the current version into the first interface parameter of the Json format
  • the plurality of parameter data of an interface parameter are sorted according to a second preset order
  • the interface parameter of the previous version is converted into the second interface parameter of the Json format
  • the plurality of parameter data of the second interface parameter are sorted according to the second preset order; Comparing the sorted first interface parameter with the second interface parameter, and outputting parameter data in which the current version is inconsistent with the previous version.
  • a computer device comprising the terminal mentioned in the above embodiments.
  • the computer device includes a processor, a memory, and a network interface connected by a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the non-volatile storage medium of the computer device stores an operating system and computer readable instructions, and the non-volatile storage medium can be a computer-readable non-volatile storage medium.
  • the computer readable instructions are executed by the processor to implement a data comparison method.
  • the internal memory of the computer device provides an environment for the operation of an operating system and computer readable instructions in a non-volatile storage medium.
  • the network interface of the computer device is used for communicating with an external server through a network connection, for example, capturing a file to be compared in a database in the server.
  • the processor executes the computer readable instructions, the following steps may be performed: acquiring the first database name and the first file name, and fetching the first file in the first database according to the first database name and the first file name; acquiring the second database name and the second file a file name, the second file is captured in the second database according to the second database name and the second file name; obtaining configuration information, where the configuration information includes a field name to be compared in the first file, and a field to be compared in the second file Name; compare the data in the first file and the second file according to the field name to be compared in the first file and the field name to be compared in the second file, and output the comparison result.
  • FIG. 4 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied.
  • the specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
  • an application scenario is provided.
  • the computer device 502 is connected to the first server 504 via a network, and the computer device 504 is connected to the second server 506 via a network.
  • a first database is deployed on the first server 504 and a second database is deployed on the second server 506.
  • a data comparison application is run in computer device 504.
  • the computer device 504 can display a comparison page through the application. The first page name and the first file name and the second database name and the second file name input by the user are included in the comparison page.
  • the computer device 504 accesses the first server 504 with the data comparison application to read the data of the first file in the first database, and the computer device 504 accesses the second server 506 with the data comparison application to read the second file in the second database.
  • Computer device 504 adds the read data to the comparison page for presentation.
  • the computer device 504 invokes the configuration information by using the data comparison application, and compares the data of the first file and the second file displayed in the page according to the field name to be compared in the first file in the configuration information and the field name to be compared in the second file.
  • the data is compared and the comparison results are output on the comparison page. This makes it possible to directly compare data in different databases.
  • the processor also performs the following steps when executing the computer readable instructions:
  • the aligned first field and the second field are compared to output a comparison result.
  • the first file includes a data table
  • the second file includes a data table
  • the processor performs the following steps when executing the computer readable instructions:
  • the first file includes a plurality of packages
  • the second file includes a plurality of packages
  • the processor further performs the following steps when executing the computer readable instructions:
  • the two packages to be compared are obtained in the first database and the second database according to the package name to be compared and the corresponding owner, and the two packages to be compared are compared. Compare;
  • the multiple packets in the first database and/or the multiple packets in the second database are separately compared.
  • the first file includes the current version of the interface parameter
  • the second file includes the interface parameter of the previous version.
  • the processor executes the computer readable instructions, the processor further performs the following steps: converting the current version of the interface parameter to the Json format The first interface parameter; the plurality of parameter data of the first interface parameter are sorted in a second preset order;
  • one or more computer readable non-volatile storage media having computer readable instructions, when executed by one or more processors, causing one or more processors Perform the following steps:
  • configuration information includes a field name to be compared in the first file and a field name to be compared in the second file;
  • the data in the first file and the second file are compared according to the field name to be compared in the first file and the field name to be compared in the second file, and the comparison result is output.
  • the processor also performs the following steps when executing the computer readable instructions:
  • the aligned first field and the second field are compared to output a comparison result.
  • the first file includes a data table
  • the second file includes a data table
  • the processor performs the following steps when executing the computer readable instructions:
  • the first file includes a plurality of packages
  • the second file includes a plurality of packages
  • the processor further performs the following steps when executing the computer readable instructions:
  • the two packages to be compared are obtained in the first database and the second database according to the package name to be compared and the corresponding owner, and the two packages to be compared are compared. Compare;
  • the multiple packets in the first database and/or the multiple packets in the second database are separately compared.
  • the first file includes an interface parameter of the current version
  • the second file includes interface parameters of the previous version
  • the computer readable instructions are further executed by the processor to perform the following steps:
  • one or more computer readable non-volatile storage media storing computer readable instructions are provided, the computer readable instructions being executed by one or more processors such that one or more The steps in the various method embodiments described above are implemented when the processor is executed.
  • the readable storage medium which when executed, may include the flow of an embodiment of the methods as described above.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present application relates to a data comparison method, comprising: acquiring a first database name and a first file name, and grabbing a first file from a first database according to the first database name and the first file name; acquiring a second database name and a second file name, and grabbing a second file from a second database according to the second database name and the second file name; acquiring configuration information comprising a field name to be compared in the first file and a field name to be compared in the second file; and comparing data in the first file and the second file according to the field name to be compared in the first file and the field name to be compared in the second file, and outputting a comparison result.

Description

数据对比方法、装置、计算机设备和存储介质Data comparison method, device, computer device and storage medium
本申请要求于2017年8月8日提交中国专利局、申请号为2017106705122、发明名称为“数据对比方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on August 8, 2017, the Chinese Patent Application No. 2017106705122, entitled "Data Comparison Method, Apparatus, Computer Equipment, and Storage Medium", the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本申请涉及计算机技术领域,特别是涉及一种数据对比方法、装置、计算机设备和存储介质。The present application relates to the field of computer technology, and in particular, to a data comparison method, apparatus, computer device, and storage medium.
背景技术Background technique
在数据库开发过程中,通常需要对数据库中的数据进行对比。例如,通过数据对比来验证数据库脚本移交之后数据表的内容是否发生改动,或者数据库版本同步后,两个数据库是否同步成一致的内容等。In the database development process, it is usually necessary to compare the data in the database. For example, through data comparison to verify whether the contents of the data table have changed after the database script is handed over, or whether the two databases are synchronized into consistent content after the database version is synchronized.
在传统的数据对比方式中,可以采用数据对比工具,如Compare Beyond(一款文件对比工具),对大量数据进行对比。但是这些数据对比工具进行对比的数据源有限,只能对Excel(一款办公软件)表格中的数据进行对比,而无法直接在数据库中抓取数据进行对比。因此,如何直接对不同数据库中的数据进行有效对比成为目前需要解决的一个技术问题。In traditional data comparison methods, data comparison tools such as Compare Beyond (a file comparison tool) can be used to compare large amounts of data. However, these data comparison tools have limited data sources, and can only compare the data in Excel (an office software) table, but can not directly grab data in the database for comparison. Therefore, how to directly compare the data in different databases becomes a technical problem that needs to be solved.
发明内容Summary of the invention
根据本申请公开的各种实施例,提供一种数据对比方法、装置、计算机设备和存储介质。In accordance with various embodiments disclosed herein, a data comparison method, apparatus, computer device, and storage medium are provided.
一种数据对比方法,包括:A data comparison method that includes:
获取第一数据库名和第一文件名,根据所述第一数据库名和第一文件名在第一数据库中抓取第一文件;Obtaining a first database name and a first file name, and fetching the first file in the first database according to the first database name and the first file name;
获取第二数据库名和第二文件名,根据所述第二数据库名和第二文件名 在第二数据库中抓取第二文件;Obtaining a second database name and a second file name, and fetching the second file in the second database according to the second database name and the second file name;
获取配置信息,所述配置信息中包括第一文件中待对比的字段名以及第二文件中待对比的字段名;及Obtaining configuration information, where the configuration information includes a field name to be compared in the first file and a field name to be compared in the second file; and
根据所述第一文件中待对比的字段名以及第二文件中待对比的字段名对所述第一文件和第二文件中的数据进行对比,输出对比结果。And comparing the data in the first file and the second file according to the field name to be compared in the first file and the field name to be compared in the second file, and outputting the comparison result.
一种数据对比装置,包括:A data comparison device comprising:
文件抓取模块,用于获取第一数据库名和第一文件名,根据所述第一数据库名和第一文件名在第一数据库中抓取第一文件;获取第二数据库名和第二文件名,根据所述第二数据库名和第二文件名在第二数据库中抓取第二文件;及a file capture module, configured to acquire a first database name and a first file name, and fetch the first file in the first database according to the first database name and the first file name; obtain the second database name and the second file name, according to The second database name and the second file name fetch the second file in the second database; and
对比模块,用于获取配置信息,所述配置信息中包括第一文件中待对比的字段名以及第二文件中待对比的字段名;根据所述第一文件中待对比的字段名以及第二文件中待对比的字段名对所述第一文件和第二文件中的数据进行对比,输出对比结果。a comparison module, configured to obtain configuration information, where the configuration information includes a field name to be compared in the first file and a field name to be compared in the second file; according to the field name to be compared in the first file, and the second The field names to be compared in the file compare the data in the first file and the second file, and output a comparison result.
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executable by the processor to cause the one or more processors to execute The following steps:
获取第一数据库名和第一文件名,根据所述第一数据库名和第一文件名在第一数据库中抓取第一文件;Obtaining a first database name and a first file name, and fetching the first file in the first database according to the first database name and the first file name;
获取第二数据库名和第二文件名,根据所述第二数据库名和第二文件名在第二数据库中抓取第二文件;Obtaining a second database name and a second file name, and fetching the second file in the second database according to the second database name and the second file name;
获取配置信息,所述配置信息中包括第一文件中待对比的字段名以及第二文件中待对比的字段名;及Obtaining configuration information, where the configuration information includes a field name to be compared in the first file and a field name to be compared in the second file; and
根据所述第一文件中待对比的字段名以及第二文件中待对比的字段名对所述第一文件和第二文件中的数据进行对比,输出对比结果。And comparing the data in the first file and the second file according to the field name to be compared in the first file and the field name to be compared in the second file, and outputting the comparison result.
一个或多个存储有计算机可读指令的计算机可读非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下 步骤:One or more computer readable non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of:
获取第一数据库名和第一文件名,根据所述第一数据库名和第一文件名在第一数据库中抓取第一文件;Obtaining a first database name and a first file name, and fetching the first file in the first database according to the first database name and the first file name;
获取第二数据库名和第二文件名,根据所述第二数据库名和第二文件名在第二数据库中抓取第二文件;Obtaining a second database name and a second file name, and fetching the second file in the second database according to the second database name and the second file name;
获取配置信息,所述配置信息中包括第一文件中待对比的字段名以及第二文件中待对比的字段名;及Obtaining configuration information, where the configuration information includes a field name to be compared in the first file and a field name to be compared in the second file; and
根据所述第一文件中待对比的字段名以及第二文件中待对比的字段名对所述第一文件和第二文件中的数据进行对比,输出对比结果。And comparing the data in the first file and the second file according to the field name to be compared in the first file and the field name to be compared in the second file, and outputting the comparison result.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. Other features, objects, and advantages of the invention will be apparent from the description and appended claims.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative work for those skilled in the art.
图1为一个实施例中数据对比方法的流程图;1 is a flow chart of a data comparison method in an embodiment;
图2为一个实施例中对比页面的示意图;2 is a schematic diagram of a comparison page in one embodiment;
图3为一个实施例中数据对比装置的结构示意图;3 is a schematic structural diagram of a data comparison device in an embodiment;
图4为一个实施例中计算机设备的结构示意图;4 is a schematic structural diagram of a computer device in an embodiment;
图5为一个实施例中的应用场景图。FIG. 5 is a diagram of an application scenario in an embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一客户端称为第二客户端,且类似地,可将第二客户端称为第一客户端。第一客户端和第二客户端两者都是客户端,但其不是同一客户端。It will be understood that the terms "first", "second" and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present application. Both the first client and the second client are clients, but they are not the same client.
在一个实施例中,如图1所示,提供了一种数据对比方法,以该方法应用于终端为例进行说明,具体包括以下步骤:In an embodiment, as shown in FIG. 1 , a data comparison method is provided. The method is applied to the terminal as an example for description, and specifically includes the following steps:
步骤102,获取第一数据库名和第一文件名,根据第一数据库名和第一文件名在第一数据库中抓取第一文件。Step 102: Acquire a first database name and a first file name, and fetch the first file in the first database according to the first database name and the first file name.
步骤104,获取第二数据库名和第二文件名,根据第二数据库名和第二文件名在第二数据库中抓取第二文件。Step 104: Obtain a second database name and a second file name, and fetch the second file in the second database according to the second database name and the second file name.
步骤106,获取配置信息,配置信息中包括第一文件中待对比的字段名以及第二文件中待对比的字段名。Step 106: Acquire configuration information, where the configuration information includes a field name to be compared in the first file and a field name to be compared in the second file.
步骤108,根据第一文件中待对比的字段名以及第二文件中待对比的字段名对第一文件和第二文件中的数据进行对比,输出对比结果。Step 108: Compare the data in the first file and the second file according to the field name to be compared in the first file and the field name to be compared in the second file, and output a comparison result.
终端上运行了数据对比应用程序。该应用程序可以对不同的数据库中的文件进行对比。数据库包括Sql Server数据库、Oracle数据库以及MySql数据库等。数据库中包括多个文件。不同的数据库可以分别部署在不同的服务器上。文件可以是数据表,也可以是包(Oracle数据库中一种文件),还可以是文本等。A data comparison application is running on the terminal. The application can compare files in different databases. The database includes Sql Server database, Oracle database and MySql database. Multiple files are included in the database. Different databases can be deployed on different servers. The file can be a data table, a package (a file in an Oracle database), or a text.
终端通过该应用程序可以展示配置页面。用户可以通过终端在配置页面中输入配置信息。配置信息包括待对比的文件的基本信息,包括待对比的文件名、待对比的字段名等。其中待对比的文件可以是来自不同数据库中的文件,也可以是来自同一数据库中的文件。为了简洁描述,将待对比的两个文件可以分别称为第一文件和第二文件。将第一文件对应的数据库称为第一数据库,将第二文件对应的数据库称为第二数据库。配置信息中可以包括第一文件和第二文件的全部字段名也可以包括部分字段名。服务器可以包括第一 服务器和第二服务器。其中,第一数据库部署在第一服务器上,第二数据库部署在第二服务器上。The terminal can display the configuration page through the application. The user can enter configuration information in the configuration page through the terminal. The configuration information includes basic information of the file to be compared, including the file name to be compared, the name of the field to be compared, and the like. The files to be compared may be files from different databases or files from the same database. For the sake of brevity, the two files to be compared may be referred to as a first file and a second file, respectively. The database corresponding to the first file is referred to as a first database, and the database corresponding to the second file is referred to as a second database. The configuration information may include all field names of the first file and the second file, and may also include partial field names. The server may include a first server and a second server. The first database is deployed on the first server, and the second database is deployed on the second server.
终端通过该应用程序可以展示对比页面。对比页面中可以对不同的文件进行对比。对比页面如图2所示。用户利用终端可以在对比页面中输入第一数据库名、第一数据库连接串、第一文件名以及第二数据库名、第二数据库连接串、第二文件名等。其中,第一数据库名和第二数据库名可以相同,如果第一数据库名和第二数据库名不同,那么第一文件名和第二文件名可以相同。用户通过终端在对比页面点击第一文件名后的“查看数据”这一控件,应用程序响应该控件,根据第一数据库连接串在第一数据库中抓取第一文件。以第一数据库为Oracle数据库为例,应用程序可以运用Ado.Net(一组用于和数据源进行交互的面向对象类库),调用数据库连接对象连接到Oracle数据库,利用Ado(ActiveX数据控件)对象,包括:Oracle Command(数据库命令对象)、Oracle Data Adapter(数据适配器对象)以及Oracle Data Reader(一种数据对象,只允许以只读、顺向的方式查看其中所存储的数据)等,对第一数据库中的第一文件进行抓取。用户通过终端在对比页面点击第二文件名后的“查看数据”这一控件,应用程序响应该控件,根据第二数据库连接串在第二数据库中抓取第二文件。The terminal can display the comparison page through the application. Different files can be compared in the comparison page. The comparison page is shown in Figure 2. The user can input the first database name, the first database connection string, the first file name, the second database name, the second database connection string, the second file name, and the like in the comparison page by using the terminal. The first database name and the second database name may be the same. If the first database name and the second database name are different, the first file name and the second file name may be the same. The user clicks the "View Data" control after the first file name on the comparison page, and the application responds to the control, and the first file is captured in the first database according to the first database connection string. Taking the first database as an Oracle database, the application can use Ado.Net (a set of object-oriented libraries for interacting with the data source), call the database connection object to connect to the Oracle database, and use Ado (ActiveX Data Control). Objects, including: Oracle Command (database command object), Oracle Data Adapter (data adapter object) and Oracle Data Reader (a data object, only allow read-only, forward-looking view of the data stored in it), etc. The first file in the first database is crawled. After the user clicks the "View Data" control after the second file name on the comparison page, the application responds to the control, and the second file is captured in the second database according to the second database connection string.
终端通过应用程序抓取到第一文件和第二文件后,分别读取第一文件的数据和第二文件的数据,将读取到的数据添加在对比页面中进行展示。用户通过终端在对比页面点击“开始”这一控件,应用程序响应该控件,调用配置信息,根据配置信息中第一文件中待对比的字段名以及第二文件中待对比的字段名将对比页面中展示的第一文件的数据和第二文件的数据进行对比。如果配置信息中第一文件中待对比的字段名和第二文件中待对比的字段名是全部字段名,则终端通过应用程序对第一文件和第二文件中全部数据进行相应的对比。例如,第一文件中的第一字段与第二文件中的第一字段从第一行开始逐行对比,第一文件中的第二字段与第二文件中的第二字段从第一行开始逐行对比,以此类推,直到所有的字段完成对比。After the terminal captures the first file and the second file through the application, the data of the first file and the data of the second file are respectively read, and the read data is added to the comparison page for display. The user clicks the "Start" control on the comparison page, and the application responds to the control, and invokes the configuration information. According to the field name to be compared in the first file in the configuration information and the field name to be compared in the second file, the page will be compared. The data of the first file displayed is compared with the data of the second file. If the field name to be compared in the first file in the configuration file and the field name to be compared in the second file are all field names, the terminal compares all the data in the first file and the second file by using the application. For example, the first field in the first file is compared with the first field in the second file from the first line, the second field in the first file and the second field in the second file are from the first line. Compare line by line, and so on, until all fields are compared.
如果配置信息中第一文件中待对比的字段名和第二文件中待对比的字段名是部分字段名,则终端通过应用程序对第一文件和第二文件中待对比的部分数据进行相应的对比。例如,第一文件中的第一字段与第二文件中的第二字段从第一行开始逐行对比,第一文件中的第二字段与第二文件中的第三字段从第一行开始逐行对比,直到所有的代对比字段完成对比。对比完成后,输出对比结果。对比结果可以包括全部数据,也可以只包括不一致的数据。为了便于用户了解对比结果,对比结果可以只显示第一文件和第二文件中不一致的数据。If the field name to be compared in the first file in the configuration file and the field name to be compared in the second file are partial field names, the terminal compares the data to be compared in the first file and the second file by using the application program. . For example, the first field in the first file and the second field in the second file are compared line by line from the first line, and the second field in the first file and the third field in the second file start from the first line. Compare line by line until all generations of comparison fields are compared. After the comparison is completed, the comparison result is output. The comparison results can include all data, or only inconsistent data. In order to facilitate the user to understand the comparison result, the comparison result may only display the inconsistent data in the first file and the second file.
进一步的,第二文件中可以包括从第一文件中的迁移的全部或部分数据。或者第一文件中包括从第二文件中的迁移的全部或部分数据。对发生数据迁移的两个文件进行对比时,配置信息中待对比的字段名可以是迁移前的字段名和迁移后的字段名。迁移前的字段名和迁移后的字段名可以相同,也可以不同。配置信息中还包括迁移规则。根据迁移规则可以查找到迁移前的字段名与对应的迁移后的字段名,以及迁移前的字段值与对应的迁移后的字段值。当大量数据从一个文件迁移至另一个文件时,通过上述方式将迁移前后的数据进行对比,可以快速有效的得知数据迁移是否准确无误。Further, all or part of the data migrated from the first file may be included in the second file. Or the first file includes all or part of the data migrated from the second file. When comparing two files in which data migration occurs, the field names to be compared in the configuration information may be the field name before migration and the field name after migration. The field name before migration and the field name after migration can be the same or different. Migration rules are also included in the configuration information. According to the migration rule, the field name before migration and the corresponding migrated field name, and the field value before migration and the corresponding migrated field value can be found. When a large amount of data is migrated from one file to another, comparing the data before and after the migration in the above manner can quickly and effectively know whether the data migration is accurate or not.
进一步的,若第一文件的数据和第二文件的数据均较多,终端可以对第一文件和第二文件分别进行分批读取或者分页读取。将读取到的数据添加在对比页面中进行对比。进一步的,在对比过程中对比页面中还可以显示进度条,以此显示数据对比的进度,由此方便用户及时了解数据对比进度。Further, if the data of the first file and the data of the second file are both more, the terminal may perform batch reading or page reading on the first file and the second file, respectively. Add the read data to the comparison page for comparison. Further, in the comparison process, the progress bar can also be displayed in the comparison page, thereby displaying the progress of the data comparison, thereby facilitating the user to know the progress of the data comparison in time.
本实施例中,通过第一数据库名和第一文件名可以第一数据库中抓取第一文件,通过第二数据库名和第二文件可以在第二数据库中抓取第二文件。根据配置信息中第一文件中待对比的字段名以及第二文件中待对比的字段名对第一文件和第二文件中的数据进行对比,由此可以输出对比结果。由于第一文件和第二文件可以从不用的数据库中直接抓取,根据配置信息可以将第一文件和第二文件的数据进行有效对比。由此实现了直接对不同数据库中的数据进行有效对比。In this embodiment, the first file may be captured in the first database by using the first database name and the first file name, and the second file may be captured in the second database by using the second database name and the second file. The data in the first file and the second file are compared according to the field name to be compared in the first file in the configuration information and the field name to be compared in the second file, thereby outputting the comparison result. Since the first file and the second file can be directly captured from the unused database, the data of the first file and the second file can be effectively compared according to the configuration information. This makes it possible to directly compare data in different databases.
应该理解的是,虽然图1的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,图1中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart of FIG. 1 are sequentially displayed as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and may be performed in other sequences. Moreover, at least some of the steps in FIG. 1 may include a plurality of sub-steps or stages, which are not necessarily performed at the same time, but may be executed at different times, and the order of execution thereof is not necessarily This may be performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of the other steps.
在一个实施例中,该方法还包括:若不存在配置信息,则获取第一文件中待对比的字段名以及第二文件中待对比的字段名;根据待对比的字段名分别在第一文件查询待对比的第一字段以及在第二文件中查询待对比的第二字段;将第一字段和第二字段按照第一预设顺序进行排列;将排列后的第一字段和第二字段进行对比,输出对比结果。In an embodiment, the method further includes: if there is no configuration information, obtaining a field name to be compared in the first file and a field name to be compared in the second file; respectively, in the first file according to the field name to be compared Querying the first field to be compared and querying the second field to be compared in the second file; and arranging the first field and the second field in a first preset order; performing the first field and the second field after the arrangement Contrast, output comparison results.
如果用户没有在配置页面中进行配置,也可以通过对比页面输入查询语句或者导入查询文件。其中,查询语句或查询文件中可以包括待对比文件名和待对比字段名。如果只包括待对比文件名,则表示待对比文件的全部字段都需要进行对比。如果既包括待对比文件名,又包括待对比字段名,则表示待对比文件的部分字段需要进行对比。If the user is not configured in the configuration page, you can also enter a query statement or import a query file by comparing the pages. The query statement or the query file may include a file name to be compared and a field name to be compared. If only the file name to be compared is included, it means that all fields of the file to be compared need to be compared. If both the file name to be compared and the field name to be compared are included, it means that some fields of the file to be compared need to be compared.
具体的,用户利用终端可以分别在对比页面中输入第一文件对应的查询语句或者查询文件,以及第二文件对应的查询语句或者查询文件。终端通过应用程序根据查询语句或查询文件分别获取第一文件中待对比的字段名以及第二文件中待对比的字段名,根据待对比的字段名分别在第一文件查询待对比的第一字段以及和第二文件中查询待对比的第二字段。其中,待对比的第一字段包括待对比的字段名及对应的字段值,可以是一个待对比字段,也可以是多个待对比字段。Specifically, the user can use the terminal to input a query statement or a query file corresponding to the first file and a query statement or a query file corresponding to the second file in the comparison page. The terminal obtains the field name to be compared in the first file and the field name to be compared in the second file according to the query statement or the query file, and queries the first field to be compared in the first file according to the field name to be compared. And querying the second field to be compared with the second file. The first field to be compared includes the field name to be compared and the corresponding field value, which may be a field to be compared, or may be a plurality of fields to be compared.
应用程序将查询到的第一字段和第二字段按照第一预设顺序进行排列,以此确保第一文件的查询结果与第二文件的查询结果顺序一致,进而能够确保数据对比的准确性。终端通过应用程序对排列后的第一字段和第二字段进 行对比,输出对比结果。The application arranges the first field and the second field that are queried according to the first preset order, so as to ensure that the query result of the first file is consistent with the query result of the second file, thereby ensuring the accuracy of the data comparison. The terminal compares the arranged first field and the second field through the application, and outputs the comparison result.
本实施例中,如果没有在配置页面中输入配置信息,还可以通过输入查询语句或导入查询文件对待对比文件中的待对比字段名进行查询,得到待对比数据。由此使得数据对比的方式更灵活,方便用户选择更符合自己使用习惯的对比方式。In this embodiment, if the configuration information is not input in the configuration page, the field name to be compared in the comparison file may be queried by inputting a query statement or importing a query file to obtain data to be compared. This makes the data comparison method more flexible, and it is convenient for users to choose a comparison method that is more in line with their own usage habits.
在一个实施例中,该方法还包括:获取第一文件对应的表结构以及第二文件对应的表结构;对第一文件对应的表结构和第二文件对应的表结构进行对比;输出第一文件与第二文件中不一致的字段。In an embodiment, the method further includes: obtaining a table structure corresponding to the first file and a table structure corresponding to the second file; comparing the table structure corresponding to the first file with the table structure corresponding to the second file; outputting the first The file is inconsistent with the second file.
本实施例中,第一文件可以是数据表,第二文件也可以是数据表。第一文件的表结构中包括多个字段,第二文件的表结构也包括多个字段。在根据配置信息或查询语句等对第一文件和第二文件进行对比时,还可以对第一文件和第二文件的表结构分别进行对比。In this embodiment, the first file may be a data table, and the second file may also be a data table. The table structure of the first file includes a plurality of fields, and the table structure of the second file also includes a plurality of fields. When the first file and the second file are compared according to the configuration information or the query statement, the table structures of the first file and the second file may be separately compared.
具体的,对比页面中还可以包括控件“查询表结构”。用户通过终端可以在对比页面中点击控件“查询表结构”,应用程序响应该控件可以分别查询第一文件对应的表结构以及第二文件对应的表结构。终端通过应用程序可以将第一对比文件的表结构以及第二文件的表结构进行对比,输出第一文件与第二文件中不一致的字段。Specifically, the comparison page may also include a control "query table structure". The user can click the control "query table structure" in the comparison page through the terminal, and the application responds to the control to separately query the table structure corresponding to the first file and the table structure corresponding to the second file. The terminal compares the table structure of the first comparison file and the table structure of the second file through the application, and outputs a field inconsistent between the first file and the second file.
通过对第一文件和第二文件的字段和表结构分别进行对比,有助于用户全面了解不同数据库中相同文件名的两个数据表之间的不同。由此在数据库版本同步之后,可以方便用户了解不同数据库之间的表结构是否同步为一致的内容。By comparing the fields and table structures of the first file and the second file respectively, it is helpful for the user to fully understand the difference between the two data tables of the same file name in different databases. Thus, after the database version is synchronized, it is convenient for the user to know whether the table structure between different databases is synchronized to a consistent content.
在一个实施例中,第一文件包括多个包,第二文件包括多个包,该方法还包括:若配置信息中包括待对比包名和对应的属主,则根据待对比包名和对应的属主分别在第一数据库中和第二数据库中获取两个待对比的包,将两个待对比的包进行对比;若配置信息中未包括待对比包名和对应的属主,则将第一数据库中的多个包和/或第二数据库中的多个包分别进行对比。In an embodiment, the first file includes a plurality of packages, and the second file includes a plurality of packages. The method further includes: if the configuration information includes the package name to be compared and the corresponding owner, according to the package name to be compared and the corresponding genus The master obtains two packets to be compared in the first database and the second database respectively, and compares the two packets to be compared; if the configuration information does not include the package name to be compared and the corresponding owner, the first database is Multiple packages in the package and/or multiple packages in the second database are compared separately.
本实施例中,第一数据库和第二数据库可以均为Oracle数据库。Oracle 数据库可以包括多个包。通过包可以对函数或存储过程进行分类管理。包具有包头和包体。包头中定义了一个函数和一个存储过程,包体用于实现包头中定义的函数和存储过程。In this embodiment, the first database and the second database may both be Oracle databases. An Oracle database can include multiple packages. The package can be used to classify functions or stored procedures. The package has a header and a body. A function and a stored procedure are defined in the header, and the body is used to implement the functions and stored procedures defined in the header.
每个包具有对应的包名和属主。第一文件可以包括多个包,第二文件也可以包括多个包。如果在配置信息中输入了待对比包名和对应的属主,则终端通过应用程序可以获取到相应的两个待对比的包,将两个包进行对比。由此得到两个指定包的内容差异。从而使得数据库脚本移交之后,可以方便验证包是否发生改动。Each package has a corresponding package name and owner. The first file may include a plurality of packages, and the second file may also include a plurality of packages. If the package name to be compared and the corresponding owner are entered in the configuration information, the terminal can obtain the corresponding two packages to be compared through the application, and compare the two packages. This gives the content difference between the two specified packages. Therefore, after the database script is handed over, it is convenient to verify whether the package has changed.
如果配置信息中未包括待对比包名和对应的属主,则终端通过应用程序可以获取第一数据库中的多个包,以及第二数据库中的多个包,将第一数据库中的多个包与第二数据库中的多个包进行对比。其中,第一数据库中的多个包之间可以进行对比,第二数据库中的多个包之间可以进行对比,第一数据库中的多个包与第二数据库中的多个包之间还可以进行对比。由此在数据库脚本移交之后,可以方便了解不同属主之间包是否发生改动。也可以在数据库版本同步之后,方便用户了解不同数据库之间的包是否同步为一致的内容。If the to-be-compared package name and the corresponding owner are not included in the configuration information, the terminal may acquire, by the application, multiple packets in the first database, and multiple packages in the second database, and multiple packets in the first database. Compare with multiple packages in the second database. Wherein, multiple packages in the first database can be compared, and multiple packages in the second database can be compared, and multiple packages in the first database and multiple packages in the second database are further Can be compared. Therefore, after the database script is handed over, it is convenient to know whether the package changes between different owners. It is also possible to facilitate the user to know whether the packets between different databases are synchronized to the same content after the database version is synchronized.
在一个实施例中,第一文件包括当前版本的接口参数,第二文件包括上一版本的接口参数,该方法还包括:将当前版本的接口参数转换为Json格式的第一接口参数;第一接口参数的多个参数数据按第二预设顺序排序;将上一版本的接口参数转换为Json格式的第二接口参数;第二接口参数的多个参数数据按第二预设顺序排序;将排序后的第一接口参数与第二接口参数进行比较,输出当前版本与上一版本不一致的参数数据。In an embodiment, the first file includes the interface parameter of the current version, and the second file includes the interface parameter of the previous version, the method further includes: converting the interface parameter of the current version to the first interface parameter of the Json format; The plurality of parameter data of the interface parameter are sorted according to the second preset order; the interface parameter of the previous version is converted into the second interface parameter of the Json format; and the plurality of parameter data of the second interface parameter are sorted according to the second preset order; The sorted first interface parameter is compared with the second interface parameter, and the parameter data in which the current version is inconsistent with the previous version is output.
本实施例中,第一文件可以记录了数据库当前版本的接口参数。第二文件可以记录了数据库上一个版本的接口参数。接口参数中包括了多个接口数据。接口数据可以采用数据表的形式进行记录,也可以采用文本的形式进行记录。由于接口参数的可读性较差,不便于直接通过该应用程序进行比对。In this embodiment, the first file may record the interface parameters of the current version of the database. The second file can record the interface parameters of a version on the database. Multiple interface data is included in the interface parameters. The interface data can be recorded in the form of a data table or in the form of text. Due to the poor readability of interface parameters, it is not convenient to compare directly through the application.
为了得知数据库的当前版本与上一版本之间有哪些参数数据进行了修 改,终端可以通过应用程序对接口参数进行转换。具体的,终端通过应用程序获取第一文件中当前版本的接口参数,将当前版本的接口参数转换为Json格式的第一接口参数。第一接口参数包括多个参数数据,多个参数数据逐行显示,并按第二预设顺序排序。终端通过应用程序获取第二文件中上一版本的接口参数,将上一版本的接口参数转换为Json格式的第二接口参数。第二接口参数包括多个参数数据,多个参数数据逐行显示,并按第二预设顺序排序。应用程序对第一接口参数与第二接口参数逐行进行比较,输出当前版本与上一版本不一致的参数数据。由于第一接口参数与第二接口参数中的多个参数数据的排列顺序一致,因此通过对比,很容易得知两者不同的参数数据。由此方便用户了解数据库不同版本之间的接口数据中有哪些参数数据被修改。In order to know which parameter data has been modified between the current version of the database and the previous version, the terminal can convert the interface parameters through the application. Specifically, the terminal obtains the interface parameter of the current version in the first file by using the application, and converts the interface parameter of the current version into the first interface parameter of the Json format. The first interface parameter includes a plurality of parameter data, and the plurality of parameter data are displayed line by line and are sorted in a second preset order. The terminal obtains the interface parameter of the previous version in the second file through the application, and converts the interface parameter of the previous version into the second interface parameter of the Json format. The second interface parameter includes a plurality of parameter data, and the plurality of parameter data are displayed line by line and sorted in a second preset order. The application compares the first interface parameter with the second interface parameter line by line, and outputs parameter data in which the current version is inconsistent with the previous version. Since the order of the first interface parameter and the plurality of parameter data in the second interface parameter are consistent, it is easy to know the parameter data of the two by comparison. This makes it easy for the user to know which parameter data in the interface data between different versions of the database has been modified.
在一个实施例中,如图3所示,提供了一种数据对比装置,包括:文件抓取模块302和对比模块304,其中:In one embodiment, as shown in FIG. 3, a data comparison apparatus is provided, including: a file capture module 302 and a comparison module 304, wherein:
文件抓取模块302,用于获取第一数据库名和第一文件名,根据第一数据库名和第一文件名在第一数据库中抓取第一文件;获取第二数据库名和第二文件名,根据第二数据库名和第二文件名在第二数据库中抓取第二文件。The file fetching module 302 is configured to obtain a first database name and a first file name, and fetch the first file in the first database according to the first database name and the first file name; and obtain the second database name and the second file name, according to the first The second database name and the second file name fetch the second file in the second database.
对比模块304,用于获取配置信息,配置信息中包括第一文件中待对比的字段名,以及第二文件中待对比的字段名;根据第一文件中待对比的字段名以及第二文件中待对比的字段名对第一文件和第二文件中的数据进行对比,输出对比结果。The comparison module 304 is configured to obtain configuration information, where the configuration information includes a field name to be compared in the first file, and a field name to be compared in the second file; according to the field name to be compared in the first file and the second file The field names to be compared are compared with the data in the first file and the second file, and the comparison result is output.
在一个实施例中,对比模块304还用于若不存在配置信息,则获取第一文件中待对比的字段名以及第二文件中待对比的字段名;根据待对比的字段名分别在第一文件查询待对比的第一字段以及在第二文件中查询待对比的第二字段;将第一字段和第二字段按照第一预设顺序进行排列;将排列后的第一字段和第二字段进行对比,输出对比结果。In an embodiment, the comparison module 304 is further configured to: if the configuration information does not exist, obtain the field name to be compared in the first file and the field name to be compared in the second file; respectively, according to the field name to be compared Querying the first field to be compared and querying the second field to be compared in the second file; and arranging the first field and the second field in a first preset order; arranging the first field and the second field Compare and output the comparison results.
在一个实施例中,第一文件包括数据表,第二文件包括数据表,对比模块304还用于获取第一文件对应的表结构以及第二文件对应的表结构;对第 一文件对应的表结构和第二文件对应的表结构进行对比;输出第一文件与第二文件中不一致的字段。In an embodiment, the first file includes a data table, and the second file includes a data table, and the comparison module 304 is further configured to obtain a table structure corresponding to the first file and a table structure corresponding to the second file; The structure is compared with the table structure corresponding to the second file; the fields in which the first file is inconsistent with the second file are output.
在一个实施例中,第一文件包括多个包,第二文件包括多个包,对比模块304还用于若配置信息中包括待对比包名和对应的属主,则根据待对比包名和对应的属主分别在第一数据库中和第二数据库中获取两个待对比的包,将两个待对比的包进行对比;若配置信息中未包括待对比包名和对应的属主,则将第一数据库中的多个包和/或第二数据库中的多个包分别进行对比。In an embodiment, the first file includes a plurality of packages, and the second file includes a plurality of packages. The comparison module 304 is further configured to: if the configuration information includes the package name to be compared and the corresponding owner, according to the package name to be compared and the corresponding The owner obtains two packages to be compared in the first database and the second database, and compares the two packages to be compared; if the configuration information does not include the package name to be compared and the corresponding owner, the first will be Multiple packages in the database and/or multiple packages in the second database are compared separately.
在一个实施例中,第一文件包括当前版本的接口参数,第二文件包括上一版本的接口参数,对比模块304还用于将当前版本的接口参数转换为Json格式的第一接口参数;第一接口参数的多个参数数据按第二预设顺序排序;将上一版本的接口参数转换为Json格式的第二接口参数;第二接口参数的多个参数数据按第二预设顺序排序;将排序后的第一接口参数与第二接口参数进行比较,输出当前版本与上一版本不一致的参数数据。In an embodiment, the first file includes the interface parameter of the current version, the second file includes the interface parameter of the previous version, and the comparison module 304 is further configured to convert the interface parameter of the current version into the first interface parameter of the Json format; The plurality of parameter data of an interface parameter are sorted according to a second preset order; the interface parameter of the previous version is converted into the second interface parameter of the Json format; and the plurality of parameter data of the second interface parameter are sorted according to the second preset order; Comparing the sorted first interface parameter with the second interface parameter, and outputting parameter data in which the current version is inconsistent with the previous version.
在一个实施例中,提供了一种计算机设备,该计算机设备包括上述实施例中提及的终端。如图4所示,该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该计算机设备的非易失性存储介质存储有操作系统和和计算机可读指令,非易失性存储介质可以是计算机可读非易失性存储介质。该计算机可读指令被处理器执行时以实现一种数据对比方法。该计算机设备的内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的网络接口用于与外部服务器通过网络连接通信,比如,在服务器中的数据库中抓取待对比文件等。处理器执行计算机可读指令时可以执行以下步骤:获取第一数据库名和第一文件名,根据第一数据库名和第一文件名在第一数据库中抓取第一文件;获取第二数据库名和第二文件名,根据第二数据库名和第二文件名在第二数据库中抓取第二文件;获取配置信息,配置信息中包括第一文件中待对比的字段名,以及第二文件中待对比的字段名;根据第一文件中待 对比的字段名以及第二文件中待对比的字段名对第一文件和第二文件中的数据进行对比,输出对比结果。In one embodiment, a computer device is provided, the computer device comprising the terminal mentioned in the above embodiments. As shown in FIG. 4, the computer device includes a processor, a memory, and a network interface connected by a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The non-volatile storage medium of the computer device stores an operating system and computer readable instructions, and the non-volatile storage medium can be a computer-readable non-volatile storage medium. The computer readable instructions are executed by the processor to implement a data comparison method. The internal memory of the computer device provides an environment for the operation of an operating system and computer readable instructions in a non-volatile storage medium. The network interface of the computer device is used for communicating with an external server through a network connection, for example, capturing a file to be compared in a database in the server. When the processor executes the computer readable instructions, the following steps may be performed: acquiring the first database name and the first file name, and fetching the first file in the first database according to the first database name and the first file name; acquiring the second database name and the second file a file name, the second file is captured in the second database according to the second database name and the second file name; obtaining configuration information, where the configuration information includes a field name to be compared in the first file, and a field to be compared in the second file Name; compare the data in the first file and the second file according to the field name to be compared in the first file and the field name to be compared in the second file, and output the comparison result.
本领域技术人员可以理解,图4中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。It will be understood by those skilled in the art that the structure shown in FIG. 4 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied. The specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
在一个实施例中,如图5所示,提供了一种应用场景。其中,计算机设备502通过网络与第一服务器504连接,计算机设备504通过网络与第二服务器506连接。第一服务器504上部署了第一数据库,第二服务器506上部署了第二数据库。计算机设备504中运行了数据对比应用程序。计算机设备504通过该应用程序可以展示对比页面。比页面中包括用户输入的第一数据库名和第一文件名以及第二数据库名和第二文件名等。计算机设备504利用数据对比应用程序访问第一服务器504在第一数据库中读取第一文件的数据,以及计算机设备504利用数据对比应用程序访问第二服务器506在第二数据库中读取第二文件的数据。计算机设备504将读取到的数据添加到对比页面中进行展示。计算机设备504利用数据对比应用程序调用配置信息,根据配置信息中第一文件中待对比的字段名以及第二文件中待对比的字段名将对比页面中展示的第一文件的数据和第二文件的数据进行对比,在对比页面中输出对比结果。由此实现了直接对不同数据库中的数据进行有效对比。In one embodiment, as shown in FIG. 5, an application scenario is provided. The computer device 502 is connected to the first server 504 via a network, and the computer device 504 is connected to the second server 506 via a network. A first database is deployed on the first server 504 and a second database is deployed on the second server 506. A data comparison application is run in computer device 504. The computer device 504 can display a comparison page through the application. The first page name and the first file name and the second database name and the second file name input by the user are included in the comparison page. The computer device 504 accesses the first server 504 with the data comparison application to read the data of the first file in the first database, and the computer device 504 accesses the second server 506 with the data comparison application to read the second file in the second database. The data. Computer device 504 adds the read data to the comparison page for presentation. The computer device 504 invokes the configuration information by using the data comparison application, and compares the data of the first file and the second file displayed in the page according to the field name to be compared in the first file in the configuration information and the field name to be compared in the second file. The data is compared and the comparison results are output on the comparison page. This makes it possible to directly compare data in different databases.
在一个实施例中,处理器执行计算机可读指令时还执行以下步骤:In one embodiment, the processor also performs the following steps when executing the computer readable instructions:
若不存在配置信息,则获取第一文件中待对比的字段名以及第二文件中待对比的字段名;If the configuration information does not exist, obtain the field name to be compared in the first file and the field name to be compared in the second file;
根据待对比的字段名分别在第一文件查询待对比的第一字段以及在第二文件中查询待对比的第二字段;Querying, according to the field name to be compared, the first field to be compared in the first file and the second field to be compared in the second file;
将第一字段和第二字段按照第一预设顺序进行排列;及Arranging the first field and the second field in a first predetermined order; and
将排列后的第一字段和第二字段进行对比,输出对比结果。The aligned first field and the second field are compared to output a comparison result.
在一个实施例中,第一文件包括数据表,第二文件包括数据表,处理器 执行计算机可读指令时还执行以下步骤:In one embodiment, the first file includes a data table, the second file includes a data table, and the processor performs the following steps when executing the computer readable instructions:
获取第一文件对应的表结构以及第二文件对应的表结构;Obtaining a table structure corresponding to the first file and a table structure corresponding to the second file;
对第一文件对应的表结构和第二文件对应的表结构进行对比;Comparing the table structure corresponding to the first file with the table structure corresponding to the second file;
输出第一文件与第二文件中不一致的字段。Outputs a field that is inconsistent between the first file and the second file.
在一个实施例中,第一文件包括多个包,第二文件包括多个包,处理器执行计算机可读指令时还执行以下步骤:In one embodiment, the first file includes a plurality of packages, the second file includes a plurality of packages, and the processor further performs the following steps when executing the computer readable instructions:
若配置信息中包括待对比包名和对应的属主,则根据待对比包名和对应的属主分别在第一数据库中和第二数据库中获取两个待对比的包,将两个待对比的包进行对比;及If the configuration information includes the package name to be compared and the corresponding owner, the two packages to be compared are obtained in the first database and the second database according to the package name to be compared and the corresponding owner, and the two packages to be compared are compared. Compare; and
若配置信息中未包括待对比包名和对应的属主,则将第一数据库中的多个包和/或第二数据库中的多个包分别进行对比。If the package name to be compared and the corresponding owner are not included in the configuration information, the multiple packets in the first database and/or the multiple packets in the second database are separately compared.
在一个实施例中,第一文件包括当前版本的接口参数,第二文件包括上一版本的接口参数,处理器执行计算机可读指令时还执行以下步骤:将当前版本的接口参数转换为Json格式的第一接口参数;第一接口参数的多个参数数据按第二预设顺序排序;In one embodiment, the first file includes the current version of the interface parameter, and the second file includes the interface parameter of the previous version. When the processor executes the computer readable instructions, the processor further performs the following steps: converting the current version of the interface parameter to the Json format The first interface parameter; the plurality of parameter data of the first interface parameter are sorted in a second preset order;
将上一版本的接口参数转换为Json格式的第二接口参数;第二接口参数的多个参数数据按第二预设顺序排序;及Converting the interface parameter of the previous version to the second interface parameter of the Json format; and the plurality of parameter data of the second interface parameter are sorted according to the second preset order;
将排序后的第一接口参数与第二接口参数进行比较,输出当前版本与上一版本不一致的参数数据。Comparing the sorted first interface parameter with the second interface parameter, and outputting parameter data in which the current version is inconsistent with the previous version.
在一个实施例中,提供了一个或多个存储有计算机可读指令的计算机可读非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:In one embodiment, there is provided one or more computer readable non-volatile storage media having computer readable instructions, when executed by one or more processors, causing one or more processors Perform the following steps:
获取第一数据库名和第一文件名,根据第一数据库名和第一文件名在第一数据库中抓取第一文件;Obtaining a first database name and a first file name, and fetching the first file in the first database according to the first database name and the first file name;
获取第二数据库名和第二文件名,根据第二数据库名和第二文件名在第二数据库中抓取第二文件;Obtaining a second database name and a second file name, and fetching the second file in the second database according to the second database name and the second file name;
获取配置信息,配置信息中包括第一文件中待对比的字段名以及第二文 件中待对比的字段名;及Obtaining configuration information, where the configuration information includes a field name to be compared in the first file and a field name to be compared in the second file; and
根据第一文件中待对比的字段名以及第二文件中待对比的字段名对第一文件和第二文件中的数据进行对比,输出对比结果。The data in the first file and the second file are compared according to the field name to be compared in the first file and the field name to be compared in the second file, and the comparison result is output.
在一个实施例中,处理器执行计算机可读指令时还执行以下步骤:In one embodiment, the processor also performs the following steps when executing the computer readable instructions:
若不存在配置信息,则获取第一文件中待对比的字段名以及第二文件中待对比的字段名;If the configuration information does not exist, obtain the field name to be compared in the first file and the field name to be compared in the second file;
根据待对比的字段名分别在第一文件查询待对比的第一字段以及在第二文件中查询待对比的第二字段;Querying, according to the field name to be compared, the first field to be compared in the first file and the second field to be compared in the second file;
将第一字段和第二字段按照第一预设顺序进行排列;及Arranging the first field and the second field in a first predetermined order; and
将排列后的第一字段和第二字段进行对比,输出对比结果。The aligned first field and the second field are compared to output a comparison result.
在一个实施例中,第一文件包括数据表,第二文件包括数据表,处理器执行计算机可读指令时还执行以下步骤:In one embodiment, the first file includes a data table, the second file includes a data table, and the processor performs the following steps when executing the computer readable instructions:
获取第一文件对应的表结构以及第二文件对应的表结构;Obtaining a table structure corresponding to the first file and a table structure corresponding to the second file;
对第一文件对应的表结构和第二文件对应的表结构进行对比;及Comparing the table structure corresponding to the first file with the table structure corresponding to the second file; and
输出第一文件与第二文件中不一致的字段。Outputs a field that is inconsistent between the first file and the second file.
在一个实施例中,第一文件包括多个包,第二文件包括多个包,处理器执行计算机可读指令时还执行以下步骤:In one embodiment, the first file includes a plurality of packages, the second file includes a plurality of packages, and the processor further performs the following steps when executing the computer readable instructions:
若配置信息中包括待对比包名和对应的属主,则根据待对比包名和对应的属主分别在第一数据库中和第二数据库中获取两个待对比的包,将两个待对比的包进行对比;及If the configuration information includes the package name to be compared and the corresponding owner, the two packages to be compared are obtained in the first database and the second database according to the package name to be compared and the corresponding owner, and the two packages to be compared are compared. Compare; and
若配置信息中未包括待对比包名和对应的属主,则将第一数据库中的多个包和/或第二数据库中的多个包分别进行对比。If the package name to be compared and the corresponding owner are not included in the configuration information, the multiple packets in the first database and/or the multiple packets in the second database are separately compared.
在一个实施例中,第一文件包括当前版本的接口参数,第二文件包括上一版本的接口参数,计算机可读指令被处理器执行时还执行以下步骤:In one embodiment, the first file includes an interface parameter of the current version, and the second file includes interface parameters of the previous version, and the computer readable instructions are further executed by the processor to perform the following steps:
将当前版本的接口参数转换为Json格式的第一接口参数;第一接口参数的多个参数数据按第二预设顺序排序;Converting the current version of the interface parameter to the first interface parameter in the Json format; the plurality of parameter data of the first interface parameter are sorted according to the second preset order;
将上一版本的接口参数转换为Json格式的第二接口参数;第二接口参数 的多个参数数据按第二预设顺序排序;及Converting the interface parameter of the previous version to the second interface parameter of the Json format; and the plurality of parameter data of the second interface parameter are sorted according to the second preset order;
将排序后的第一接口参数与第二接口参数进行比较,输出当前版本与上一版本不一致的参数数据。Comparing the sorted first interface parameter with the second interface parameter, and outputting parameter data in which the current version is inconsistent with the previous version.
在一个实施例中,提供了一个或多个存储有计算机可读指令的计算机可读非易失性存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行时实现上述各个方法实施例中的步骤。In one embodiment, one or more computer readable non-volatile storage media storing computer readable instructions are provided, the computer readable instructions being executed by one or more processors such that one or more The steps in the various method embodiments described above are implemented when the processor is executed.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the above embodiments can be completed by computer readable instructions, which can be stored in a non-volatile computer. The readable storage medium, which when executed, may include the flow of an embodiment of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (20)

  1. 一种数据对比方法,包括:A data comparison method that includes:
    获取第一数据库名和第一文件名,根据所述第一数据库名和第一文件名在第一数据库中抓取第一文件;Obtaining a first database name and a first file name, and fetching the first file in the first database according to the first database name and the first file name;
    获取第二数据库名和第二文件名,根据所述第二数据库名和第二文件名在第二数据库中抓取第二文件;Obtaining a second database name and a second file name, and fetching the second file in the second database according to the second database name and the second file name;
    获取配置信息,所述配置信息中包括第一文件中待对比的字段名以及第二文件中待对比的字段名;及Obtaining configuration information, where the configuration information includes a field name to be compared in the first file and a field name to be compared in the second file; and
    根据所述第一文件中待对比的字段名以及第二文件中待对比的字段名对所述第一文件和第二文件中的数据进行对比,输出对比结果。And comparing the data in the first file and the second file according to the field name to be compared in the first file and the field name to be compared in the second file, and outputting the comparison result.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    若不存在所述配置信息,则获取第一文件中待对比的字段名以及第二文件中待对比的字段名;If the configuration information does not exist, obtaining a field name to be compared in the first file and a field name to be compared in the second file;
    根据待对比的字段名分别在第一文件查询待对比的第一字段以及在第二文件中查询待对比的第二字段;Querying, according to the field name to be compared, the first field to be compared in the first file and the second field to be compared in the second file;
    将所述第一字段和第二字段按照第一预设顺序进行排列;及Arranging the first field and the second field in a first predetermined order; and
    将排列后的第一字段和第二字段进行对比,输出对比结果。The aligned first field and the second field are compared to output a comparison result.
  3. 根据权利要求1所述的方法,其特征在于,所述第一文件包括数据表,所述第二文件包括数据表,所述方法还包括:The method according to claim 1, wherein the first file comprises a data table, the second file comprises a data table, and the method further comprises:
    获取第一文件对应的表结构以及第二文件对应的表结构;Obtaining a table structure corresponding to the first file and a table structure corresponding to the second file;
    对第一文件对应的表结构和第二文件对应的表结构进行对比;及Comparing the table structure corresponding to the first file with the table structure corresponding to the second file; and
    输出第一文件与第二文件中不一致的字段。Outputs a field that is inconsistent between the first file and the second file.
  4. 根据权利要求1所述的方法,其特征在于,所述第一文件包括多个包,所述第二文件包括多个包,所述方法还包括:The method according to claim 1, wherein the first file comprises a plurality of packages, the second file comprises a plurality of packages, and the method further comprises:
    若所述配置信息中包括待对比包名和对应的属主,则根据待对比包名和对应的属主分别在第一数据库中和第二数据库中获取两个待对比的包,将两个待对比的包进行对比;及If the configuration information includes the package name to be compared and the corresponding owner, the two packages to be compared are obtained in the first database and the second database according to the package name to be compared and the corresponding owner, and the two to be compared are compared. Comparison of packages; and
    若所述配置信息中未包括待对比包名和对应的属主,则将第一数据库中的多个包和/或第二数据库中的多个包分别进行对比。If the package name to be compared and the corresponding owner are not included in the configuration information, compare multiple packets in the first database and/or multiple packets in the second database.
  5. 根据权利要求1所述的方法,其特征在于,所述第一文件包括当前版本的接口参数,所述第二文件包括上一版本的接口参数,所述方法还包括:The method according to claim 1, wherein the first file includes an interface parameter of a current version, and the second file includes an interface parameter of a previous version, the method further comprising:
    将所述当前版本的接口参数转换为Json格式的第一接口参数;所述第一接口参数的多个参数数据按第二预设顺序排序;Converting the current version of the interface parameter into a first interface parameter in the Json format; the plurality of parameter data of the first interface parameter are sorted in a second preset order;
    将所述上一版本的接口参数转换为Json格式的第二接口参数;所述第二接口参数的多个参数数据按第二预设顺序排序;及Converting the interface parameter of the previous version to a second interface parameter of the Json format; the plurality of parameter data of the second interface parameter are sorted according to a second preset order; and
    将排序后的第一接口参数与第二接口参数进行比较,输出当前版本与上一版本不一致的参数数据。Comparing the sorted first interface parameter with the second interface parameter, and outputting parameter data in which the current version is inconsistent with the previous version.
  6. 一种数据对比装置,其特征在于,所述装置包括:A data comparison device, characterized in that the device comprises:
    文件抓取模块,用于获取第一数据库名和第一文件名,根据所述第一数据库名和第一文件名在第一数据库中抓取第一文件;获取第二数据库名和第二文件名,根据所述第二数据库名和第二文件名在第二数据库中抓取第二文件;及a file capture module, configured to acquire a first database name and a first file name, and fetch the first file in the first database according to the first database name and the first file name; obtain the second database name and the second file name, according to The second database name and the second file name fetch the second file in the second database; and
    对比模块,用于获取配置信息,所述配置信息中包括第一文件中待对比的字段名,以及第二文件中待对比的字段名;根据所述第一文件中待对比的字段名以及第二文件中待对比的字段名对所述第一文件和第二文件中的数据进行对比,输出对比结果。a comparison module, configured to obtain configuration information, where the configuration information includes a field name to be compared in the first file, and a field name to be compared in the second file; according to the field name to be compared in the first file, and The field names to be compared in the two files compare the data in the first file and the second file, and output the comparison result.
  7. 根据权利要求6所述的装置,其特征在于,所述对比模块还用于若不存在所述配置信息,则获取第一文件中待对比的字段名以及第二文件中待对比的字段名;根据待对比的字段名分别在第一文件查询待对比的第一字段以及在第二文件中查询待对比的第二字段;及将所述第一字段和第二字段按照第一预设顺序进行排列;将排列后的第一字段和第二字段进行对比,输出对比结果。The device according to claim 6, wherein the comparison module is further configured to: if the configuration information does not exist, obtain a field name to be compared in the first file and a field name to be compared in the second file; Querying, according to the field name to be compared, the first field to be compared in the first file and the second field to be compared in the second file; and performing the first field and the second field in the first preset order Arrange; compare the first field and the second field after the arrangement, and output the comparison result.
  8. 根据权利要求6或7所述的装置,其特征在于,所述第一文件包括数据表,所述第二文件包括数据表,所述对比模块还用于获取第一文件对应的 表结构以及第二文件对应的表结构;对第一文件对应的表结构和第二文件对应的表结构进行对比;及输出第一文件与第二文件中不一致的字段。The device according to claim 6 or 7, wherein the first file comprises a data table, the second file comprises a data table, and the comparison module is further configured to obtain a table structure corresponding to the first file and a table structure corresponding to the second file; comparing the table structure corresponding to the first file with the table structure corresponding to the second file; and outputting a field inconsistent between the first file and the second file.
  9. 根据权利要求6所述的装置,其特征在于,所述第一文件包括多个包,所述第二文件包括多个包,所述对比模块还用于若所述配置信息中包括待对比包名和对应的属主,则根据待对比包名和对应的属主分别在第一数据库中和第二数据库中获取两个待对比的包,将两个待对比的包进行对比;及若所述配置信息中未包括待对比包名和对应的属主,则将第一数据库中的多个包和/或第二数据库中的多个包分别进行对比。The device according to claim 6, wherein the first file comprises a plurality of packages, the second file comprises a plurality of packages, and the comparison module is further configured to: if the configuration information includes a package to be compared And the corresponding owner, according to the package name to be compared and the corresponding owner respectively, obtain two packages to be compared in the first database and the second database, and compare the two packages to be compared; and if the configuration The information to be compared with the corresponding owner is not included in the information, and the plurality of packages in the first database and/or the plurality of packages in the second database are separately compared.
  10. 根据权利要求6所述的装置,其特征在于,所述第一文件包括当前版本的接口参数,所述第二文件包括上一版本的接口参数,所述对比模块还用于将所述当前版本的接口参数转换为Json格式的第一接口参数;所述第一接口参数的多个参数数据按第二预设顺序排序;将所述上一版本的接口参数转换为Json格式的第二接口参数;所述第二接口参数的多个参数数据按第二预设顺序排序;及将排序后的第一接口参数与第二接口参数进行比较,输出当前版本与上一版本不一致的参数数据。The apparatus according to claim 6, wherein the first file includes an interface parameter of a current version, the second file includes an interface parameter of a previous version, and the comparison module is further configured to use the current version. Converting the interface parameter to the first interface parameter in the Json format; the plurality of parameter data of the first interface parameter are sorted in a second preset order; converting the interface parameter of the previous version to the second interface parameter in the Json format The plurality of parameter data of the second interface parameter are sorted in a second preset order; and the sorted first interface parameter is compared with the second interface parameter, and the parameter data in which the current version is inconsistent with the previous version is output.
  11. 一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executable by the processor to cause the one or more processors to execute The following steps:
    获取第一数据库名和第一文件名,根据所述第一数据库名和第一文件名在第一数据库中抓取第一文件;Obtaining a first database name and a first file name, and fetching the first file in the first database according to the first database name and the first file name;
    获取第二数据库名和第二文件名,根据所述第二数据库名和第二文件名在第二数据库中抓取第二文件;Obtaining a second database name and a second file name, and fetching the second file in the second database according to the second database name and the second file name;
    获取配置信息,所述配置信息中包括第一文件中待对比的字段名以及第二文件中待对比的字段名;及Obtaining configuration information, where the configuration information includes a field name to be compared in the first file and a field name to be compared in the second file; and
    根据所述第一文件中待对比的字段名以及第二文件中待对比的字段名对所述第一文件和第二文件中的数据进行对比,输出对比结果。And comparing the data in the first file and the second file according to the field name to be compared in the first file and the field name to be compared in the second file, and outputting the comparison result.
  12. 根据权利要求11所述的计算机设备,其特征在于,所述计算机可读 指令被所述处理器执行时,使得所述一个或多个处理器还执行以下步骤:The computer apparatus according to claim 11, wherein said computer readable instructions are executed by said processor such that said one or more processors further perform the following steps:
    若不存在所述配置信息,则获取第一文件中待对比的字段名以及第二文件中待对比的字段名;If the configuration information does not exist, obtaining a field name to be compared in the first file and a field name to be compared in the second file;
    根据待对比的字段名分别在第一文件查询待对比的第一字段以及在第二文件中查询待对比的第二字段;Querying, according to the field name to be compared, the first field to be compared in the first file and the second field to be compared in the second file;
    将所述第一字段和第二字段按照第一预设顺序进行排列;及Arranging the first field and the second field in a first predetermined order; and
    将排列后的第一字段和第二字段进行对比,输出对比结果。The aligned first field and the second field are compared to output a comparison result.
  13. 根据权利要求11所述的计算机设备,其特征在于,所述第一文件包括数据表,所述第二文件包括数据表,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器还执行以下步骤:The computer apparatus according to claim 11, wherein said first file comprises a data table, said second file comprising a data table, said computer readable instructions being executed by said processor such that said one Or multiple processors perform the following steps:
    获取第一文件对应的表结构以及第二文件对应的表结构;Obtaining a table structure corresponding to the first file and a table structure corresponding to the second file;
    对第一文件对应的表结构和第二文件对应的表结构进行对比;及Comparing the table structure corresponding to the first file with the table structure corresponding to the second file; and
    输出第一文件与第二文件中不一致的字段。Outputs a field that is inconsistent between the first file and the second file.
  14. 根据权利要求11-13任一项所述的计算机设备,其特征在于,所述第一文件包括多个包,所述第二文件包括多个包,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器还执行以下步骤:A computer apparatus according to any one of claims 11 to 13, wherein said first file comprises a plurality of packages, said second file comprises a plurality of packages, said computer readable instructions being said processor When executed, the one or more processors are further configured to perform the following steps:
    若所述配置信息中包括待对比包名和对应的属主,则根据待对比包名和对应的属主分别在第一数据库中和第二数据库中获取两个待对比的包,将两个待对比的包进行对比;及If the configuration information includes the package name to be compared and the corresponding owner, the two packages to be compared are obtained in the first database and the second database according to the package name to be compared and the corresponding owner, and the two to be compared are compared. Comparison of packages; and
    若所述配置信息中未包括待对比包名和对应的属主,则将第一数据库中的多个包和/或第二数据库中的多个包分别进行对比。If the package name to be compared and the corresponding owner are not included in the configuration information, compare multiple packets in the first database and/or multiple packets in the second database.
  15. 根据权利要求14所述的计算机设备,其特征在于,所述第一文件包括当前版本的接口参数,所述第二文件包括上一版本的接口参数,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器还执行以下步骤:The computer device according to claim 14, wherein said first file comprises an interface parameter of a current version, said second file comprises an interface parameter of a previous version, said computer readable instructions being said processor When executed, the one or more processors are further configured to perform the following steps:
    将所述当前版本的接口参数转换为Json格式的第一接口参数;所述第一接口参数的多个参数数据按第二预设顺序排序;Converting the current version of the interface parameter into a first interface parameter in the Json format; the plurality of parameter data of the first interface parameter are sorted in a second preset order;
    将所述上一版本的接口参数转换为Json格式的第二接口参数;所述第二接口参数的多个参数数据按第二预设顺序排序;及Converting the interface parameter of the previous version to a second interface parameter of the Json format; the plurality of parameter data of the second interface parameter are sorted according to a second preset order; and
    将排序后的第一接口参数与第二接口参数进行比较,输出当前版本与上一版本不一致的参数数据。Comparing the sorted first interface parameter with the second interface parameter, and outputting parameter data in which the current version is inconsistent with the previous version.
  16. 一个或多个存储有计算机可读指令的计算机可读非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:One or more computer readable non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of:
    获取第一数据库名和第一文件名,根据所述第一数据库名和第一文件名在第一数据库中抓取第一文件;Obtaining a first database name and a first file name, and fetching the first file in the first database according to the first database name and the first file name;
    获取第二数据库名和第二文件名,根据所述第二数据库名和第二文件名在第二数据库中抓取第二文件;Obtaining a second database name and a second file name, and fetching the second file in the second database according to the second database name and the second file name;
    获取配置信息,所述配置信息中包括第一文件中待对比的字段名以及第二文件中待对比的字段名;及Obtaining configuration information, where the configuration information includes a field name to be compared in the first file and a field name to be compared in the second file; and
    根据所述第一文件中待对比的字段名以及第二文件中待对比的字段名对所述第一文件和第二文件中的数据进行对比,输出对比结果。And comparing the data in the first file and the second file according to the field name to be compared in the first file and the field name to be compared in the second file, and outputting the comparison result.
  17. 根据权利要求16所述的存储介质,其特征在于,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器还执行以下步骤:The storage medium of claim 16 wherein the computer readable instructions are executed by one or more processors such that the one or more processors further perform the steps of:
    若不存在所述配置信息,则获取第一文件中待对比的字段名以及第二文件中待对比的字段名;If the configuration information does not exist, obtaining a field name to be compared in the first file and a field name to be compared in the second file;
    根据待对比的字段名分别在第一文件查询待对比的第一字段以及在第二文件中查询待对比的第二字段;Querying, according to the field name to be compared, the first field to be compared in the first file and the second field to be compared in the second file;
    将所述第一字段和第二字段按照第一预设顺序进行排列;及Arranging the first field and the second field in a first predetermined order; and
    将排列后的第一字段和第二字段进行对比,输出对比结果。The aligned first field and the second field are compared to output a comparison result.
  18. 根据权利要求16所述的存储介质,其特征在于,所述第一文件包括数据表,所述第二文件包括数据表,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器还执行以下步骤:The storage medium of claim 16 wherein said first file comprises a data table, said second file comprising a data table, said computer readable instructions being executed by one or more processors to cause one or more The processors also perform the following steps:
    获取第一文件对应的表结构以及第二文件对应的表结构;Obtaining a table structure corresponding to the first file and a table structure corresponding to the second file;
    对第一文件对应的表结构和第二文件对应的表结构进行对比;及Comparing the table structure corresponding to the first file with the table structure corresponding to the second file; and
    输出第一文件与第二文件中不一致的字段。Outputs a field that is inconsistent between the first file and the second file.
  19. 根据权利要求16-18任一项所述的存储介质,其特征在于,所述第一文件包括多个包,所述第二文件包括多个包,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器还执行以下步骤:A storage medium according to any one of claims 16 to 18, wherein the first file comprises a plurality of packages, the second file comprises a plurality of packages, and the computer readable instructions are executed by one or more processors When executed, one or more processors also perform the following steps:
    若所述配置信息中包括待对比包名和对应的属主,则根据待对比包名和对应的属主分别在第一数据库中和第二数据库中获取两个待对比的包,将两个待对比的包进行对比;及If the configuration information includes the package name to be compared and the corresponding owner, the two packages to be compared are obtained in the first database and the second database according to the package name to be compared and the corresponding owner, and the two to be compared are compared. Comparison of packages; and
    若所述配置信息中未包括待对比包名和对应的属主,则将第一数据库中的多个包和/或第二数据库中的多个包分别进行对比。If the package name to be compared and the corresponding owner are not included in the configuration information, compare multiple packets in the first database and/or multiple packets in the second database.
  20. 根据权利要求19所述的存储介质,其特征在于,所述第一文件包括当前版本的接口参数,所述第二文件包括上一版本的接口参数,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器还执行以下步骤:The storage medium of claim 19, wherein the first file comprises an interface parameter of a current version, the second file comprises interface parameters of a previous version, and the computer readable instructions are by one or more processors When executed, one or more processors also perform the following steps:
    将所述当前版本的接口参数转换为Json格式的第一接口参数;所述第一接口参数的多个参数数据按第二预设顺序排序;Converting the current version of the interface parameter into a first interface parameter in the Json format; the plurality of parameter data of the first interface parameter are sorted in a second preset order;
    将所述上一版本的接口参数转换为Json格式的第二接口参数;所述第二接口参数的多个参数数据按第二预设顺序排序;及Converting the interface parameter of the previous version to a second interface parameter of the Json format; the plurality of parameter data of the second interface parameter are sorted according to a second preset order; and
    将排序后的第一接口参数与第二接口参数进行比较,输出当前版本与上一版本不一致的参数数据。Comparing the sorted first interface parameter with the second interface parameter, and outputting parameter data in which the current version is inconsistent with the previous version.
PCT/CN2018/077482 2017-08-08 2018-02-28 Data comparison method and device, computer device and storage medium WO2019029155A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710670512.2 2017-08-08
CN201710670512.2A CN107688618B (en) 2017-08-08 2017-08-08 Data comparison method, apparatus, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2019029155A1 true WO2019029155A1 (en) 2019-02-14

Family

ID=61153373

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/077482 WO2019029155A1 (en) 2017-08-08 2018-02-28 Data comparison method and device, computer device and storage medium

Country Status (2)

Country Link
CN (1) CN107688618B (en)
WO (1) WO2019029155A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11379419B2 (en) * 2019-11-29 2022-07-05 Sap Se Autonomous intelligent data pipeline comparator

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107688618B (en) * 2017-08-08 2019-03-12 平安科技(深圳)有限公司 Data comparison method, apparatus, computer equipment and storage medium
CN108509612A (en) * 2018-03-30 2018-09-07 北京润科通用技术有限公司 A kind of data processing method and device
CN109492197A (en) * 2018-09-18 2019-03-19 深圳壹账通智能科技有限公司 The file information comparison method, device, computer equipment and storage medium
CN109829138A (en) * 2018-12-15 2019-05-31 中国平安人寿保险股份有限公司 File comparison method, device, electronic equipment and computer readable storage medium
CN109710571B (en) * 2018-12-27 2023-06-23 腾讯音乐娱乐科技(深圳)有限公司 File analysis method, device and storage medium
CN111399972B (en) * 2019-01-02 2023-05-09 中国移动通信有限公司研究院 Method and device for capturing packets by virtual machine and computer readable storage medium
CN110209705A (en) * 2019-04-25 2019-09-06 深圳壹账通智能科技有限公司 Data query method, apparatus, computer equipment, computer storage medium
CN110287182B (en) * 2019-05-05 2021-09-14 浙江吉利控股集团有限公司 Big data comparison method, device, equipment and terminal
CN116956863A (en) * 2019-06-04 2023-10-27 苏州智贸捷通科技有限公司 Deep processing data verification method based on big data
CN110737642B (en) * 2019-09-05 2022-09-02 平安科技(深圳)有限公司 Database information analysis method, database information analysis device, computer device and storage medium
CN112905691B (en) * 2019-11-19 2024-05-14 中盈优创资讯科技有限公司 Information synchronization method and device
CN111339039A (en) * 2020-02-21 2020-06-26 京东数字科技控股有限公司 File comparison method and device, storage medium and electronic device
CN113760884A (en) * 2020-08-06 2021-12-07 北京沃东天骏信息技术有限公司 Data comparison method and device
CN116205542B (en) * 2023-04-28 2023-08-04 菲特(天津)检测技术有限公司 Quality management system, method, equipment and medium based on data comparison

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064968A (en) * 2012-12-31 2013-04-24 中国电子科技集团公司第十五研究所 Standardized data packing method based on cache
US8473519B1 (en) * 2008-02-25 2013-06-25 Cisco Technology, Inc. Unified communication audit tool
CN103995854A (en) * 2014-05-13 2014-08-20 大唐移动通信设备有限公司 Equipment cross-version upgrading method and device
CN104268291A (en) * 2014-10-23 2015-01-07 税友软件集团股份有限公司 Data consistency processing method and system
CN105989089A (en) * 2015-02-12 2016-10-05 阿里巴巴集团控股有限公司 Data comparison method and device
CN106503268A (en) * 2016-12-07 2017-03-15 广东神马搜索科技有限公司 Data Comparison methods, devices and systems
CN107688618A (en) * 2017-08-08 2018-02-13 平安科技(深圳)有限公司 Data comparison method, apparatus, computer equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186556B (en) * 2011-12-28 2016-09-07 北京百度网讯科技有限公司 Obtain the method with searching structure semantic knowledge and corresponding intrument
CN103942143B (en) * 2014-04-09 2017-03-15 烽火通信科技股份有限公司 A kind of PC Lint code check result screening techniques compared based on version repository
CN106599300B (en) * 2016-12-28 2020-06-30 中国建设银行股份有限公司 Distributed system database structure comparison method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8473519B1 (en) * 2008-02-25 2013-06-25 Cisco Technology, Inc. Unified communication audit tool
CN103064968A (en) * 2012-12-31 2013-04-24 中国电子科技集团公司第十五研究所 Standardized data packing method based on cache
CN103995854A (en) * 2014-05-13 2014-08-20 大唐移动通信设备有限公司 Equipment cross-version upgrading method and device
CN104268291A (en) * 2014-10-23 2015-01-07 税友软件集团股份有限公司 Data consistency processing method and system
CN105989089A (en) * 2015-02-12 2016-10-05 阿里巴巴集团控股有限公司 Data comparison method and device
CN106503268A (en) * 2016-12-07 2017-03-15 广东神马搜索科技有限公司 Data Comparison methods, devices and systems
CN107688618A (en) * 2017-08-08 2018-02-13 平安科技(深圳)有限公司 Data comparison method, apparatus, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11379419B2 (en) * 2019-11-29 2022-07-05 Sap Se Autonomous intelligent data pipeline comparator

Also Published As

Publication number Publication date
CN107688618A (en) 2018-02-13
CN107688618B (en) 2019-03-12

Similar Documents

Publication Publication Date Title
WO2019029155A1 (en) Data comparison method and device, computer device and storage medium
US20230385033A1 (en) Storing logical units of program code generated using a dynamic programming notebook user interface
US10324828B2 (en) Generating annotated screenshots based on automated tests
US10963800B2 (en) Service layer augmentation of response to semantically-informed query of arbitrary external data sources
Clifford et al. Tracking provenance in a virtual data grid
US20240013456A1 (en) Computerized systems and methods for graph data modeling
CN110162544B (en) Heterogeneous data source data acquisition method and device
WO2019019769A1 (en) Service function implementation method, device, computer apparatus and storage medium
WO2019056494A1 (en) Chart generation method, device, computer apparatus, and storage medium
CN109376069B (en) Method and device for generating test report
CN110737689B (en) Data standard compliance detection method, device, system and storage medium
CN111177113B (en) Data migration method, device, computer equipment and storage medium
WO2019019647A1 (en) Method and system for determining application program testing range, server and storage medium
WO2018033063A1 (en) Interface file parsing method and apparatus
WO2014167647A1 (en) Data management device, date management method, and permanent storage medium
WO2024001493A1 (en) Visual data analysis method and device
WO2019071898A1 (en) Electronic device, database query script generation method and storage medium
CN112417027A (en) Data processing method, system, terminal and medium for visual operation database
WO2019085235A1 (en) Picture processing method, and user interface display method and device
JP2019101889A (en) Test execution device and program
JP2017524211A (en) Method for unifying information and tools from a plurality of information sources, and computer program product and apparatus applying said method
WO2019085354A1 (en) Excel system interface-based database linkage method, electronic device, and storage medium
CN114020813A (en) Data comparison method, device and equipment based on Hash algorithm and storage medium
US20120066655A1 (en) Electronic device and method for inspecting electrical rules of circuit boards
CN113761040A (en) Database and application program bidirectional mapping method, device, medium and program product

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 05.08.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18843130

Country of ref document: EP

Kind code of ref document: A1