Data management system and method for low-code platform

By designing a data management system in a low-code platform, utilizing virtual fields and data permission tables, combined with direct mapping and JSON mapping, the issues of tenant-level storage and data access control are solved, and scalable data storage and secure data access are achieved. .

CN118628031APending Publication Date: 2024-09-10XIAMEN NANXUN CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310211713.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The existing low-code platform lacks the functions of tenant-level storage of additional extended information and data access control, and cannot meet the development needs of highly complex, large-scale, and high-value enterprise-level applications.

Method used

A data management system for a low-code platform is designed, including a browser, data service interface, metadata service interface and security service interface. By constructing SQL statements for virtual fields and rewriting SQL statements with data permissions, a combination of direct mapping and The JSON mapping method defines the binding relationship of the extended fields, sets the data permission table to limit the user's data access permissions, and executes the rewritten SQL statement in the database.

Benefits of technology

It achieves scalable data storage and enhanced data access security, makes up for the shortcomings of the existing low-code platform, and provides tenant-level storage and data access control functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628031A
    Figure CN118628031A
Patent Text Reader

Abstract

The invention discloses a data management system and method for a low-code platform. The system comprises a browser, a data service interface, a metadata service interface, a security service interface and a database, the browser is configured to allow a user to input request data and visually display an execution result; the data service interface is used for constructing an SQL (Structured Query Language) statement containing a virtual field and rewriting an SQL statement with a data permission; the metadata service interface is used for storing table field information; the security service interface is used for extracting an access permission of a user and rewriting an SQL statement containing a virtual field according to the access permission so as to generate an SQL statement with a data permission; the database is used for executing the SQL statements rewritten by the data service interface. According to the method and the system, extensible data storage is realized, the security of data access is enhanced, and the defect that an existing low-code platform lacks extra extension information of tenant-level storage and a data access control function is overcome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a data management system and method for a low-code platform. Background Art

[0002] Low-code platforms abstract structured data from pages to provide fast, convenient and visual delivery results. Users only need to use commands to implement logical functions without writing complex code. Low-code platforms introduce low-code technology into the field of high-complexity, large-scale, and high-value enterprise-level application development, helping professional developers, IT technicians, and business personnel build personalized applications for the future. Current low-code platforms lack the ability to store additional extended information at the tenant level and control data access. Summary of the invention

[0003] To solve the above problems, the present invention provides a data management system and method for a low-code platform.

[0004] The present invention adopts the following technical solutions:

[0005] A data management system for a low-code platform, including a browser, a data service interface, a metadata service interface, a security service interface and a database;

[0006] The browser is configured to allow the user to input request data and visually display the execution results;

[0007] The data service interface is used to construct SQL statements containing virtual fields and rewrite SQL statements with data permissions;

[0008] The metadata service interface is used to store table field information;

[0009] The security service interface is used to extract the user's access rights and rewrite the SQL statement containing the virtual field according to the access rights to generate an SQL statement with data permissions;

[0010] The database is used to execute the SQL statement rewritten by the data service interface.

[0011] Furthermore, the metadata service interface sets a metadata table for storing table field information, wherein the table field information includes extended fields and binding relationships thereof, and the binding relationships of the extended fields are defined in a direct mapping manner or a JSON mapping manner.

[0012] Furthermore, the direct mapping method is: mapping and binding the newly defined virtual field with the unused extension field, and storing the mapping and binding relationship.

[0013] Furthermore, the JSON mapping method is: binding the newly defined virtual field to the key in the extended field of the JSON type, and storing the virtual field in a key-value manner.

[0014] Furthermore, a data permission table is provided in the security service interface, and the data permission table records the user's access rights to each data table, and the access rights include column rights and row rights.

[0015] Furthermore, the column permission is used to limit the range of column fields accessed by the user, and the row permission is used to limit the range of row fields under the column field accessed by the user.

[0016] A data management method for a low-code platform, the method is implemented based on the data management system of the low-code platform mentioned above, and the method comprises the following steps:

