WO2018201896A1 - 表结构建模方法、装置、服务器及介质 - Google Patents

表结构建模方法、装置、服务器及介质 Download PDF

Info

Publication number
WO2018201896A1
WO2018201896A1 PCT/CN2018/083552 CN2018083552W WO2018201896A1 WO 2018201896 A1 WO2018201896 A1 WO 2018201896A1 CN 2018083552 W CN2018083552 W CN 2018083552W WO 2018201896 A1 WO2018201896 A1 WO 2018201896A1
Authority
WO
WIPO (PCT)
Prior art keywords
table structures
structures
abnormality
information
modeling
Prior art date
Application number
PCT/CN2018/083552
Other languages
English (en)
French (fr)
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 WO2018201896A1 publication Critical patent/WO2018201896A1/zh

Links

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/26Visual data mining; Browsing structured data
    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • 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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/288Entity relationship models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Definitions

  • the present application belongs to the field of data processing technologies, and in particular, to a table structure modeling method, apparatus, server, and medium.
  • the data model In the development of the project, the data model is usually established. However, in order to improve the efficiency of project development, there is usually only a table structure in the data model. When the new personnel take over the project, the data model structure is not clear. This can lead to inefficient work, and can not do a good job of correlation analysis, and may lead to the risk of modifying the code.
  • the embodiment of the present application provides a method, a device, a server, and a medium for modeling a table structure, so as to solve the problem that the data model structure is unclear in the prior art, and the association impact analysis cannot be performed well, which may result in modification of the code. The issue of risk.
  • a first aspect of the embodiments of the present application provides a table structure modeling method, including:
  • each of the table structures containing corresponding code information, and each of the table structures contains different code information
  • each of the table structures is modeled, and the model includes the association information between the table structures.
  • a second aspect of an embodiment of the present application provides a table structure modeling apparatus including a module/unit for performing the table structure modeling method of the above first aspect.
  • a third aspect of an embodiment of the present application provides a server including a memory and a processor, the memory storing computer readable instructions executable on the processor, the processor executing the computer readable
  • the steps of the table structure modeling method as described in the first aspect are implemented upon instruction.
  • a fourth aspect of the embodiments of the present application provides a computer readable storage medium storing computer readable instructions, the computer readable instructions being executed by a processor to implement the first aspect as described in the first aspect The steps of the table structure modeling method.
  • the data between each of the table structures is detected by detecting each of the table structures and obtaining association information between the table structures, and according to the association relationship between the table structures. Whether there is an abnormality in the modulo, and when there is no abnormality in data modeling between the respective table structures, data modeling is performed on each of the table structures, and the data model includes association information between the table structures, Therefore, the staff participating in the project can intuitively and quickly understand the structure of the data model and the related information between the various table structures, thereby improving work efficiency, and can perform correlation analysis and eliminate the risk of modifying the code.
  • FIG. 1 is a flowchart of a method for modeling a table structure provided by an embodiment of the present application
  • step S102 in FIG. 1 is a flowchart of an implementation of step S102 in FIG. 1;
  • FIG. 3 is a specific flowchart of a table structure modeling method provided by an embodiment of the present application.
  • FIG. 4 is a structural block diagram of a table structure modeling apparatus according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a server provided by an embodiment of the present application.
  • FIG. 1 is a flowchart showing an implementation process of a table structure modeling method provided by an embodiment of the present application, which is described in detail as follows:
  • Step S101 Upload at least one table structure, each of the table structures includes corresponding code information, and each of the table structures includes different code information.
  • the table structure may be a table structure in the form of an excel file, each table structure includes corresponding code information to implement a corresponding function, and each table structure is different according to functions, so the corresponding code information is also basically different.
  • Step S102 detecting each of the table structures and acquiring association information between the table structures.
  • the table structure may further include a number and a field.
  • each table structure may include a number, which is a unique identifier of the corresponding table structure; each table structure contains a field that has a certain relevance according to design requirements.
  • step S102 can be implemented by the following process:
  • step S201 the numbers and fields included in each of the table structures are detected.
  • each table structure can include a number, the number between each table structure has a certain relevance according to design requirements; each table structure also has a certain relevance according to design requirements. Therefore, you can obtain the association information between the individual table structures by detecting the number and field contained in each table structure.
  • Step S202 Acquire association information between each of the table structures according to numbers and fields included in each of the table structures.
  • the association information between the respective table structures includes, but is not limited to, a service relationship, a data flow relationship, and the like between the respective table structures.
  • the association information between the respective table structures further includes: an association relationship between any two table structures, an association relationship between the plurality of table structures, and the like. Through the association relationship between the obtained table structures, the network of associations between the table structures can be initially known.
  • each table structure may also include information such as a name, a length, a primary key, and an index according to actual needs.
  • Step S103 Detect whether there is an abnormality in data modeling between each of the table structures according to an association relationship between each of the table structures.
  • step S102 After the association relationship between the table structures is acquired in step S102, since it is not clear whether data modeling can be successfully performed between the respective table structures, it is necessary to detect in advance whether there is an abnormality in data modeling between the respective table structures.
  • step S103 may be: generating a script for the association information between the table structures, and performing pre-execution processing on the script to detect data between the table structures. Model for abnormalities.
  • the relationship between the table structures may be generated into a script form, and then the generated script is pre-executed to detect whether there is an abnormality in data modeling between the table structures and what is abnormal.
  • the table structure modeling method may further include: when detecting that there is an abnormality in data modeling between the respective table structures, outputting abnormal information to remind the staff of each table structure.
  • the abnormal information existing in the data modeling is outputted to the staff, and the staff can perform targeted processing based on the abnormal information.
  • Step S104 When there is no abnormality in data modeling between the respective table structures, data modeling is performed on each of the table structures, and the data model includes association information between the table structures.
  • step S103 when there is no abnormality in data modeling between the respective table structures in step S103, data modeling is performed on each table structure, and a data model including association information between the respective table structures has been formed.
  • the data model may also include associations between various services, and associations between various systems.
  • the service is developed by the user according to actual needs. Each service is embodied by multiple table structures. Therefore, each service information and related information between each service can be generated and placed in the data model.
  • the system is developed by the user through various table structures according to actual needs, and each system is embodied by multiple table structures, so that each system information and associated information between the various systems can be generated and placed in the data model.
  • the table structure modeling method may further include: displaying the data model as a visual image, and displaying, in the visualization image, association information between each of the table structures and each of the table structures.
  • the data model is displayed as a visual image, and then the association information between each table structure and each table structure is displayed in a visual image manner, so that the user can intuitively and quickly understand the relationship between the table structures. , the relationship between the various businesses, and the relationship between the various systems.
  • the table structure modeling method may further include: generating a service data map according to the data model.
  • the data graph of each service can be generated through the established data model, so that the user can intuitively understand the data flow of each service.
  • the table structure modeling method may specifically include the following process:
  • Step S301 uploading at least one table structure, each of the table structures includes corresponding code information, and each of the table structures includes different code information.
  • Step S302 detecting the numbers and fields included in each of the table structures.
  • Step S303 Acquire association information between each of the table structures according to numbers and fields included in each of the table structures.
  • Step S304 generating a script for the association information between the table structures, and performing pre-execution processing on the script to detect whether there is an abnormality in data modeling between the table structures.
  • Step S305 When there is no abnormality in data modeling between the respective table structures, data modeling is performed on each of the table structures, and the data model includes association information between the table structures.
  • Step S306 the data model is displayed as a visualized image, and the related information between each of the table structure and each of the table structures is displayed in the visualized image.
  • Step S307 when it is detected that there is an abnormality in data modeling between the respective table structures, the abnormality information is output.
  • the table structure modeling method detects each of the table structures and acquires association information between the table structures, and detects an association between each of the table structures according to an association relationship between the table structures Whether there is an abnormality in data modeling, and when there is no abnormality in data modeling between the respective table structures, data modeling is performed on each of the table structures, and the data model includes associations between the table structures. Information, so that the staff involved in the project can intuitively and quickly understand the structure of the data model and the related information between the various table structures, improve work efficiency, and can do the correlation impact analysis to eliminate the risk of modifying the code. .
  • FIG. 4 is a structural block diagram of the table structure modeling apparatus provided by the embodiment of the present application. For the convenience of explanation, only the parts related to the present embodiment are shown.
  • the apparatus includes:
  • the uploading module 401 is configured to upload at least one table structure, each of the table structures includes corresponding code information, and each of the table structures includes different code information.
  • the association detection module 402 is configured to detect each of the table structures and obtain association information between the table structures.
  • the abnormality detecting module 403 is configured to detect, according to the association relationship between the table structures detected by the association detecting module 402, whether there is an abnormality in data modeling between each of the table structures.
  • the modeling module 404 is configured to perform data modeling on each of the table structures when the abnormality detecting module 403 does not detect that there is an abnormality in modeling between the table structures, and the data model includes each of the tables. Association information between structures.
  • the table structure further includes a number and a field.
  • the association detection module 402 can include a detection unit 501 and an acquisition unit 502.
  • the detecting unit 501 is configured to detect numbers and fields included in each of the table structures.
  • the obtaining unit 502 is configured to obtain association information between the table structures according to numbers and fields included in each of the table structures.
  • the table structure modeling device may further include a display module 405.
  • the display module 405 is configured to display the data model as a visualized image, and the related information between each of the table structures and each of the table structures is displayed in the visualized image.
  • the abnormality detecting module 403 is specifically configured to: generate a script for the association information between the table structures, and perform pre-execution processing on the script to detect modeling between each of the table structures. Is there an exception?
  • the table structure modeling device may further include an information output module 406.
  • the information output module 406 is configured to output abnormality information when the abnormality detecting module 403 detects that there is an abnormality in data modeling between the respective table structures.
  • the data between each of the table structures is detected by detecting each of the table structures and obtaining association information between the table structures, and according to the association relationship between the table structures. Whether there is an abnormality in the modulo, and when there is no abnormality in data modeling between the respective table structures, data modeling is performed on each of the table structures, and the data model includes association information between the table structures, Therefore, the staff participating in the project can intuitively and quickly understand the structure of the data model and the related information between the various table structures, thereby improving work efficiency, and can perform correlation analysis and eliminate the risk of modifying the code.
  • FIG. 5 is a schematic diagram of a server according to an embodiment of the present application.
  • the server 6 of this embodiment includes a processor 60 and a memory 61 in which computer readable instructions 62, such as a table structure modeling program, executable on the processor 60 are stored. .
  • computer readable instructions 62 such as a table structure modeling program, executable on the processor 60 are stored.
  • the processor 60 executes the computer readable instructions 62, the steps in the embodiments of the various table structure modeling methods described above are implemented, such as steps 101 to 103 shown in FIG.
  • the processor 60 when executing the computer readable instructions 62, implements the functions of the various modules/units in the various apparatus embodiments described above, such as the functions of the modules 401 through 404 shown in FIG.
  • the computer readable instructions 62 may be partitioned into one or more modules/units that are stored in the memory 61 and executed by the processor 60, To complete this application.
  • the one or more modules/units may be a series of computer readable instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer readable instructions 62 in the server 6.
  • the server 6 can be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the server may include, but is not limited to, processor 60 and memory 61. It will be understood by those skilled in the art that FIG. 5 is merely an example of the server 6, and does not constitute a limitation to the server 6, and may include more or less components than those illustrated, or combine some components, or different components, such as
  • the server may also include an input and output device, a network access device, a bus, and the like.
  • the so-called processor 60 can be a central processing unit (Central Processing Unit, CPU), can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 61 may be an internal storage unit of the server 6, such as a hard disk or a memory of the server 6.
  • the memory 61 may also be an external storage device of the server 6, such as a plug-in hard disk equipped on the server 6, a smart memory card (SMC), and a Secure Digital (SD) card. Flash card, etc.
  • the memory 61 may also include both an internal storage unit of the server 6 and an external storage device.
  • the memory 61 is for storing the computer readable instructions and other programs and data required by the server.
  • the memory 61 can also be used to temporarily store data that has been output or is about to be output.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • a computer readable storage medium A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .

