CN117492863A - Data access method, device and equipment - Google Patents

Data access method, device and equipment Download PDF

Info

Publication number
CN117492863A
CN117492863A CN202311489495.4A CN202311489495A CN117492863A CN 117492863 A CN117492863 A CN 117492863A CN 202311489495 A CN202311489495 A CN 202311489495A CN 117492863 A CN117492863 A CN 117492863A
Authority
CN
China
Prior art keywords
data access
plug
data
target
preset
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202311489495.4A
Other languages
Chinese (zh)
Inventor
洪文明
张喜龙
刘兵
王金尚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Yuce Technology Co ltd
Original Assignee
Zhejiang Yuce Technology Co ltd
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 Zhejiang Yuce Technology Co ltd filed Critical Zhejiang Yuce Technology Co ltd
Priority to CN202311489495.4A priority Critical patent/CN117492863A/en
Publication of CN117492863A publication Critical patent/CN117492863A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a method, a device and equipment for data access, and belongs to the technical field of data transmission. According to the invention, a plurality of preset data access plug-ins matched with a data output interface are determined by responding to a plug-in selection instruction of a user; responding to a plug-in arrangement instruction of a user, carrying out combined arrangement on a plurality of preset data access plug-ins to obtain a target data access interface, and generating corresponding target script data; then, responding to the data access instruction of the user, analyzing and processing the target script data, executing a corresponding data access task to obtain target data, and storing the target data in a preset database. And the target data access interface is obtained by combining and arranging the preset data access plug-ins, so that the data access is completed, the development period of the data access is shortened, and the response speed is improved.

Description

