Overview
Administrators can set ledgers at the table level of databases through the Ledger Table Policy menu and apply rules according to user ledger table calls.
Ledger table policies can only be used when the related license is activated. Please contact QueryPie customer support team to use this feature.
Mapping Approval Rules to Ledger Tables
Vendors supporting ledger table management include MySQL, MongoDB, Oracle, MariaDB, and Athena.
You can create policies by DB connection unit and map approval rules to tables to be managed as ledgers within connections. After setup, when users attempt to modify queries such as UPDATE and data export on the corresponding table, you can set SQL Requests through the corresponding approval rules.
Administrator > Databases > Ledger Management > Ledger Table Policy
- Navigate to Ledger Management > Ledger Table Policy menu from the Database settings menu.
- Click the
Create Policy
button in the top right. - Enter the following information for policy creation:
- Target Connection : Select the connection containing the table that is the target of policy application.
- Target Databases : Select the databases containing the tables that are the target of policy application. You can select multiple databases simultaneously.
- Save through the
Save
button.
You can check that policies have been created in the Ledger Table Policy list by DB connection unit.
Administrator > Databases > Ledger Management > Ledger Table Policy > Details
Move to the detail page of the created policy to set ledger table approval rules.
- Click the
Add Rule
button in the middle right of the detail page. - Select the ledger table from the list.
- Select the workflow approval rule to apply when executing DML queries on the corresponding ledger table.
- You can separately set the corresponding approval rules in the Ledger Approval Rules menu.
- If you want to enforce input of reasons for data queries, set the SELECT Purpose field to Required (Default value is Required).
- If you want to enforce input of reasons for data export, set the Export Purpose field to Required (Default value is Not Required).
- Click the
Ok
button to complete rule addition.