[0017] S1, the data service interface receives the request data sent by the user, and reads the table field information from the metadata service interface according to the request data and context information, and constructs an SQL statement containing virtual fields;

[0018] S2, the data service interface sends the SQL statement containing the virtual field to the security service interface;

[0019] S3, the security service interface extracts the access rights of the current user, rewrites the SQL statement containing the virtual field according to the access rights, generates an SQL statement with data rights and returns it to the data service interface;

[0020] S4, the data service interface receives the SQL statement with data permissions, initiates a rewrite action according to the binding relationship, replaces the virtual field in the SQL statement with an extended field or an SQL JSON function expression, and then sends it to the database for execution;

[0021] S5. The data service interface receives the execution result of the database and forwards it to the browser.

[0022] After adopting the above technical solution, the present invention has the following advantages compared with the background technology:

[0023] The data management system and method of the low-code platform of the present invention realize scalable data storage and enhance the security of data access, making up for the lack of tenant-level storage of additional extended information and data access control functions of existing low-code platforms. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 The present invention is a flow chart of the method. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0026] Embodiment 1

[0027] A data management system for a low-code platform, including a browser, a data service interface, a metadata service interface, a security service interface and a database;

[0028] The browser is configured to allow the user to input request data and visually display the execution results;

[0029] The data service interface is used to construct SQL statements containing virtual fields and rewrite SQL statements with data permissions; wherein the SQL language is a structured query language used to access data and query, update and manage relational database systems.

[0030] The metadata service interface sets a metadata table for storing table field information, wherein the table field information includes extended fields and their binding relationships, and the binding relationships of the extended fields are defined by direct mapping or JSON mapping. The direct mapping method is: mapping and binding the newly defined virtual field with the unused extended field, and storing the mapping binding relationship. The JSON mapping method is: binding the newly defined virtual field to the key in the extended field of the JSON type, and storing the virtual field in a key-value manner.

[0031] This embodiment uses extended fields to store additional information to cope with the situation where the original database table structure cannot meet the user's storage needs, thereby realizing dynamic storage expansion. Specifically, this embodiment uses two methods of definition, direct mapping and JSON mapping. When the data involves associated queries or conditional queries, direct mapping can be used for definition. For example, three extended fields x1, x2, and x3 are added on the basis of the original table fields. If x1 has been used, and the user now needs to store additional new information, we can customize a virtual field A with business semantics, and map and bind the newly defined virtual field A to the unused extended field x2, and store this mapping and binding relationship in the metadata table. Then, when the user initiates a request and the data service interface needs to operate field A, the data service interface finds that field A is a virtual field by parsing the SQL statement, and then replaces field A in the SQL statement with x2.

[0032] In addition, when there are no associated queries or conditional queries involved, the JSON mapping method can be used for definition. For example, without adding new fields, the user needs to store 4 additional information. In this case, the data type of x3 can be declared as JSON, and the corresponding multiple virtual fields are bound to the key in the extended field of the JSON type and stored in a key-value manner. Based on this method, countless virtual fields can be defined.

[0033] The security service interface is used to extract the user's access rights and rewrite the SQL statement containing the virtual field according to the access rights to generate an SQL statement with data rights. A data rights table is set in the security service interface, and the data rights table records the user's access rights to each data table. The access rights include column rights and row rights. The column rights are used to limit the range of the column fields accessed by the user, and the row rights are used to limit the range of the row fields under the column fields accessed by the user.

[0034] In order to ensure that users do not perform unauthorized operations, this embodiment sets a data permission table to limit users' data access rights. For example: there are fields id, a, b, c, d, and e in the M table. A user can only access the four fields id, a, b, and c in the M table, and can only access records from 1 to 100 in the id field. Then we record the user's data permissions for the M table in the data permission table. Specifically, first record the user's column permissions for the M table, that is, only access to the id, a, b, and c fields of the M table; then record the user's row permissions for the M table, that is, only access to records from 1 to 100 in the id field of the M table. Then, when the user uses SQL statements to operate the M table, if it is a change operation on the data, the restriction condition that only access to the id field from 1 to 100 will be added, and the c and e fields cannot be included in the operation. If it is a query, the M table will be converted into a subquery with restriction conditions.