Data access method, device and equipment
Technical Field
The invention belongs to the technical field of data transmission, and particularly relates to a method, a device and equipment for data access.
Background
With the rapid development of information technology, the internet is popularized to various industries, and the business of the e-commerce company is increased, so that the e-commerce company needs to acquire information of various products from different suppliers, and integrate the acquired product information into a database for analysis and display.
At present, the API docking is the most common data access mode, however, when the data access mode is used for data receiving, professional developers are required to re-develop and maintain each API interface due to different types of the API interfaces of different data platforms, and the re-development period is long, so that the data access efficiency is low and the response speed is slow.
Disclosure of Invention
Therefore, the invention provides a method, a device and equipment for data access, which are helpful to solve the problems of long development period and slow response speed caused by the need of matching a plurality of different data interfaces in the data access process.
In order to achieve the above purpose, the invention adopts the following technical scheme:
in a first aspect, the present invention provides a method for data access, including:
responding to a plug-in selection instruction of a user, and determining a plurality of preset data access plug-ins matched with the data output interface;
responding to a plug-in arrangement instruction of a user, carrying out combined arrangement on a plurality of preset data access plug-ins to obtain a target data access interface, and generating corresponding target script data;
and responding to a data access instruction of a user, analyzing the target script data, executing a corresponding data access task to obtain target data, and storing the target data in a preset database.
Further, the step of combining and arranging the plurality of data access plug-ins to obtain a target data access interface includes:
and according to the type of the data output interface, combining and arranging a plurality of preset data access plug-ins through preset condition elements, and defining the flow and sequence of data access to obtain the target data access interface.
Further, the preset condition element is an element for connecting a plurality of preset data access plugins according to condition judgment logic set by a user.
Further, the method further comprises:
when the data output interface is changed, corresponding target script data is updated in response to a plug-in modification instruction of a user, and the updated target data access interface is obtained.
Further, the method further comprises:
and exporting the target script data so as to enable a user to multiplex the target data access interface.
In a second aspect, the present invention provides an apparatus for data access, comprising:
the plug-in selection module is used for responding to a plug-in selection instruction of a user and determining a plurality of preset data access plug-ins matched with the data output interface;
the plug-in arrangement module is used for responding to plug-in arrangement instructions of users, carrying out combination arrangement on a plurality of preset data access plug-ins to obtain a target data access interface and generating corresponding target script data;
and the data access module is used for responding to the data access instruction of the user, analyzing the target script data, executing a corresponding data access task, obtaining target data and storing the target data in a preset database.
Further, the plug-in arrangement module is specifically configured to:
and according to the type of the data output interface, combining and arranging a plurality of preset data access plug-ins through preset condition elements, and defining the flow and sequence of data access to obtain the target data access interface.
Further, the device further comprises a plug-in updating module, and the plug-in updating module is specifically configured to:
when the data output interface is changed, corresponding target script data is updated in response to a plug-in modification instruction of a user, and the updated target data access interface is obtained.
In a third aspect, the present invention provides a data access device, comprising:
one or more memories having executable programs stored thereon;
one or more processors configured to execute the executable program in the memory to implement the steps of any of the methods described above.
The invention adopts the technical proposal and has at least the following beneficial effects:
according to the invention, a plurality of preset data access plug-ins matched with a data output interface are determined by responding to a plug-in selection instruction of a user; responding to a plug-in arrangement instruction of a user, carrying out combined arrangement on a plurality of preset data access plug-ins to obtain a target data access interface, and generating corresponding target script data; then, responding to the data access instruction of the user, analyzing and processing the target script data, executing a corresponding data access task to obtain target data, and storing the target data in a preset database. And the target data access interface is obtained by combining and arranging the preset data access plug-ins, so that the data access is completed, the development period of the data access is shortened, and the response speed is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of data access according to an embodiment of the present invention;
FIG. 2 is a block diagram of an apparatus for data access according to an embodiment of the present invention;
FIG. 3 is a block diagram of another data access device according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating a data access device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, based on the examples herein, which are within the scope of the invention as defined by the claims, will be within the scope of the invention as defined by the claims.
Referring to fig. 1, fig. 1 is a flowchart of a method for data access according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S11, responding to a plug-in selection instruction of a user, and determining a plurality of preset data access plug-ins matched with the data output interface;
step S12, responding to a plug-in arrangement instruction of a user, carrying out combination arrangement on a plurality of preset data access plug-ins to obtain a target data access interface, and generating corresponding target script data;
and step S13, responding to a data access instruction of a user, analyzing the target script data, executing a corresponding data access task to obtain target data, and storing the target data in a preset database.
It should be noted that, in this embodiment, the execution body is a device terminal or a server.
Specifically, in this embodiment, the device terminal first forms a preset data access plug-in library in the system, where a plurality of preset data access plug-ins of multiple types are defined in the plug-in library, the preset data access plug-in library covers data sources and data output interface types of multiple common data platforms, such as JSON data and Restful API, where different types of data sources correspond to different data output interfaces, and common output interface types include a file interface, a WEB interface, a database interface, and a third party API interface, where the third party API interface is a different application program interface provided by a third party. Thus, there are multiple types of preset data access plugins.
In the process of data access, a user selects a proper plug-in according to service requirements, and a device terminal responds to a plug-in selection instruction of the user to determine a plurality of preset data access plug-ins matched with a data output interface; and then, the user performs simple page operation to arrange the selected multiple preset data access plugins, and at the moment, the terminal equipment responds to the plugin arrangement instruction of the user to carry out combined arrangement on the multiple preset data access plugins so as to obtain a target data access interface and generate corresponding target script data. The target data access interface is a new data access interface which is obtained by customizing and developing the target data access interface according to different data sources or data output interfaces. And finally, responding to a data access instruction of the user, analyzing and processing the target script data by the terminal equipment, executing a corresponding data access task, pulling the data to obtain target data, and storing the target data in a preset database.
It can be understood that the invention determines a plurality of preset data access plugins matched with the data output interface by responding to a plugin selection instruction of a user; responding to a plug-in arrangement instruction of a user, carrying out combined arrangement on a plurality of preset data access plug-ins to obtain a target data access interface, and generating corresponding target script data; then, responding to the data access instruction of the user, analyzing and processing the target script data, executing a corresponding data access task to obtain target data, and storing the target data in a preset database. And the target data access interface is obtained by combining and arranging the preset data access plug-ins, so that the data access is completed, the development period of the data access is shortened, and the response speed is improved.
It should be noted that, in the process of developing a new data access interface, a user only needs to pay attention to customized development of different data sources or interfaces, and a common user who is not a developer can develop a corresponding interface after being simply trained, so that the development period of data access is greatly shortened.
It should be noted that, the user can also input corresponding data script in the system page of the equipment terminal to perform real-time test and debug, without depending on developers and local environments, so that the debugging process is simplified, and the debugging becomes easier.
Further, the step of combining and arranging the plurality of data access plug-ins to obtain a target data access interface includes:
and according to the type of the data output interface, combining and arranging a plurality of preset data access plug-ins through preset condition elements, and defining the flow and sequence of data access to obtain the target data access interface.
Further, the preset condition element is an element for connecting a plurality of preset data access plugins according to condition judgment logic set by a user.
Specifically, the preset condition element is an element for connecting a plurality of preset data access plug-ins according to condition judgment logic set by a user.
Because the API interface types of different data platforms are different, namely the types of the data output interfaces are different, selecting proper preset data access plug-ins according to the different data output interfaces, selecting corresponding preset condition elements according to condition judgment logic set by a user, combining and connecting a plurality of preset data access plug-ins through the preset condition elements, and defining the flow and sequence of data access, thereby obtaining corresponding target data access interfaces. The target data access interface can realize data access from the API interface of the corresponding data platform.
For example, when the data output interface outputs in JSON format, before the data access plug-ins are assembled, the service platform used needs to be confirmed, and the service platform needs to be parsed and the prerequisite steps of pulling the platform data are automatically executed. The process of combining and arranging the data access plug-ins is as follows: defining a service platform; combining and arranging a plurality of preset data access plug-ins through a preset condition element to obtain a target data access interface, and pulling data of an output interface corresponding to the platform by using the target data access interface; judging whether circulation paging is needed to acquire target data according to the needs of the scene; processing the obtained target data; finally, the target data is output to a corresponding database or file system.
Further, the method further comprises:
when the data output interface is changed, corresponding target script data is updated in response to a plug-in modification instruction of a user, and the updated target data access interface is obtained.
Specifically, when the data output interface is changed, that is, the API of the service is changed, at this time, the user only needs to modify the corresponding plug-in script data to obtain the updated target data access interface, and complex processes such as packaging and publishing are not needed, so that the response speed is improved.
Further, the method further comprises:
and exporting the target script data so as to enable a user to multiplex the target data access interface.
Specifically, the target script data can be exported and packaged into a data access interface component, so that the component can be directly reused later, and the user does not need to repeatedly develop the component.
Referring to fig. 2, fig. 2 is a schematic block diagram of a data access device according to an embodiment of the present invention, where the data access device includes:
a plug-in selection module 21, configured to determine a plurality of preset data access plug-ins matched with the data output interface in response to a plug-in selection instruction of a user;
the plug-in arrangement module 22 is configured to respond to a plug-in arrangement instruction of a user, perform combined arrangement on a plurality of preset data access plug-ins, obtain a target data access interface, and generate corresponding target script data;
the data access module 23 is configured to respond to a data access instruction of a user, perform analysis processing on the target script data, perform a corresponding data access task, obtain target data, and store the target data in a preset database.
Further, the plug-in arrangement module 22 is specifically configured to:
and according to the type of the data output interface, combining and arranging a plurality of preset data access plug-ins through preset condition elements, and defining the flow and sequence of data access to obtain the target data access interface.
Referring to fig. 3, fig. 3 is a schematic block diagram of another data access device provided in the present invention, where the data access device further includes a plug-in update module 24, and the plug-in update module 24 is specifically configured to:
when the data output interface is changed, corresponding target script data is updated in response to a plug-in modification instruction of a user, and the updated target data access interface is obtained.
The specific manner in which the respective modules of the apparatus for data access in the above embodiment perform operations has been described in detail in the above related method embodiment, and will not be described in detail herein.
Referring to fig. 4, fig. 4 is a schematic block diagram of a data access device according to the present invention, where the data access device includes:
one or more memories 31 on which executable programs are stored;
one or more processors 32 for executing the executable programs in the memory 31 to implement the steps of any of the methods described above.
The specific manner in which the processor 32 executes the program in the memory 31 of the apparatus for data access in the above embodiment has been described in detail in the embodiment concerning the method, and will not be described in detail here.
It is to be understood that the same or similar parts in the above embodiments may be referred to each other, and that in some embodiments, the same or similar parts in other embodiments may be referred to.
It should be noted that in the description of the present invention, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise indicated, the meaning of "plurality", "multiple" means at least two.
It will be understood that when an element is referred to as being "mounted" or "disposed" on another element, it can be directly on the other element or intervening elements may also be present; when an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may be present, and further, as used herein, connection may comprise a wireless connection; the use of the term "and/or" includes any and all combinations of one or more of the associated listed items.
Any process or method description in a flowchart or otherwise described herein may be understood as: means, segments, or portions of code representing executable instructions including one or more steps for implementing specific logical functions or processes are included in the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including in a substantially simultaneous manner or in an inverse order, depending upon the function involved, as would be understood by those skilled in the art of embodiments of the present invention.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.

