Database extension method and device for low-code platform, processor and electronic equipment

Building and deploying database plug-ins through plug-in abstraction standards solves the problem of low database expansion efficiency on low-code platforms, achieves decoupling and dynamic expansion of databases and platforms, and improves expansion efficiency and flexibility.

CN118626545APending Publication Date: 2024-09-10INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410682624.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Low-code platforms have problems such as increased coupling during database expansion, which leads to high development and maintenance costs and low expansion efficiency.

Method used

Plug-in abstraction standards are used to standardize plug-in construction for multiple databases, and database plug-ins are deployed through the plug-in warehouse to decouple the database from the low-code platform and dynamically load database plug-ins to support flexible expansion.

Benefits of technology

It achieves efficient and low-cost database expansion on a low-code platform, reduces development and maintenance costs, and improves database expansion efficiency and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626545A
    Figure CN118626545A
Patent Text Reader

Abstract

The invention discloses a database extension method and device for a low-code platform, a processor and electronic equipment. The invention relates to the technical field of computers, and the method comprises the steps that multiple databases to be expanded to a low-code platform are obtained, and the low-code platform is at least used for providing data service functions of the multiple databases; a plug-in abstract standard is created in the low-code platform, and the plug-in abstract standard is used for standardizing plug-in construction of the multiple databases; according to a plug-in abstraction standard, performing plug-in construction on each database in the plurality of databases to obtain a plurality of database plug-ins corresponding to the plurality of databases; the plurality of database plug-ins are uploaded to a plug-in warehouse, and the plug-in warehouse is used for deploying the plurality of database plug-ins to the low-code platform, so that the low-code platform at least provides data service functions of the plurality of databases. Through the method and the device, the problem of relatively low database expansion efficiency of a low-code platform in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and specifically, to a database expansion method, device, processor and electronic device for a low-code platform. Background Art

[0002] For low-code platforms, when expanding the types of database support, the iterative source code method is usually used. However, this method increases the coupling between the database and the low-code platform. Any changes to the database structure may require corresponding modifications to the low-code platform, which will increase development and maintenance costs and reduce the expansion efficiency of the database.

[0003] Regarding the problem of low database expansion efficiency of low-code platforms in the above-mentioned related technologies, no effective solution has been proposed yet. Summary of the invention

[0004] The main purpose of this application is to provide a database expansion method, device, processor and electronic device for a low-code platform to solve the problem of low accuracy of database expansion of low-code platforms in related technologies.

[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a database expansion method for a low-code platform is provided. The method includes: obtaining multiple databases to be expanded to the low-code platform, wherein the low-code platform is at least used to provide data service functions for multiple databases; creating a plug-in abstract standard in the low-code platform, wherein the plug-in abstract standard is used to standardize the plug-in construction of multiple databases; according to the plug-in abstract standard, for each database in the multiple databases, a plug-in is constructed to obtain multiple database plug-ins corresponding to the multiple databases, wherein one database corresponds to one database plug-in; uploading multiple database plug-ins to the plug-in warehouse, wherein the plug-in warehouse is used to deploy multiple database plug-ins to the low-code platform, so that the low-code platform at least provides data service functions for multiple databases.

[0006] Optionally, in the database expansion method of the low-code platform provided in an embodiment of the present application, after uploading multiple database plug-ins to the plug-in repository, the method also includes: obtaining a data source selection request, wherein the data source request is a request triggered when creating an application on the low-code platform and is used to request selection of a target data source type corresponding to the application; in response to the data source selection request, displaying a database plug-in list, wherein the database plug-in list includes multiple database plug-ins, and one database plug-in corresponds to one data source type.

[0007] Optionally, in the database expansion method of the low-code platform provided in an embodiment of the present application, after displaying the database plug-in list, the method also includes: obtaining a statement execution request, wherein the statement execution request is triggered by filling in the statement to be executed in a specified area after determining the target database plug-in corresponding to the data source type from the database plug-in list; in response to the statement execution request, obtaining and parsing the data source information of the target database plug-in from the persistent storage of the low-code platform, and executing the statement to be executed according to the plug-in strategy obtained by the analysis.

[0008] Optionally, in the database expansion method of the low-code platform provided in an embodiment of the present application, after uploading multiple database plug-ins to the plug-in warehouse, the method also includes: notifying the low-code platform to read multiple plug-in policies corresponding to multiple databases from the plug-in warehouse, and persistently storing the multiple plug-in policies, wherein the multiple plug-in policies include the parsed plug-in policies.

[0009] Optionally, in the database expansion method of the low-code platform provided in an embodiment of the present application, after uploading multiple database plug-ins to the plug-in warehouse, the method also includes: when a new database plug-in is detected to be uploaded to the plug-in warehouse, notifying the low-code platform to read a new plug-in policy corresponding to the new database plug-in from the plug-in warehouse, and persistently storing the new plug-in policy.

[0010] Optionally, in the database expansion method of the low-code platform provided in the embodiment of the present application, a plug-in is constructed for each database in a plurality of databases according to the plug-in abstract standard to obtain multiple database plug-ins corresponding to the multiple databases, including: according to the plug-in abstract standard, multiple extension point implementations are executed for each database in a plurality of databases to construct each database plug-in corresponding to each database, wherein the multiple extension points include at least one of the following: JDBC driver, JDBC connection string, connectivity SQL, SQL pre-detection, SQL parsing rules, SQL conversion rules, and the plug-in abstract standard includes at least one of the following: connectivity protocol standard, SQL parsing protocol standard, SQL pre-detection protocol standard.

[0011] Optionally, in the database expansion method of the low-code platform provided in an embodiment of the present application, after uploading multiple database plug-ins to the plug-in warehouse, the method also includes: loading multiple database plug-ins into the running memory of the low-code platform according to a preset dynamic loading mechanism.

[0012] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a database expansion device for a low-code platform is provided. The device includes: an acquisition unit, which is used to acquire multiple databases to be expanded to the low-code platform, wherein the low-code platform is at least used to provide data service functions for multiple databases; a creation unit, which is used to create a plug-in abstract standard in the low-code platform, wherein the plug-in abstract standard is used to standardize the plug-in construction of multiple databases; a construction unit, which is used to construct plug-ins for each of the multiple databases according to the plug-in abstract standard, and obtain multiple database plug-ins corresponding to the multiple databases, wherein one database corresponds to one database plug-in; an upload unit, which is used to upload multiple database plug-ins to the plug-in warehouse, wherein the plug-in warehouse is used to deploy multiple database plug-ins to the low-code platform, so that the low-code platform at least provides data service functions for multiple databases.

[0013] Optionally, in the database expansion device of the low-code platform provided in the embodiment of the present application, the device also includes: a first acquisition module, used to obtain a data source selection request after uploading multiple database plug-ins to the plug-in warehouse, wherein the data source request is a request triggered when creating an application on the low-code platform, and is used to request selection of a target data source type corresponding to the application; a display module, used to display a database plug-in list in response to the data source selection request after uploading multiple database plug-ins to the plug-in warehouse, wherein the database plug-in list includes multiple database plug-ins, and one database plug-in corresponds to one data source type.

[0014] Optionally, in the database expansion device of the low-code platform provided in the embodiment of the present application, the device also includes: a second acquisition module, used to obtain a statement execution request after displaying the database plug-in list, wherein the statement execution request is triggered by filling in the statement to be executed in a designated area after determining the target database plug-in corresponding to the data source type from the database plug-in list; a third acquisition module, used to obtain and parse the data source information of the target database plug-in from the persistent storage of the low-code platform in response to the statement execution request after displaying the database plug-in list, and execute the statement to be executed according to the plug-in strategy obtained by the analysis.

[0015] Optionally, in the database expansion device of the low-code platform provided in the embodiment of the present application, the device also includes: a first notification module, which is used to notify the low-code platform to read multiple plug-in policies corresponding to multiple databases from the plug-in warehouse after uploading multiple database plug-ins to the plug-in warehouse, and to persistently store the multiple plug-in policies, wherein the multiple plug-in policies include the parsed plug-in policies.

[0016] Optionally, in the database expansion device of the low-code platform provided in the embodiment of the present application, the device also includes: a second notification module, which is used to notify the low-code platform to read a new plug-in policy corresponding to the new database plug-in from the plug-in warehouse after uploading multiple database plug-ins to the plug-in warehouse and to persistently store the new plug-in policy when a new database plug-in is detected to be uploaded to the plug-in warehouse.

[0017] Optionally, in the database expansion device of the low-code platform provided in the embodiment of the present application, the construction unit includes: an execution module, which is used to execute multiple extension point implementations for each database in a plurality of databases according to the plug-in abstract standard, so as to construct each database plug-in corresponding to each database, wherein the multiple extension points include at least one of the following: JDBC driver, JDBC connection string, connectivity SQL, SQL pre-detection, SQL parsing rules, SQL conversion rules, and the plug-in abstract standard includes at least one of the following: connectivity protocol standard, SQL parsing protocol standard, SQL pre-detection protocol standard.

[0018] Optionally, in the database expansion device of the low-code platform provided in the embodiment of the present application, the device also includes: a loading module, which is used to load multiple database plug-ins into the running memory of the low-code platform according to a preset dynamic loading mechanism after uploading multiple database plug-ins to the plug-in warehouse.

[0019] Through this application, referring to the plug-in abstract standard used to standardize the construction of plug-ins for multiple databases, multiple database plug-ins for multiple databases to be expanded are constructed, and the plug-in warehouse is uploaded for subsequent deployment of the database plug-ins to the low-code platform, thereby achieving the purpose of decoupling the extended database from the low-code platform, and then completing the database expansion on the low-code platform efficiently and at low cost. In addition, during the operation of the low-code platform, the database plug-in can be dynamically loaded through the plug-in warehouse, which can flexibly support database expansion requirements, thereby achieving the technical effect of improving the database expansion efficiency of the low-code platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0021] Figure 1 It is a flowchart of a database expansion method of a low-code platform provided in an embodiment of the present application;