Abstract

本方案提供了一种表结构建模方法、装置、服务器及介质,适用于数据处理技术领域,该方法包括:上传至少一个表结构,每个所述表结构包含相应的代码信息,且各个所述表结构包含的代码信息不同;检测各个所述表结构并获取各个所述表结构之间的关联信息;根据各个所述表结构之间的关联关系,检测各个所述表结构之间的数据建模是否存在异常;在未检测到各个所述表结构之间的数据建模存在异常时,对各个所述表结构进行数据建模,数据模型中包含各个所述表结构之间的关联信息。本方案能够使得参与该项目的工作人员,直观快速的了解数据模型的结构和各个表结构之间的关联信息等,提高工作效率,且能够做好关联影响分析,消除修改代码带来的风险。

Description

表结构建模方法、装置、服务器及介质
本申请要求于2017年05月04日提交中国专利局、申请号为201710307284.2 、发明名称为“表结构建模方法和服务器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于数据处理技术领域,尤其涉及一种表结构建模方法、装置、服务器及介质。
背景技术
在进行项目开发时,通常会进行数据模型的建立,但为了提高项目开发效率,通常情况下数据模型中只有表结构,对于新进人员接手该项目进行处理时,由于并不清楚数据模型结构,会导致工作效率低下,且不能做好关联影响分析,以及可能导致修改代码带来的风险。
技术问题
有鉴于此,本申请实施例提供了一种表结构建模方法、装置、服务器及介质,以解决现有技术中不清楚数据模型结构,不能做好关联影响分析,可能导致修改代码带来的风险的问题。
技术解决方案
本申请实施例的第一方面提供了一种表结构建模方法,包括:
传至少一个表结构,每个所述表结构包含相应的代码信息,且各个所述表结构包含的代码信息不同;
检测各个所述表结构并获取各个所述表结构之间的关联信息;
根据各个所述表结构之间的关联关系,检测各个所述表结构之间的建模是否存在异常;
在未检测到各个所述表结构之间的建模存在异常时,对各个所述表结构进行建模,建模模型中包含各个所述表结构之间的关联信息。
本申请实施例的第二方面提供了一种表结构建模装置,该表结构建模装置包括用于执行上述第一方面所述的表结构建模方法的模块/单元。
本申请实施例的第三方面提供了一种服务器,包括存储器以及处理器,所述存储器中存储有可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如第一方面所述的表结构建模方法的步骤。
本申请实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如第一方面所述的表结构建模方法的步骤。
有益效果
本申请实施例中,通过检测各个所述表结构并获取各个所述表结构之间的关联信息,并根据各个所述表结构之间的关联关系,检测各个所述表结构之间的数据建模是否存在异常,在未检测到各个所述表结构之间的数据建模存在异常时,对各个所述表结构进行数据建模,数据模型中包含各个所述表结构之间的关联信息,从而能够使得参与该项目的工作人员,直观快速的了解数据模型的结构和各个表结构之间的关联信息等,提高工作效率,且能够做好关联影响分析,消除修改代码带来的风险。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的表结构建模方法的流程图;
图2是图1中步骤S102的实现流程图;
图3是本申请实施例提供的表结构建模方法的具体流程图;
图4是本申请实施例提供的表结构建模装置的结构框图;
图5是本申请实施例提供的服务器的示意图。
本发明的实施方式
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。
图1示出了本申请实施例提供的表结构建模方法的实现流程,详述如下:
步骤S101,上传至少一个表结构,每个所述表结构包含相应的代码信息,且各个所述表结构包含的代码信息不同。
其中,表结构可以为excel文件形式的表结构,每个表结构包括有相应的代码信息以实现相应的功能,而且各个表结构由于功能划分不同,因此对应的代码信息也基本不同。
步骤S102,检测各个所述表结构并获取各个所述表结构之间的关联信息。
其中,所述表结构还可以包含编号和字段。具体的,每个表结构可以包含一个编号,该编号为对应表结构的唯一标识;每个表结构所包含的字段根据设计需要会具有一定的关联性。
参见图2,一个实施例中,步骤S102可以通过以下过程实现:
步骤S201,检测各个所述表结构所包含的编号和字段。
具体的,由于每个表结构可以包含一个编号,各个表结构之间的编号根据设计需要会具有一定的关联性;每个表结构所包含的字段之间也会根据设计需要具有一定的关联性,因此,可以通过检测各个表结构所包含的编号和字段,以获取各个表结构之间的关联信息。
步骤S202,根据各个所述表结构所包含的编号和字段,获取各个所述表结构之间的关联信息。
其中,各个所述表结构之间的关联信息包括但不限于各个表结构之间的业务关系、数据流关系等。各个所述表结构之间的关联信息还包括:任意两个表结构之间的关联关系,以及多个表结构之间的关联关系等。通过获取到的各个表结构之间的关联关系,可以初步知悉各个表结构之间的关联关系网。
另外,各个表结构根据实际需要还可以包含名称、长度、主键和索引等信息。
步骤S103,根据各个所述表结构之间的关联关系,检测各个所述表结构之间的数据建模是否存在异常。
其中,通过步骤S102获取到各个表结构之间的关联关系之后,由于不清楚各个表结构之间是否能够数据建模成功,因此要事先检测各个表结构之间的数据建模是否会存在异常。
作为一种可实施方式,步骤S103具体的实现过程可以为:将各个所述表结构之间的关联信息生成脚本,通过对所述脚本进行预执行处理,检测各个所述表结构之间的数据建模是否存在异常。
具体的,可以通过将各个表结构之间的关联关系生成脚本的形式,然后对所生成的脚本进行预执行处理,以检测各个表结构之间的数据建模是否存在异常,以及存在什么异常。
可选的,在步骤S103之后,该表结构建模方法还可以包括:在检测到所述各个所述表结构之间的数据建模存在异常时,输出异常信息,以提醒工作人员各个表结构之间进行数据建模会存在的异常信息,将异常信息输出给工作人员,能够使工作人员根据该异常信息进行针对性处理。
步骤S104,在未检测到各个所述表结构之间的数据建模存在异常时,对各个所述表结构进行数据建模,数据模型中包含各个所述表结构之间的关联信息。
具体的,在步骤S103中未检测到各个表结构之间的数据建模存在异常时,对各个表结构进行数据建模,已形成包括各个表结构之间的关联信息的数据模型。另外,该数据模型还可以包括各个业务之间的关联关系,以及各个系统之间的关联关系。业务为用户根据实际需要通过各个表结构开发的,各个业务均是通过多个表结构来体现的,因此可以生成各个业务信息和各个业务之间的关联信息,放在数据模型中。同样的,系统为用户根据实际需要通过各个表结构开发的,各个系统均是通过多个表结构来体现的,因此可以生成各个系统信息和各个系统之间的关联信息,放在数据模型中。
可选的,所述表结构建模方法还可以包括:将所述数据模型显示为可视化图像,所述可视化图像中显示有各个所述表结构和各个所述表结构之间的关联信息。具体的,将数据模型显示为可视化图像,然后将各个表结构和各个表结构之间的关联信息以可视化图像的方式显示出来,以方便用户直观的、快速的了解各个表结构之间的关联关系,各个业务之间的关联关系,以及各个系统之间的关联关系。
例如,可以通过点击某个表结构或输入某个表结构编号的方式,显示该表结构与其他表结构之间的关联信息;可以通过输入某个业务名称或编号的方式,显示该业务流程。
可选的,所述表结构建模方法还可以包括:根据所述数据模型生成业务数据图。具体的,可以通过建立的数据模型,生成各个业务的数据图,以方便用户直观了解各个业务的数据流程。
参见图3,一个实施例中,所述表结构建模方法具体可以包括以下过程:
步骤S301,上传至少一个表结构,每个所述表结构包含相应的代码信息,且各个所述表结构包含的代码信息不同。
步骤S302,检测各个所述表结构所包含的编号和字段。
步骤S303,根据各个所述表结构所包含的编号和字段,获取各个所述表结构之间的关联信息。
步骤S304,将各个所述表结构之间的关联信息生成脚本,通过对所述脚本进行预执行处理,检测各个所述表结构之间的数据建模是否存在异常。
步骤S305,在未检测到各个所述表结构之间的数据建模存在异常时,对各个所述表结构进行数据建模,数据模型中包含各个所述表结构之间的关联信息。
步骤S306,将所述数据模型显示为可视化图像,所述可视化图像中显示有各个所述表结构和各个所述表结构之间的关联信息。
步骤S307,在检测到各个所述表结构之间的数据建模存在异常时,输出异常信息。
所述表结构建模方法,通过检测各个所述表结构并获取各个所述表结构之间的关联信息,并根据各个所述表结构之间的关联关系,检测各个所述表结构之间的数据建模是否存在异常,在未检测到各个所述表结构之间的数据建模存在异常时,对各个所述表结构进行数据建模,数据模型中包含各个所述表结构之间的关联信息,从而能够使得参与该项目的工作人员,直观快速的了解数据模型的结构和各个表结构之间的关联信息等,提高工作效率,且能够做好关联影响分析,消除修改代码带来的风险。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
对应于本申请实施例所提供的表结构建模方法,图4示出了本申请实施例提供的表结构建模装置的结构框图。为了便于说明,仅示出了与本实施例相关的部分。
参照图4,该装置包括:
上传模块401,用于上传至少一个表结构,每个所述表结构包含相应的代码信息,且各个所述表结构包含的代码信息不同。
关联检测模块402,用于检测各个所述表结构并获取各个所述表结构之间的关联信息。
异常检测模块403,用于根据所述关联检测模块402检测出的各个所述表结构之间的关联关系,检测各个所述表结构之间的数据建模是否存在异常。
建模模块404,用于在所述异常检测模块403未检测到各个所述表结构之间的建模存在异常时,对各个所述表结构进行数据建模,数据模型中包含各个所述表结构之间的关联信息。
可选的,所述表结构还包含编号和字段。所述关联检测模块402可以包括检测单元501和获取单元502。
其中,检测单元501,用于检测各个所述表结构所包含的编号和字段。
获取单元502,用于根据各个所述表结构所包含的编号和字段,获取各个所述表结构之间的关联信息。
可选的,所述表结构建模装置还可以包括显示模块405。显示模块405,用于将所述数据模型显示为可视化图像,所述可视化图像中显示有各个所述表结构和各个所述表结构之间的关联信息。
可选的,所述异常检测模块403具体可以用于:将各个所述表结构之间的关联信息生成脚本,通过对所述脚本进行预执行处理,检测各个所述表结构之间的建模是否存在异常。
可选的,所述表结构建模装置还可以包括信息输出模块406。信息输出模块406,用于在异常检测模块403检测到各个所述表结构之间的数据建模存在异常时,输出异常信息。
本申请实施例中,通过检测各个所述表结构并获取各个所述表结构之间的关联信息,并根据各个所述表结构之间的关联关系,检测各个所述表结构之间的数据建模是否存在异常,在未检测到各个所述表结构之间的数据建模存在异常时,对各个所述表结构进行数据建模,数据模型中包含各个所述表结构之间的关联信息,从而能够使得参与该项目的工作人员,直观快速的了解数据模型的结构和各个表结构之间的关联信息等,提高工作效率,且能够做好关联影响分析,消除修改代码带来的风险。
图5是本申请一实施例提供的服务器的示意图。如图5所示,该实施例的服务器6包括:处理器60以及存储器61,所述存储器61中存储有可在所述处理器60上运行的计算机可读指令62,例如表结构建模程序。所述处理器60执行所述计算机可读指令62时实现上述各个表结构建模方法实施例中的步骤,例如图1所示的步骤101至103。或者,所述处理器60执行所述计算机可读指令62时实现上述各装置实施例中各模块/单元的功能,例如图4所示模块401至404的功能。
示例性的,所述计算机可读指令62可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器61中,并由所述处理器60执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令段,该指令段用于描述所述计算机可读指令62在所述服务器6中的执行过程。
所述服务器6可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述服务器可包括,但不仅限于处理器60和存储器61。本领域技术人员可以理解,图5仅仅是服务器6的示例,并不构成对服务器6的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述服务器还可以包括输入输出设备、网络接入设备、总线等。
所称处理器60可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
所述存储器61可以是所述服务器6的内部存储单元,例如服务器6的硬盘或内存。所述存储器61也可以是所述服务器6的外部存储设备,例如所述服务器6上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器61还可以既包括所述服务器6的内部存储单元也包括外部存储设备。所述存储器61用于存储所述计算机可读指令以及所述服务器所需的其他程序和数据。所述存储器61还可以用于暂时地存储已经输出或者将要输出的数据。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种表结构建模方法,其特征在于,包括:
    上传至少一个表结构,每个所述表结构包含相应的代码信息,且各个所述表结构包含的代码信息不同;
    检测各个所述表结构并获取各个所述表结构之间的关联信息;
    根据各个所述表结构之间的关联关系,检测各个所述表结构之间的数据建模是否存在异常;
    在未检测到各个所述表结构之间的数据建模存在异常时,对各个所述表结构进行数据建模,数据模型中包含各个所述表结构之间的关联信息。
  2. 如权利要求1所述的表结构建模方法,其特征在于,所述表结构还包含编号和字段;所述检测各个所述表结构并获取各个所述表结构之间的关联信息包括:
    检测各个所述表结构所包含的编号和字段;
    根据各个所述表结构所包含的编号和字段,获取各个所述表结构之间的关联信息。
  3. 如权利要求1所述的表结构建模方法,其特征在于,还包括:
    将所述数据模型显示为可视化图像,所述可视化图像中显示有各个所述表结构和各个所述表结构之间的关联信息。
  4. 如权利要求1所述的表结构建模方法,其特征在于,所述根据各个所述表结构之间的关联关系,检测各个所述表结构之间的数据建模是否存在异常,包括:
    将各个所述表结构之间的关联信息生成脚本,通过对所述脚本进行预执行处理,检测各个所述表结构之间的数据建模是否存在异常。
  5. 如权利要求1至4任一项所述的表结构建模方法,其特征在于,还包括:
    在检测到所述各个所述表结构之间的数据建模存在异常时,输出异常信息。
  6. 一种表结构建模装置,其特征在于,包括:
    上传模块,用于上传至少一个表结构,每个所述表结构包含相应的代码信息,且各个所述表结构包含的代码信息不同;
    关联检测模块,用于检测各个所述表结构并获取各个所述表结构之间的关联信息;
    异常检测模块,用于根据所述关联检测模块检测出的各个所述表结构之间的关联关系,检测各个所述表结构之间的数据建模是否存在异常;
    建模模块,用于在所述异常检测模块未检测到各个所述表结构之间的建模存在异常时,对各个所述表结构进行数据建模,数据模型中包含各个所述表结构之间的关联信息。
  7. 根据权利要求6所述的表结构建模装置,其特征在于,所述表结构还包含编号和字段,所述关联检测模块包括:
    检测单元,用于检测各个所述表结构所包含的编号和字段;
    获取单元,用于根据各个所述表结构所包含的编号和字段,获取各个所述表结构之间的关联信息。
  8. 根据权利要求6所述的表结构建模装置,其特征在于,还包括:
    显示模块,用于将所述数据模型显示为可视化图像,所述可视化图像中显示有各个所述表结构和各个所述表结构之间的关联信息。
  9. 根据权利要求6所述的表结构建模装置,其特征在于,所述异常检测模块具体用于:将各个所述表结构之间的关联信息生成脚本,通过对所述脚本进行预执行处理,检测各个所述表结构之间的建模是否存在异常。
  10. 根据权利要求6至9任一项所述的表结构建模装置,其特征在于,还包括:
    信息输出模块,用于在异常检测模块检测到各个所述表结构之间的数据建模存在异常时,输出异常信息。
  11. 一种服务器,其特征在于,包括存储器以及处理器,所述存储器中存储有可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:
    上传至少一个表结构,每个所述表结构包含相应的代码信息,且各个所述表结构包含的代码信息不同;
    检测各个所述表结构并获取各个所述表结构之间的关联信息;
    根据各个所述表结构之间的关联关系,检测各个所述表结构之间的数据建模是否存在异常;
    在未检测到各个所述表结构之间的数据建模存在异常时,对各个所述表结构进行数据建模,数据模型中包含各个所述表结构之间的关联信息。
  12. 根据权利要求11所述的服务器,其特征在于,所述表结构还包含编号和字段;所述检测各个所述表结构并获取各个所述表结构之间的关联信息具体包括:
    检测各个所述表结构所包含的编号和字段;
    根据各个所述表结构所包含的编号和字段,获取各个所述表结构之间的关联信息。
  13. 根据权利要求11所述的服务器,其特征在于,所述处理器执行所述计算机可读指令时,还实现如下步骤:
    将所述数据模型显示为可视化图像,所述可视化图像中显示有各个所述表结构和各个所述表结构之间的关联信息。
  14. 根据权利要求11所述的服务器,其特征在于,所述根据各个所述表结构之间的关联关系,检测各个所述表结构之间的数据建模是否存在异常具体包括:
    将各个所述表结构之间的关联信息生成脚本,通过对所述脚本进行预执行处理,检测各个所述表结构之间的数据建模是否存在异常。
  15. 根据权利要求11至14任一项所述的服务器,其特征在于,所述处理器执行所述计算机可读指令时,还实现如下步骤:
    在检测到所述各个所述表结构之间的数据建模存在异常时,输出异常信息。
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被至少一个处理器执行时实现如下步骤:
    上传至少一个表结构,每个所述表结构包含相应的代码信息,且各个所述表结构包含的代码信息不同;
    检测各个所述表结构并获取各个所述表结构之间的关联信息;
    根据各个所述表结构之间的关联关系,检测各个所述表结构之间的数据建模是否存在异常;
    在未检测到各个所述表结构之间的数据建模存在异常时,对各个所述表结构进行数据建模,数据模型中包含各个所述表结构之间的关联信息。
  17. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述表结构还包含编号和字段;所述检测各个所述表结构并获取各个所述表结构之间的关联信息具体包括:
    检测各个所述表结构所包含的编号和字段;
    根据各个所述表结构所包含的编号和字段,获取各个所述表结构之间的关联信息。
  18. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述计算机可读指令被至少一个处理器执行时,还实现如下步骤:
    将所述数据模型显示为可视化图像,所述可视化图像中显示有各个所述表结构和各个所述表结构之间的关联信息。
  19. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述根据各个所述表结构之间的关联关系,检测各个所述表结构之间的数据建模是否存在异常具体包括:
    将各个所述表结构之间的关联信息生成脚本,通过对所述脚本进行预执行处理,检测各个所述表结构之间的数据建模是否存在异常。
  20. 根据权利要求16至19任一项所述的计算机可读存储介质,其特征在于,所述计算机可读指令被至少一个处理器执行时,还实现如下步骤:
    在检测到所述各个所述表结构之间的数据建模存在异常时,输出异常信息。