Claims (9)

1. A method of data access, comprising:
responding to a plug-in selection instruction of a user, and determining a plurality of preset data access plug-ins matched with the data output interface;
responding to a plug-in arrangement instruction of a user, carrying out combined arrangement on a plurality of preset data access plug-ins to obtain a target data access interface, and generating corresponding target script data;
and responding to a data access instruction of a user, analyzing the target script data, executing a corresponding data access task to obtain target data, and storing the target data in a preset database.
2. The method according to claim 1, wherein the step of combining and arranging the plurality of data access plugins to obtain a target data access interface includes:
and according to the type of the data output interface, combining and arranging a plurality of preset data access plug-ins through preset condition elements, and defining the flow and sequence of data access to obtain the target data access interface.
3. The method of claim 2, wherein the preset condition element is an element for connecting a plurality of the preset data access plugins according to condition judgment logic set by a user.
4. The method according to claim 1, wherein the method further comprises:
when the data output interface is changed, corresponding target script data is updated in response to a plug-in modification instruction of a user, and the updated target data access interface is obtained.
5. The method according to claim 1, wherein the method further comprises:
and exporting the target script data so as to enable a user to multiplex the target data access interface.
6. An apparatus for data access, comprising:
the plug-in selection module is used for responding to a plug-in selection instruction of a user and determining a plurality of preset data access plug-ins matched with the data output interface;
the plug-in arrangement module is used for responding to plug-in arrangement instructions of users, carrying out combination arrangement on a plurality of preset data access plug-ins to obtain a target data access interface and generating corresponding target script data;
and the data access module is used for responding to the data access instruction of the user, analyzing the target script data, executing a corresponding data access task, obtaining target data and storing the target data in a preset database.
7. The apparatus of claim 6, wherein the plug-in orchestration module is specifically configured to:
and according to the type of the data output interface, combining and arranging a plurality of preset data access plug-ins through preset condition elements, and defining the flow and sequence of data access to obtain the target data access interface.
8. The apparatus of claim 6, further comprising a plug-in update module, the plug-in update module being specifically configured to:
when the data output interface is changed, corresponding target script data is updated in response to a plug-in modification instruction of a user, and the updated target data access interface is obtained.
9. A data access device, comprising:
one or more memories having executable programs stored thereon;
one or more processors configured to execute the executable program in the memory to implement the steps of the method of any one of claims 1-5.
CN202311489495.4A 2023-11-08 2023-11-08 Data access method, device and equipment Pending CN117492863A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311489495.4A CN117492863A (en) 2023-11-08 2023-11-08 Data access method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311489495.4A CN117492863A (en) 2023-11-08 2023-11-08 Data access method, device and equipment