[0022] Figure 2 It is a schematic diagram of a database expansion method of a low-code platform provided according to an embodiment of the present application;

[0023] Figure 3It is a schematic diagram of a database expansion method of a low-code platform provided according to an embodiment of the present application;

[0024] Figure 4 It is a schematic diagram of a database expansion method of a low-code platform provided according to an embodiment of the present application;

[0025] Figure 5 It is a schematic diagram of a database expansion device of a low-code platform provided according to an embodiment of the present application;

[0026] Figure 6 This is a schematic diagram of a database expansion electronic device according to a low-code platform provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set between this system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.

[0031] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flowchart of a database expansion method of a low-code platform provided in an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:

[0032] Step S101, obtaining multiple databases to be expanded to the low-code platform, wherein the low-code platform is at least used to provide data service functions for the multiple databases;

[0033] Step S102, creating a plug-in abstract standard in the low-code platform, wherein the plug-in abstract standard is used to standardize the construction of plug-ins for multiple databases;

[0034] Step S103, constructing a plug-in for each of the multiple databases according to the plug-in abstraction standard, to obtain multiple database plug-ins corresponding to the multiple databases, wherein one database corresponds to one database plug-in;

[0035] Step S104, upload multiple database plug-ins to the plug-in warehouse, where the plug-in warehouse is used to deploy multiple database plug-ins to the low-code platform, so that the low-code platform can at least provide data service functions for multiple databases.

[0036] Optionally, in this embodiment, the database expansion method of the above-mentioned low-code platform can be but is not limited to being applied to the database expansion scenario of the low-code platform based on the plug-in mechanism. In this scenario, for the expansion of the database support types of the low-code platform, the existing technical solution is usually to iterate the source code. For the low-code platform, the supported database types belong to non-core product features, and the stability of the platform operation state should be guaranteed during the expansion process. The way to achieve database expansion based on source code iteration, on the one hand, requires the overall service version to be updated and launched through relevant methods, which violates the requirement of stable platform operation, and has problems such as high deployment cost and low efficiency; on the other hand, it leads to an increase in the coupling between the database and the low-code platform. Any changes to the database structure may require corresponding modifications to the low-code platform, which will increase development and maintenance costs and reduce database expansion efficiency.

[0037] For the above problems, the database expansion method of the above-mentioned low-code platform is used, and the plug-in abstract standard used to standardize the plug-in construction of multiple databases is referred to to construct multiple database plug-ins for the multiple databases to be expanded, and upload the plug-in warehouse for subsequent deployment of the database plug-ins to the low-code platform, thereby achieving the purpose of decoupling the extended database from the low-code platform, and then completing the database expansion efficiently and at low cost on the low-code platform. In addition, during the operation of the low-code platform, the database plug-in can be dynamically loaded through the plug-in warehouse, which can flexibly support database expansion needs, thereby achieving the technical effect of improving the database expansion efficiency of the low-code platform.

[0038] Optionally, in this embodiment, a low-code platform (LCP) is a software development tool that allows developers to quickly build applications without writing a lot of code. The low-code platform simplifies the process of creating, testing, deploying, and maintaining applications by providing a graphical user interface, drag-and-drop functionality, pre-built modules, and automation tools. The low-code platform is suitable for various types of application development, including enterprise resource planning (ERP), customer relationship management (CRM), mobile applications, websites, and web applications.

[0039] It should be noted that on low-code platforms, database expansion is an important aspect that can help developers manage and expand application data storage more efficiently.

[0040] Optionally, in this embodiment, the plug-in abstract standard is used to standardize the construction of plug-ins for multiple databases, that is, to define the standards / specifications of the database plug-ins that will be used to build the database, wherein the above standards / specifications may include but are not limited to connectivity protocol standards, resolution protocol standards, and pre-detection protocol standards, which are respectively used to indicate the protocol standards to be followed in the specific implementation process of the database plug-in of the database.

[0041] To further illustrate, Figure 2 As shown, taking MySQL database as an example, when the plug-in abstract standard is the connectivity protocol standard, the SQL parsing protocol standard, and the SQL pre-detection protocol standard, the connectivity protocol standard is used to standardize the MySQL connectivity implementation in the process of building a MySQL database plug-in for the MySQL database, the SQL parsing protocol standard is used to standardize the MySQL parsing SQL implementation in the process of building a MySQL database plug-in for the MySQL database, and the SQL pre-detection protocol standard is used to standardize the MySQL pre-detection SQL implementation in the process of building a MySQL database plug-in for the MySQL database.

[0042] Optionally, in this embodiment, according to the plug-in abstraction standard, plug-in construction is performed for each of the multiple databases to obtain multiple database plug-ins corresponding to the multiple databases.

[0043] It can be understood that according to the plug-in abstraction standard, multiple extension point implementations are executed for each database in the multiple databases to construct each database plug-in corresponding to each database, wherein the multiple extension points include at least one of the following: JDBC driver, JDBC connection string, connectivity SQL, SQL pre-detection, SQL parsing rules, and SQL conversion rules.

[0044] It should be noted that the above-mentioned multiple extension points can be but are not limited to plugin abstraction standards written in the low-code platform to standardize the construction / implementation of database plugins for the database.

[0045] To further illustrate, Figure 3 As shown, the low-code platform includes a plug-in abstract standard, which is used to indicate the implementation contents of multiple extension points to be executed for each of multiple databases, thereby obtaining database plug-ins for multiple databases, such as implemented MySQL plug-ins, Oracle plug-ins, DB2 plug-ins, GaussDB plug-ins, and other database plug-ins.

[0046] Optionally, in this embodiment, multiple database plug-ins are uploaded to a plug-in warehouse, wherein the plug-in warehouse is used to deploy the multiple database plug-ins to the low-code platform, so that the low-code platform provides at least data service functions for multiple databases.

[0047] Specifically, as an optional implementation method, the database plug-in is packaged and uploaded to the plug-in warehouse, and the low-code platform is notified to read the newly added database support policy. The low-code platform parses the information declared in the plug-in package and saves it persistently. The low-code platform dynamically loads the plug-in package into the running memory based on the SPI mechanism (Service Provider Interface, a mechanism for decoupling service providers and service consumers. It allows developers to dynamically discover and load service providers at runtime without specifying specific service implementations at compile time) to confirm that the database expansion is completed.

[0048] It should be noted that a plugin repository is a place where plugins are centrally stored and managed, and is usually used in software development, content management systems, or applications. Plugin repositories allow developers and users to easily find, install, update, and manage plugins. A search function is usually provided, allowing users to filter plugins based on keywords, ratings, downloads, and other criteria. In addition, version control and dependency management are also provided to ensure that plugins are compatible with the project and work properly.

[0049] Through the embodiments provided in the present application, referring to the plug-in abstraction standard for standardizing the construction of plug-ins for multiple databases, multiple database plug-ins for multiple databases to be expanded are constructed, and the plug-in warehouse is uploaded for subsequent deployment of the database plug-ins to the low-code platform, thereby achieving the purpose of decoupling the extended database from the low-code platform, thereby completing the database expansion on the low-code platform efficiently and at low cost, and during the operation of the low-code platform, the database plug-in can be dynamically loaded through the plug-in warehouse, which can flexibly support database expansion requirements, thereby achieving the technical effect of improving the database expansion efficiency of the low-code platform.

[0050] As an optional solution, after uploading multiple database plug-ins to the plug-in repository, the method further includes:

[0051] Obtain a data source selection request, where the data source request is a request triggered when an application is created on a low-code platform and is used to request the selection of a target data source type corresponding to the application;

[0052] In response to the data source selection request, a database plug-in list is displayed, wherein the database plug-in list includes a plurality of database plug-ins, and one database plug-in corresponds to one data source type.

[0053] Optionally, in this embodiment, the low-code platform simplifies the application creation, testing, deployment, and maintenance process by providing a graphical user interface, drag-and-drop functionality, pre-built modules, and automation tools.

[0054] It is understandable that when a low-code user selects a data source type for an application created on a low-code platform, the low-code platform reads the information carried by the database plug-in from the persistent storage, and has the front-end dynamically render the supported database plug-ins, which are displayed in the form of a database plug-in list.

[0055] As an optional solution, after displaying the database plug-in list, the method further includes:

[0056] Get a statement execution request, where the statement execution request is triggered by filling in the statement to be executed in the specified area after determining the target database plug-in corresponding to the data source type from the database plug-in list;

[0057] In response to the statement execution request, the data source information of the target database plug-in is obtained and parsed from the persistent storage of the low-code platform, and the statement to be executed is executed according to the parsed plug-in strategy.

[0058] Optionally, in this embodiment, after the low-code user determines the target database plug-in corresponding to the data source type from the database plug-in list, he further fills in the statements to be executed in the designated area, wherein the designated area is an area dynamically rendered by the front end for the low-code user to fill in the statements to be executed.

[0059] Optionally, in this embodiment, the statements to be executed may be, but are not limited to, data definition language (Data Definition Language, DDL for short, used to define and manage the structure of a database, such as creating, modifying and deleting database objects, such as tables, indexes, views, etc.) and data manipulation language (Data Manipulation Language, DML for short, used to query, insert, update and delete data stored in a database).

[0060] Optionally, in this embodiment, in response to a statement execution request, the data source information of the target database plug-in is obtained and parsed from the persistent storage of the low-code platform, and the statement to be executed is executed according to the plug-in strategy obtained by the parsing.

[0061] It can be understood that when the low-code platform executes DDL, DML and other statements, it queries the data source information of the database plug-in configured for the current application in the persistent storage based on the unique identifier of the current application. The data source type identifier in the data source information delegates the logic to the corresponding plug-in strategy for parsing and execution. At this point, the database function access is completed.

[0062] As an optional solution, after uploading multiple database plug-ins to the plug-in repository, the method further includes:

[0063] Notify the low-code platform to read multiple plug-in policies corresponding to multiple databases from the plug-in repository, and persistently store the multiple plug-in policies, including the parsed plug-in policies.

[0064] Optionally, in this embodiment, after the multiple database plug-ins are packaged and uploaded to the plug-in warehouse, the low-code platform is notified to read the multiple plug-in policies corresponding to the multiple database plug-ins, and the low-code platform saves them persistently.

[0065] As an optional solution, after uploading multiple database plug-ins to the plug-in repository, the method further includes:

[0066] When a new database plug-in is detected to be uploaded to the plug-in repository, the low-code platform is notified to read the new plug-in policy corresponding to the new database plug-in from the plug-in repository and store the new plug-in policy persistently.

[0067] Optionally, when a new database plug-in is detected in the plug-in repository, that is, a new database plug-in is dynamically loaded and updated in the plug-in repository, the low-code platform is further notified to read a new plug-in policy corresponding to the new database plug-in from the plug-in repository and persist the new plug-in policy.

[0068] It should be noted that by using the above method, applying the architectural decoupling design idea and combining it with the dynamic loading of plug-ins, it is possible to flexibly support database expansion needs during the low-code operation process.

[0069] As an optional solution, according to the plug-in abstraction standard, a plug-in is constructed for each of the multiple databases to obtain multiple database plug-ins corresponding to the multiple databases, including:

[0070] According to the plug-in abstract standard, multiple extension point implementations are executed for each database in the multiple databases to construct each database plug-in corresponding to each database, wherein the multiple extension points include at least one of the following: JDBC driver, JDBC connection string, connectivity SQL, SQL pre-detection, SQL parsing rules, SQL conversion rules, and the plug-in abstract standard includes at least one of the following: connectivity protocol standard, SQL parsing protocol standard, SQL pre-detection protocol standard.

[0071] Optionally, in this embodiment, according to the plug-in abstraction standard, multiple extension point implementations are executed for each database in the multiple databases to construct each database plug-in corresponding to each database, wherein the multiple extension points include at least one of the following: JDBC driver, JDBC connection string, connectivity SQL, SQL pre-detection, SQL parsing rules, and SQL conversion rules.

[0072] It should be noted that the above-mentioned multiple extension points can be but are not limited to plugin abstraction standards written in the low-code platform to standardize the construction / implementation of database plugins for the database.

[0073] Optionally, in this embodiment, the plug-in abstract standard is used to standardize the construction of plug-ins for multiple databases, that is, to define the standards / specifications of the database plug-ins that will be used to build the database, wherein the above standards / specifications may include but are not limited to connectivity protocol standards, resolution protocol standards, and pre-detection protocol standards, which are respectively used to indicate the protocol standards to be followed in the specific implementation process of the database plug-in of the database.

[0074] As an optional solution, after uploading multiple database plug-ins to the plug-in repository, the method further includes:

[0075] According to the preset dynamic loading mechanism, multiple database plug-ins are loaded into the running memory of the low-code platform.

[0076] Optionally, in this embodiment, the preset dynamic loading mechanism may be, but is not limited to, an SPI (Service Provider Interface) mechanism, which is used to implement a decoupling mechanism between service providers and service consumers. It allows developers to dynamically discover and load service providers at runtime without specifying specific service implementations at compile time. The SPI mechanism provides a simple, flexible, and highly decoupled service discovery and loading mechanism, making application development and maintenance easier.

[0077] It should be noted that the low-code platform can, but is not limited to, dynamically load the plug-in package into the running memory based on the above-mentioned SPI mechanism, at which point the database expansion is completed.

[0078] As an optional solution, the database expansion method of the above low-code platform is used in the database expansion scenario of the low-code platform based on the plug-in mechanism, separating the expansion of the database strategy from the platform side, and realizing the stable operation of the low-code platform while dynamically expanding the database that needs to be supported efficiently and at low cost. The architectural decoupling design idea is used, combined with the dynamic loading of plug-ins, to achieve flexible support for database expansion needs during the low-code operation process.

[0079] To further illustrate, the structural diagram of the database expansion method of the above low-code platform is as follows: Figure 4 As shown, the low-code platform decouples the responsibilities related to data source operations into the data proxy service, which is divided into the interface layer, parsing layer, service layer and execution layer. The data proxy service includes the interface layer, parsing layer, service layer and execution layer, among which the interface layer is used to unify the API interface, the parsing layer is used for SQL parsing, SQL generation, SQL conversion, etc., and the service layer is used for DDL asynchronous task management, data import and export, etc. It is the core module of the above method and consists of a data source adapter, a data source manager, a database connection pool and a plug-in abstract standard. The execution layer is used for SQL execution, connectivity testing, metadata query, etc. The plug-in warehouse includes database plug-ins for multiple databases, such as MySQL plug-in, Oracle plug-in, DB2 plug-in, GaussDB plug-in, etc.

[0080] To further refine the implementation details, the main steps are as follows:

[0081] Step S1: Separate the specific database implementation from the low-code platform data proxy service, adopt an abstract design approach, build database implementation standards, and provide data source adapters and data source manager adaptation and scheduling.

[0082] It should be noted that the low-code platform only focuses on standard orchestration logic steps and no longer pays attention to the details of how to implement any specific database, based on the behavioral abstraction required for specific database operations. In the future, the implementation details for each type of database need to be improved in accordance with the abstract standards. During the specific logic execution process, the corresponding database details will be automatically selected to complete the SQL execution.

[0083] Step S2: The plug-in developer refers to the plug-in abstraction standard to complete the implementation of extension points such as internal JDBC driver, JDBC connection string, connectivity SQL, SQL pre-detection, SQL parsing rules, SQL conversion rules, etc., and conducts usability testing locally.

[0084] Step S3: Package the database plug-in and upload it to the plug-in repository, notify the low-code platform to read the newly added database support policy, and the low-code platform parses the information declared in the plug-in package and saves it persistently.

[0085] Step S4: The low-code platform dynamically loads the plug-in package into the running memory based on the SPI mechanism, and the database expansion is completed.

[0086] Step S5: When the low-code user selects the data source type for the created application on the low-code platform, the low-code platform reads the information carried by the plug-in package from the persistent storage, and lets the front-end dynamically render a list of supported plug-ins and the information to be filled in.

[0087] Step S6: When executing DDL, DML and other statements, the low-code platform queries the data source information configured for the current application in the persistent storage based on the current application unique identifier. The data source type identifier in the data source information delegates the logic to the specific plug-in strategy for parsing and execution. At this point, the database function access is completed.

[0088] Through the embodiments provided in this application, the low-code platform database expansion method based on the plug-in mechanism can ensure the stable operation of the low-code platform and the user experience is not affected by the upgrade. At the same time, it can flexibly expand the database support plug-in according to the low-code application requirements and dynamically load the extension strategy, effectively avoiding the impact on the platform stability that will appear under the low-code platform source code iteration solution. The database support is stripped off on the low-code platform side to decouple the relationship between the two to the greatest extent; the plug-in implemented by the database extension is dynamically loaded to minimize the impact on the stable operation of the low-code platform.

[0089] It should be noted that the information collected is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation portals for users to choose to authorize or refuse. Provide users with corresponding operation portals for users to choose to agree or refuse the results of automated decision-making; if the user chooses to refuse, the expert decision-making process will be entered.

[0090] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0091] The embodiment of the present application also provides a database expansion device for a low-code platform. It should be noted that the database expansion device for a low-code platform in the embodiment of the present application can be used to execute the database expansion method for a low-code platform provided in the embodiment of the present application. The following introduces the database expansion device for a low-code platform provided in the embodiment of the present application.

[0092] Figure 5 Schematic diagram of a database expansion device of a low-code platform according to an embodiment of the present application. Figure 5 As shown, the device comprises:

[0093] An acquisition unit 501 is used to acquire multiple databases to be extended to the low-code platform, wherein the low-code platform is at least used to provide data service functions for the multiple databases;

[0094] A creation unit 502 is used to create a plug-in abstract standard in the low-code platform, wherein the plug-in abstract standard is used to standardize the plug-in construction of multiple databases;

[0095] A construction unit 503 is used to construct a plug-in for each of the multiple databases according to the plug-in abstract standard to obtain multiple database plug-ins corresponding to the multiple databases, wherein one database corresponds to one database plug-in;

[0096] The uploading unit 504 is used to upload multiple database plug-ins to the plug-in warehouse, wherein the plug-in warehouse is used to deploy multiple database plug-ins to the low-code platform so that the low-code platform can at least provide data service functions for multiple databases.

[0097] Optionally, in the database expansion device of the low-code platform provided in the embodiment of the present application, the device also includes: a first acquisition module, used to obtain a data source selection request after uploading multiple database plug-ins to the plug-in warehouse, wherein the data source request is a request triggered when creating an application on the low-code platform, and is used to request selection of a target data source type corresponding to the application; a display module, used to display a database plug-in list in response to the data source selection request after uploading multiple database plug-ins to the plug-in warehouse, wherein the database plug-in list includes multiple database plug-ins, and one database plug-in corresponds to one data source type.

[0098] Optionally, in the database expansion device of the low-code platform provided in the embodiment of the present application, the device also includes: a second acquisition module, used to obtain a statement execution request after displaying the database plug-in list, wherein the statement execution request is triggered by filling in the statement to be executed in a designated area after determining the target database plug-in corresponding to the data source type from the database plug-in list; a third acquisition module, used to obtain and parse the data source information of the target database plug-in from the persistent storage of the low-code platform in response to the statement execution request after displaying the database plug-in list, and execute the statement to be executed according to the plug-in strategy obtained by the analysis.

[0099] Optionally, in the database expansion device of the low-code platform provided in the embodiment of the present application, the device also includes: a first notification module, which is used to notify the low-code platform to read multiple plug-in policies corresponding to multiple databases from the plug-in warehouse after uploading multiple database plug-ins to the plug-in warehouse, and to persistently store the multiple plug-in policies, wherein the multiple plug-in policies include the parsed plug-in policies.

[0100] Optionally, in the database expansion device of the low-code platform provided in the embodiment of the present application, the device also includes: a second notification module, which is used to notify the low-code platform to read a new plug-in policy corresponding to the new database plug-in from the plug-in warehouse after uploading multiple database plug-ins to the plug-in warehouse and to persistently store the new plug-in policy when a new database plug-in is detected to be uploaded to the plug-in warehouse.

[0101] Optionally, in the database expansion device of the low-code platform provided in the embodiment of the present application, the construction unit 503 includes: an execution module, which is used to execute multiple extension point implementations for each database in the multiple databases according to the plug-in abstract standard, so as to construct each database plug-in corresponding to each database, wherein the multiple extension points include at least one of the following: JDBC driver, JDBC connection string, connectivity SQL, SQL pre-detection, SQL parsing rules, SQL conversion rules, and the plug-in abstract standard includes at least one of the following: connectivity protocol standard, SQL parsing protocol standard, SQL pre-detection protocol standard.

[0102] Optionally, in the database expansion device of the low-code platform provided in the embodiment of the present application, the device also includes: a loading module, which is used to load multiple database plug-ins into the running memory of the low-code platform according to a preset dynamic loading mechanism after uploading multiple database plug-ins to the plug-in warehouse.

[0103] The database expansion device of the low-code platform provided in the embodiment of the present application refers to the plug-in abstract standard for standardizing the construction of plug-ins for multiple databases, constructs multiple database plug-ins for multiple databases to be expanded, and uploads the plug-in warehouse for subsequent deployment of the database plug-ins to the low-code platform, thereby achieving the purpose of decoupling the extended database from the low-code platform, and then completing the database expansion on the low-code platform efficiently and at low cost. In addition, during the operation of the low-code platform, the database plug-in can be dynamically loaded through the plug-in warehouse, which can flexibly support database expansion requirements, thereby achieving the technical effect of improving the database expansion efficiency of the low-code platform.

[0104] The database expansion device of the low-code platform includes a processor and a memory. The above-mentioned acquisition unit, detection unit, determination unit, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0105] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to train or optimize the process, thereby improving the accuracy and efficiency of the database expansion of the low-code platform.

[0106] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0107] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored, which, when executed by a processor, implements the database expansion method of the above-mentioned low-code platform.

[0108] An embodiment of the present invention provides a processor, which is used to run a program, wherein the database expansion method of the above-mentioned low-code platform is executed when the program is running.

[0109] like Figure 6 As shown, an embodiment of the present invention provides an electronic device, the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program:

[0110] Acquire multiple databases to be expanded to the low-code platform, wherein the low-code platform is at least used to provide data service functions for the multiple databases;

[0111] Create a plug-in abstraction standard in the low-code platform, where the plug-in abstraction standard is used to standardize the construction of plug-ins for multiple databases;

[0112] According to the plug-in abstraction standard, a plug-in is constructed for each of the multiple databases to obtain multiple database plug-ins corresponding to the multiple databases, wherein one database corresponds to one database plug-in;

[0113] Upload multiple database plug-ins to the plug-in warehouse, where the plug-in warehouse is used to deploy multiple database plug-ins to the low-code platform so that the low-code platform can at least provide data service functions for multiple databases.

[0114] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0115] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing the following method steps:

[0116] Acquire multiple databases to be expanded to the low-code platform, wherein the low-code platform is at least used to provide data service functions for the multiple databases;

[0117] Create a plug-in abstraction standard in the low-code platform, where the plug-in abstraction standard is used to standardize the construction of plug-ins for multiple databases;

[0118] According to the plug-in abstraction standard, a plug-in is constructed for each of the multiple databases to obtain multiple database plug-ins corresponding to the multiple databases, wherein one database corresponds to one database plug-in;

[0119] Upload multiple database plug-ins to the plug-in warehouse, where the plug-in warehouse is used to deploy multiple database plug-ins to the low-code platform so that the low-code platform can at least provide data service functions for multiple databases.

[0120] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0121] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0122] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0124] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0125] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0126] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0127] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0128] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0129] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A database expansion method for a low-code platform, It is characterized in that include: Acquire multiple databases to be expanded to a low-code platform, wherein the low-code platform is at least used to provide data service functions for the multiple databases; Creating a plug-in abstraction standard in the low-code platform, wherein the plug-in abstraction standard is used to standardize the plug-in construction of the multiple databases; According to the plug-in abstract standard, a plug-in is constructed for each database in the multiple databases to obtain multiple database plug-ins corresponding to the multiple databases, wherein one database corresponds to one database plug-in; Upload the multiple database plug-ins to a plug-in warehouse, wherein the plug-in warehouse is used to deploy the multiple database plug-ins to the low-code platform, so that the low-code platform at least provides data service functions for the multiple databases.

2. The method according to claim 1, It is characterized in that After uploading the plurality of database plug-ins to the plug-in repository, the method further includes: Obtain a data source selection request, wherein the data source request is a request triggered when an application is created on the low-code platform and is used to request selection of a target data source type corresponding to the application; In response to the data source selection request, a database plug-in list is displayed, wherein the database plug-in list includes the multiple database plug-ins, and one database plug-in corresponds to one data source type.

3. The method according to claim 2, It is characterized in that After displaying the database plug-in list, the method further includes: Obtaining a statement execution request, wherein the statement execution request is triggered by filling in a statement to be executed in a specified area after determining a target database plug-in corresponding to the data source type from the database plug-in list; In response to the statement execution request, the data source information of the target database plug-in is obtained and parsed from the persistent storage of the low-code platform, and the statement to be executed is executed according to the plug-in strategy obtained by the parsing.

4. The method according to claim 3, It is characterized in that After uploading the plurality of database plug-ins to the plug-in repository, the method further includes: Notify the low-code platform to read multiple plug-in policies corresponding to the multiple databases from the plug-in repository, and persistently store the multiple plug-in policies, wherein the multiple plug-in policies include the plug-in policies obtained by parsing.

5. The method according to any one of claims 1 to 4, It is characterized in that After uploading the plurality of database plug-ins to the plug-in repository, the method further includes: When it is detected that a new database plug-in is uploaded to the plug-in repository, the low-code platform is notified to read a new plug-in policy corresponding to the new database plug-in from the plug-in repository and to persistently store the new plug-in policy.

6. The method according to any one of claims 1 to 4, It is characterized in that The step of constructing a plug-in for each of the multiple databases according to the plug-in abstract standard to obtain multiple database plug-ins corresponding to the multiple databases includes: According to the plug-in abstract standard, multiple extension point implementations are executed for each database in the multiple databases to construct each database plug-in corresponding to the each database, wherein the multiple extension points include at least one of the following: JDBC driver, JDBC connection string, connectivity SQL, SQL pre-detection, SQL parsing rules, SQL conversion rules, and the plug-in abstract standard includes at least one of the following: connectivity protocol standard, SQL parsing protocol standard, SQL pre-detection protocol standard.

7. The method according to any one of claims 1 to 4, It is characterized in that After uploading the plurality of database plug-ins to the plug-in repository, the method further includes: According to the preset dynamic loading mechanism, the multiple database plug-ins are loaded into the running memory of the low-code platform.

8. A database expansion device for a low-code platform, It is characterized in that include: An acquisition unit, used to acquire multiple databases to be expanded to the low-code platform, wherein the low-code platform is at least used to provide data service functions for the multiple databases; A creation unit for creating a plugin abstraction standard in the low-code platform, where the plugin abstraction standard is used to standardize plugin construction for multiple databases; A construction unit is used to construct a plug-in for each of the multiple databases according to the plug-in abstract standard to obtain multiple database plug-ins corresponding to the multiple databases, wherein one database corresponds to one database plug-in; An uploading unit is used to upload multiple database plug-ins to a plug-in warehouse, wherein the plug-in warehouse is used to deploy multiple database plug-ins to a low-code platform so that the low-code platform can at least provide data service functions for multiple databases.

9. A processor, It is characterized in that The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 7 when running.

10. An electronic device, It is characterized in that The invention comprises one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of claims 1 to 7.