PCT/CN2018/083552 2017-05-04 2018-04-18 表结构建模方法、装置、服务器及介质 WO2018201896A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710307284.2 2017-05-04
CN201710307284.2A CN108255904B (zh) 2017-05-04 2017-05-04 表结构建模方法和服务器

Publications (1)

Publication Number Publication Date
WO2018201896A1 true WO2018201896A1 (zh) 2018-11-08

Family

ID=62721880

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/083552 WO2018201896A1 (zh) 2017-05-04 2018-04-18 表结构建模方法、装置、服务器及介质

Country Status (2)

Country Link
CN (1) CN108255904B (zh)
WO (1) WO2018201896A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1870024A (zh) * 2005-05-27 2006-11-29 国际商业机器公司 系统建模辅助方法和设备
CN101211360A (zh) * 2006-12-28 2008-07-02 鸿富锦精密工业(深圳)有限公司 处理报表数据源中多个数据表格的系统及方法
CN104573100A (zh) * 2015-01-29 2015-04-29 无锡江南计算技术研究所 一种带自增量标识的分步式数据库同步方法
CN105095436A (zh) * 2015-07-23 2015-11-25 苏州国云数据科技有限公司 数据源数据自动建模方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968306B (zh) * 2012-11-29 2016-01-20 广东全通教育股份有限公司 一种基于数据模型驱动的代码自动生成方法和系统
CN104408045A (zh) * 2014-10-24 2015-03-11 浪潮软件股份有限公司 一种数据模型管理和应用的eclipse插件的实现方法
CN106227892B (zh) * 2016-08-24 2020-06-16 深圳市卓讯信息技术有限公司 一种智能分析数据库表关系生成e-r图的方法及装置
CN106599325A (zh) * 2017-01-18 2017-04-26 河海大学 一种基于R和HighCharts的数据挖掘可视化平台的构建方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1870024A (zh) * 2005-05-27 2006-11-29 国际商业机器公司 系统建模辅助方法和设备
CN101211360A (zh) * 2006-12-28 2008-07-02 鸿富锦精密工业(深圳)有限公司 处理报表数据源中多个数据表格的系统及方法
CN104573100A (zh) * 2015-01-29 2015-04-29 无锡江南计算技术研究所 一种带自增量标识的分步式数据库同步方法
CN105095436A (zh) * 2015-07-23 2015-11-25 苏州国云数据科技有限公司 数据源数据自动建模方法

Also Published As

Publication number Publication date
CN108255904B (zh) 2020-09-08
CN108255904A (zh) 2018-07-06

Similar Documents

Publication Publication Date Title
US10348747B2 (en) Non-transitory computer-readable recording medium storing cyber attack analysis support program, cyber attack analysis support method, and cyber attack analysis support device
Yang et al. Scalability and validation of big data bioinformatics software
US9710300B2 (en) Flow topology of computer transactions
US10042932B2 (en) Analytics based on pipes programming model
WO2023056943A1 (zh) 基于物联网规则引擎的终端控制方法、装置、设备及介质
TW201723811A (zh) 於指令集架構中排序資料及合併經排序資料之技術
US20150143327A1 (en) Project management tool
US9471790B2 (en) Remediation of security vulnerabilities in computer software
JP2021193606A (ja) 深層学習に基づく演算子の登録処理方法、装置及び電子機器
US9823905B2 (en) Event based code generation
JP2016514296A5 (zh)
JP6608061B2 (ja) Sns情報に基づくリスクイベント認識システム、方法、電子装置及び記憶媒体
WO2019090691A1 (zh) Monkey测试方法及终端
CN111985194A (zh) 数据存储方法、装置、电子设备及存储介质
WO2018201896A1 (zh) 表结构建模方法、装置、服务器及介质
CN111857883B (zh) 页面数据校验方法、装置、电子设备及存储介质
US10157049B2 (en) Static analysis with input reduction
US20210357991A1 (en) Systems and Methods for Providing a Campaign Design Platform Having a Component Plug-In Framework
WO2018201594A1 (zh) 文件异常检测方法、装置、电子设备及介质
US11182045B2 (en) Modifying application icons based on usage data of the applications
US20110302462A1 (en) Severity map of change-induced pervasive services outages
TW202223920A (zh) 幹細胞密度確定方法、裝置、電腦裝置及儲存介質
CN113157671A (zh) 一种数据监控方法及装置
US8874435B2 (en) Automated glossary creation
CN111143149B (zh) 请求数据回显方法、装置、计算机设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18795113

Country of ref document: EP

Kind code of ref document: A1

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 1205 DATED 19/02/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18795113

Country of ref document: EP

Kind code of ref document: A1