Publications (1)

Publication Number Publication Date
CN117492863A true CN117492863A (en) 2024-02-02

Family

ID=89682438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311489495.4A Pending CN117492863A (en) 2023-11-08 2023-11-08 Data access method, device and equipment

Country Status (1)

Country Link
CN (1) CN117492863A (en)

Similar Documents

Publication Publication Date Title
CN108958736B (en) Page generation method and device, electronic equipment and computer readable medium
CN110134386B (en) Program editing method and device
US20080209405A1 (en) Distributed debugging for a visual programming language
CN106648556B (en) Method and device for front-end and back-end integrated development test
CN113032244B (en) Interface test method, device, computer system and computer readable storage medium
US20120174068A1 (en) Testing Software Code
CN110209569B (en) Interface test method, interface test device and storage medium
CN109582317B (en) Method and apparatus for debugging hosted applications
CN110780874A (en) Method and apparatus for generating information
CN114625448A (en) Flow generation method and device combining RPA and AI, electronic equipment and storage medium
US11354122B2 (en) Micro-application creation and execution
CN117492863A (en) Data access method, device and equipment
CN113377648B (en) Software system diagnosis method, device, electronic equipment and computer readable medium
US11983090B2 (en) Setting breakpoints for source code segments enclosed by macros
CN112068895B (en) Code configuration method, device, video playing equipment and storage medium
CN113238967A (en) Test case generation method and device
CN114936146A (en) Service debugging method and device, storage medium and electronic equipment
CN114924963A (en) Distributed execution method, device, equipment and medium for webpage compatibility test
CN111176624B (en) Method and device for generating stream type calculation index
CN113885841A (en) Script generation method and device, electronic equipment and readable medium
CN111338968A (en) Project function module debugging method, device, medium and electronic equipment
CN112882698A (en) Development environment generation method and device, computer storage medium and electronic device
CN112256252A (en) Interface generation method and device, storage medium and electronic equipment
CN111158684A (en) System creation method, device, electronic equipment and readable storage medium
CN115857900B (en) Automatic code generation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination