Yearning- Lightweight MySQL statement review platform

Yearning- Lightweight MySQL statement review platform

2022-09-01 0 1,333
Resource Number 36625 Last Updated 2025-02-24
¥ 0HKD Upgrade VIP
Download Now Matters needing attention
Can't download? Please contact customer service to submit a link error!
Value-added Service: Installation Guide Environment Configuration Secondary Development Template Modification Source Code Installation

This issue recommends a high-level, open source SQL review platform based on Go writing, Yearning lightweight MySQL SQL statement review platform for small and medium businesses. Provide query audit, SQL audit and other functions.

Yearning- Lightweight MySQL statement review platform插图

main function

1.SQL inquire

    • Query work order
    • derive
    • Automatic completion, intelligent tips
    • Query statement audit
    • Query results desensitized

2.SQL audit

    • Process sheet
    • SQL statement syntax detection
    • Check the compliance of SQL statements based on rules
    • Automatically generate DDL/DML rollback statements
    • Historical audit record

3.push

    • E-mail Work order push
    • Dingding webhook machine manual single push

4.User rights and management

    • role definition
    • Fine-grained permissions based on users
    • register

5.else

    • todoList
    • LDAP register
    • Configure dynamic audit rules
    • Customize the audit level

6.AutoTask autoexec

Yearning Authority design

Yearning users are divided into three categories in the form of roles, submissioners/Operators/super administrators. The super administrator is a visible management page role, and the submitter/operator is a non-visible management page role. Categorize users by role Yearning before fine-grained permission partitioning. So that administrative class permissions do not appear in the user fine-grained permissions division

You can configure the corresponding ddl/dml/ query data source according to the actual requirements of each user. Each type of authority is independent of each other and does not interfere with each other.

1.Type of authority

Yearning rights are divided into two categories

  1. role-based access control
  2. Fine-grained permissions

Role permission: Submitter/Operator/Super administrator This permission is used to define the permission boundary of each user and specify the function entry

Fine-grained permissions: DML/DDL/ query data source access permissions, query the superior auditor

2.Set user rights

1.The super administrator can create a permission group on the Permission Group page and assign the permission to the group.

2.The super administrator selects a user in the user rights page and grants the user rights (a single user can grant multiple permission groups and automatically resends the permission group when the permission is repeated).

Yearning- Lightweight MySQL statement review platform插图1

Ready for use

Before officially using Yearning, you need to setup the following setup(please be sure to take a few minutes to read!) .

  1. Create users and validate their roles
  2. Create permission groups and assign them to the corresponding users
  3. Add data source information
  4. Create custom audit rules for data sources
  5. Configure the configuration information on the Settings page
  6. Tailor custom audit rules to your needs

1.Create a user

Yearning users can create in the following ways:

  1. Choose Management > Users. The admin user creates a user.
  2. Open the Allow Registration configuration in the Administration -> Settings page and save. Registrants can register by clicking the Registration button in the upper left corner of the yearning login page.
  3. Configure Management -> Set the Ldap information in the page and save it. ldap users can check ldap login on the yearning login page for user registration/login operations.

2.role

Yearning user roles are subiter, Operator, Super Administrator (admin user only).

Submitter: Only has the function of submitting work order and query

Operator: Based on the authority of the submitter, has the function of reviewing/executing work orders

Super administrator: Based on the previous two permissions, the super administrator has the administrator permissions for platform management, configuration, and audit rule setting.

Note: Roles are coarse-grained, and their purpose is to divide multiple user groups with different attributes to present different front-end page navigation information to different users. More granular permissions (for example, which data source the user is allowed to query, which data source the user is allowed to submit a work order to) are granted through permission groups.

All users except the admin user play the submitter role when creating an account (through registration /ldap login). If you need to change the role, you can change it by the admin user through the Administration -> Users page.

3.Create permission groups and assign them to the corresponding users

On the Manage -> Permission Groups page, admin can create, edit, or delete permission groups. The permission groups provide a variety of fine-grained permission controls (yearning currently permission controls only down to the data source level) as follows:

  1. The range of data sources that allow DDL work order submission
  2. The range of data sources that allow DML workorders to be submitted
  3. Allows querying the range of data sources for work order submissions
  4. Query the scope of the superior auditor