[0035] The database is used to execute the SQL statement rewritten by the data service interface.

[0036] Embodiment 2

[0037] like Figure 1 As shown, a data management method for a low-code platform is implemented based on a data management system for a low-code platform described in Example 1, and the method includes the following steps:

[0038] S1, the data service interface receives the request data sent by the user, and reads the table field information from the metadata service interface according to the request data and context information, and constructs an SQL statement containing virtual fields, namely SQL (1);

[0039] S2, the data service interface sends the SQL statement containing the virtual field to the security service interface;

[0040] S3, the security service interface extracts the access rights of the current user, rewrites the SQL statement containing the virtual field according to the access rights, generates an SQL statement with data rights, namely SQL (2), and returns it to the data service interface;

[0041] S4, the data service interface receives the SQL statement with data permissions, and initiates a rewrite action according to the binding relationship, replaces the virtual field in the SQL statement with an extended field or an SQL JSON function expression, generates SQL (3), and then sends SQL (3) to the database for execution;

[0042] S5. The data service interface receives the execution result of the database and forwards it to the browser.

[0043] The method of this embodiment realizes scalable data storage and enhances the security of data access, making up for the lack of tenant-level storage of additional extended information and data access control functions in existing low-code platforms.

[0044] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A data management system for a low-code platform, Features: Includes browser, data service interface, metadata service interface, security service interface and database; The browser is configured to allow the user to input request data and visually display the execution results; The data service interface is used to construct SQL statements containing virtual fields and rewrite SQL statements with data permissions; The metadata service interface is used to store table field information; The security service interface is used to extract the user's access rights and rewrite the SQL statement containing the virtual field according to the access rights to generate an SQL statement with data permissions; The database is used to execute the SQL statement rewritten by the data service interface.

2. A data management system for a low-code platform as claimed in claim 1, Features: The metadata service interface sets a metadata table for storing table field information, wherein the table field information includes extended fields and binding relationships thereof, and the binding relationships of the extended fields are defined in a direct mapping manner or a JSON mapping manner.

3. A data management system for a low-code platform as claimed in claim 2, Features: The direct mapping method is: mapping and binding the newly defined virtual field with the unused extension field, and storing the mapping and binding relationship.

4. A data management system for a low-code platform as claimed in claim 3, Features: The JSON mapping method is: binding the newly defined virtual field to the key in the extended field of the JSON type, and storing the virtual field in a key-value manner.

5. A data management system for a low-code platform as claimed in claim 4, Features: A data permission table is provided in the security service interface, and the data permission table records the user's access rights to each data table, and the access rights include column rights and row rights.

6. A data management system for a low-code platform as claimed in claim 5, Features: The column permission is used to limit the scope of the column field that the user accesses, and the row permission is used to limit the scope of the row field under the column field that the user accesses.

7. A data management method for a low-code platform, Features: The method is implemented based on the data management system of the low-code platform according to any one of claims 1 to 6, and the method comprises the following steps: S1, the data service interface receives the request data sent by the user, and reads the table field information from the metadata service interface according to the request data and context information, and constructs an SQL statement containing virtual fields; S2, the data service interface sends the SQL statement containing the virtual field to the security service interface; S3, the security service interface extracts the access rights of the current user, rewrites the SQL statement containing the virtual field according to the access rights, generates an SQL statement with data rights and returns it to the data service interface; S4, the data service interface receives the SQL statement with data permissions, and initiates a rewrite action according to the binding relationship, replaces the virtual field in the SQL statement with an extended field or SQLJSON function expression, and then sends it to the database for execution; S5. The data service interface receives the execution result of the database and forwards it to the browser.

Citation Information

Cited By

  • Method and system for collecting and converting log data based on vehicle cloud

    CN119652984A

  • Universal API (Application Program Interface) data access control method and device, equipment and storage medium

    CN121262013A