After the permission group is created, go to the Management -> User page, select the user you want to assign the permission group to and click the corresponding permission button to assign the permission group to the user.

A user can be assigned multiple rights groups. In multiple rights groups, the user integrates all rights of the two rights groups

A permission group can also assign rights to multiple users

how to use

  1. Initial learning
  2. Start juno(You can specify the port by -p. The default port is 50001)
  3. Enter GrpcAddr in conf.toml (default: 127.0.0.1:50001).
  4. debug

attention:

juno and Yearning must share the same database and Yearning share the same configuration file (if juno and yearning are not on the same host, a copy of the cofnig.toml file is needed in the same directory as juno. And the ip address and port of juno’s Yearning host are entered in the GrpcAddr configuration item in the config.toml file)

Since juno is currently only available in linux, developers working on mac/windows platforms are advised to launch juno using docker.

资源下载此资源为免费资源立即下载
Telegram:@John_Software

Disclaimer: This article is published by a third party and represents the views of the author only and has nothing to do with this website. This site does not make any guarantee or commitment to the authenticity, completeness and timeliness of this article and all or part of its content, please readers for reference only, and please verify the relevant content. The publication or republication of articles by this website for the purpose of conveying more information does not mean that it endorses its views or confirms its description, nor does it mean that this website is responsible for its authenticity.

Ictcoder Free Source Code Yearning- Lightweight MySQL statement review platform https://ictcoder.com/yearning-lightweight-mysql-statement-review-platform/

Share free open-source source code

Q&A
  • 1. Automatic: After making an online payment, click the (Download) link to download the source code; 2. Manual: Contact the seller or the official to check if the template is consistent. Then, place an order and make payment online. The seller ships the goods, and both parties inspect and confirm that there are no issues. ICTcoder will then settle the payment for the seller. Note: Please ensure to place your order and make payment through ICTcoder. If you do not place your order and make payment through ICTcoder, and the seller sends fake source code or encounters any issues, ICTcoder will not assist in resolving them, nor can we guarantee your funds!
View details
  • 1. Default transaction cycle for source code: The seller manually ships the goods within 1-3 days. The amount paid by the user will be held in escrow by ICTcoder until 7 days after the transaction is completed and both parties confirm that there are no issues. ICTcoder will then settle with the seller. In case of any disputes, ICTcoder will have staff to assist in handling until the dispute is resolved or a refund is made! If the buyer places an order and makes payment not through ICTcoder, any issues and disputes have nothing to do with ICTcoder, and ICTcoder will not be responsible for any liabilities!
View details
  • 1. ICTcoder will permanently archive the transaction process between both parties and snapshots of the traded goods to ensure the authenticity, validity, and security of the transaction! 2. ICTcoder cannot guarantee services such as "permanent package updates" and "permanent technical support" after the merchant's commitment. Buyers are advised to identify these services on their own. If necessary, they can contact ICTcoder for assistance; 3. When both website demonstration and image demonstration exist in the source code, and the text descriptions of the website and images are inconsistent, the text description of the image shall prevail as the basis for dispute resolution (excluding special statements or agreements); 4. If there is no statement such as "no legal basis for refund" or similar content, any indication on the product that "once sold, no refunds will be supported" or other similar declarations shall be deemed invalid; 5. Before the buyer places an order and makes payment, the transaction details agreed upon by both parties via WhatsApp or email can also serve as the basis for dispute resolution (in case of any inconsistency between the agreement and the description of the conflict, the agreement shall prevail); 6. Since chat records and email records can serve as the basis for dispute resolution, both parties should only communicate with each other through the contact information left on the system when contacting each other, in order to prevent the other party from denying their own commitments. 7. Although the probability of disputes is low, it is essential to retain important information such as chat records, text messages, and email records, in case a dispute arises, so that ICTcoder can intervene quickly.
View details
  • 1. As a third-party intermediary platform, ICTcoder solely protects transaction security and the rights and interests of both buyers and sellers based on the transaction contract (product description, agreed content before the transaction); 2. For online trading projects not on the ICTcoder platform, any consequences are unrelated to this platform; regardless of the reason why the seller requests an offline transaction, please contact the administrator to report.
View details

Related Source code

ICTcoder Customer Service

24-hour online professional services