Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
refactor(i18n): migrate React components from Vue i18n to react-i18next (#19897)
Danny Xu2ea09bceb0b9
diff --git a/frontend/scripts/check-react-i18n.mjs b/frontend/scripts/check-react-i18n.mjsindex a53bb12b16..6a07bfaef2 100644--- a/frontend/scripts/check-react-i18n.mjs+++ b/frontend/scripts/check-react-i18n.mjs@@ -16,6 +16,11 @@ const DYNAMIC_PREFIXES = ["dynamic.subscription.features.","dynamic.subscription.purchase.features.","dynamic.settings.sensitive-data.semantic-types.template.",+ "sql-review.category.",+ "sql-review.engine.",+ "sql-review.level.",+ "sql-review.rule.",+ "sql-review.template.","subscription.plan.","settings.sensitive-data.algorithms.","instance.selected-n-instances",diff --git a/frontend/src/react/components/CustomApproval/utils.ts b/frontend/src/react/components/CustomApproval/utils.tsindex 50b3d583a1..a081a22be5 100644--- a/frontend/src/react/components/CustomApproval/utils.ts+++ b/frontend/src/react/components/CustomApproval/utils.ts@@ -4,7 +4,7 @@ import { type OptionConfig } from "@/components/ExprEditor/context";import type { ResourceSelectOption } from "@/components/v2/Select/RemoteResourceSelector/types";import type { ConditionGroupExpr } from "@/plugins/cel";import { ExprType, type Factor, SQLTypeList, wrapAsGroup } from "@/plugins/cel";-import { t } from "@/plugins/i18n";+import i18n from "@/react/i18n";import { useRoleStore } from "@/store";import type { LocalApprovalRule } from "@/types";import { PRESET_WORKSPACE_ROLES, PresetRoleType } from "@/types";@@ -44,13 +44,13 @@ export { formatApprovalFlow } from "@/utils/workspaceApprovalSetting";export const levelText = (level: RiskLevel) => {switch (level) {case RiskLevel.RISK_LEVEL_UNSPECIFIED:- return t("custom-approval.risk-rule.risk.risk-level.default");+ return i18n.t("custom-approval.risk-rule.risk.risk-level.default");case RiskLevel.LOW:- return t("custom-approval.risk-rule.risk.risk-level.low");+ return i18n.t("custom-approval.risk-rule.risk.risk-level.low");case RiskLevel.MODERATE:- return t("custom-approval.risk-rule.risk.risk-level.moderate");+ return i18n.t("custom-approval.risk-rule.risk.risk-level.moderate");case RiskLevel.HIGH:- return t("custom-approval.risk-rule.risk.risk-level.high");+ return i18n.t("custom-approval.risk-rule.risk.risk-level.high");default:return String(level);}@@ -63,17 +63,17 @@ export const approvalSourceText = () => {switch (source) {case WorkspaceApprovalSetting_Rule_Source.SOURCE_UNSPECIFIED:- return t("custom-approval.approval-flow.fallback-rules");+ return i18n.t("custom-approval.approval-flow.fallback-rules");case WorkspaceApprovalSetting_Rule_Source.CHANGE_DATABASE:- return t("custom-approval.risk-rule.risk.namespace.change_database");+ return i18n.t("custom-approval.risk-rule.risk.namespace.change_database");case WorkspaceApprovalSetting_Rule_Source.CREATE_DATABASE:- return t("custom-approval.risk-rule.risk.namespace.create_database");+ return i18n.t("custom-approval.risk-rule.risk.namespace.create_database");case WorkspaceApprovalSetting_Rule_Source.EXPORT_DATA:- return t("custom-approval.risk-rule.risk.namespace.data_export");+ return i18n.t("custom-approval.risk-rule.risk.namespace.data_export");case WorkspaceApprovalSetting_Rule_Source.REQUEST_ROLE:- return t("custom-approval.risk-rule.risk.namespace.request-role");+ return i18n.t("custom-approval.risk-rule.risk.namespace.request-role");case WorkspaceApprovalSetting_Rule_Source.REQUEST_ACCESS:- return t("custom-approval.risk-rule.risk.namespace.request-access");+ return i18n.t("custom-approval.risk-rule.risk.namespace.request-access");default:return "UNRECOGNIZED";}@@ -177,13 +177,16 @@ const getDBEndingOptions = () => {const getRiskLevelOptions = () => {const levels = [- { label: t("custom-approval.risk-rule.risk.risk-level.low"), value: "LOW" },{- label: t("custom-approval.risk-rule.risk.risk-level.moderate"),+ label: i18n.t("custom-approval.risk-rule.risk.risk-level.low"),+ value: "LOW",+ },+ {+ label: i18n.t("custom-approval.risk-rule.risk.risk-level.moderate"),value: "MODERATE",},{- label: t("custom-approval.risk-rule.risk.risk-level.high"),+ label: i18n.t("custom-approval.risk-rule.risk.risk-level.high"),value: "HIGH",},];@@ -278,9 +281,9 @@ export type ApprovalRuleTemplate = {export const approvalRuleTemplates: ApprovalRuleTemplate[] = [{title: () =>- t("custom-approval.approval-flow.template.presets.drop-or-truncate"),+ i18n.t("custom-approval.approval-flow.template.presets.drop-or-truncate"),description: () =>- t(+ i18n.t("custom-approval.approval-flow.template.preset-descriptions.drop-or-truncate"),// statement.sql_type in ["DROP_TABLE", "TRUNCATE"]@@ -294,9 +297,11 @@ export const approvalRuleTemplates: ApprovalRuleTemplate[] = [},{title: () =>- t("custom-approval.approval-flow.template.presets.high-affected-rows"),+ i18n.t(+ "custom-approval.approval-flow.template.presets.high-affected-rows"+ ),description: () =>- t(+ i18n.t("custom-approval.approval-flow.template.preset-descriptions.high-affected-rows"),// statement.affected_rows > 100@@ -309,9 +314,12 @@ export const approvalRuleTemplates: ApprovalRuleTemplate[] = [sources: [WorkspaceApprovalSetting_Rule_Source.CHANGE_DATABASE],},{- title: () => t("custom-approval.approval-flow.template.presets.fallback"),+ title: () =>+ i18n.t("custom-approval.approval-flow.template.presets.fallback"),description: () =>- t("custom-approval.approval-flow.template.preset-descriptions.fallback"),+ i18n.t(+ "custom-approval.approval-flow.template.preset-descriptions.fallback"+ ),// The condition "true" matches all requests not matched by other rules.expr: wrapAsGroup({type: ExprType.RawString,diff --git a/frontend/src/react/components/instance/common.ts b/frontend/src/react/components/instance/common.tsindex d7b1881871..647bcdf15d 100644--- a/frontend/src/react/components/instance/common.ts+++ b/frontend/src/react/components/instance/common.ts@@ -1,5 +1,5 @@import { cloneDeep, first } from "lodash-es";-import { t } from "@/plugins/i18n";+import i18n from "@/react/i18n";import { useActuatorV1Store, useSubscriptionV1Store } from "@/store";import { UNKNOWN_INSTANCE_NAME, unknownDataSource } from "@/types";import { Engine, State } from "@/types/proto-es/v1/common_pb";@@ -68,7 +68,7 @@ export const extractBasicInfo = (instance: Instance | undefined): BasicInfo => {return {name: instance?.name ?? UNKNOWN_INSTANCE_NAME,state: instance?.state ?? State.ACTIVE,- title: instance?.title ?? t("instance.new-instance"),+ title: instance?.title ?? i18n.t("instance.new-instance"),engine: instance?.engine ?? Engine.MYSQL,externalLink: instance?.externalLink ?? "",environment: instance?.environment,diff --git a/frontend/src/react/components/sql-review/Panels.tsx b/frontend/src/react/components/sql-review/Panels.tsxindex 908d33065c..37b69c1ec5 100644--- a/frontend/src/react/components/sql-review/Panels.tsx+++ b/frontend/src/react/components/sql-review/Panels.tsx@@ -1,7 +1,7 @@import { X } from "lucide-react";import { useCallback, useEffect, useMemo, useState } from "react";+import { useTranslation } from "react-i18next";import { getRuleKey } from "@/components/SQLReview/components/utils";-import { t as vueT } from "@/plugins/i18n";import { Alert, AlertDescription } from "@/react/components/ui/alert";import { Button } from "@/react/components/ui/button";import { useEscapeKey } from "@/react/hooks/useEscapeKey";@@ -44,6 +44,7 @@ export function RulesSelectPanel({onRuleSelect,onRuleRemove,}: RulesSelectPanelProps) {+ const { t } = useTranslation();useEscapeKey(show, onClose);const getSelectedRuleKeys = useCallback(@@ -104,7 +105,7 @@ export function RulesSelectPanel({<div className="ml-auto relative bg-white w-[70rem] max-w-[100vw] h-full shadow-lg flex flex-col"><div className="px-4 py-3 border-b flex items-center justify-between"><h2 className="text-lg font-medium">- {vueT("sql-review.select-review-rules")}+ {t("sql-review.select-review-rules")}</h2><Button variant="ghost" size="icon" onClick={onClose}><X className="w-4 h-4" />@@ -130,7 +131,7 @@ export function RulesSelectPanel({</div><div className="px-4 py-3 border-t flex justify-end gap-x-3"><Button variant="outline" onClick={onClose}>- {vueT("common.close")}+ {t("common.close")}</Button></div></div>@@ -153,6 +154,7 @@ export function AttachResourcesPanel({review,onClose,}: AttachResourcesPanelProps) {+ const { t } = useTranslation();const sqlReviewStore = useSQLReviewStore();const envStore = useEnvironmentV1Store();const projStore = useProjectV1Store();@@ -242,7 +244,7 @@ export function AttachResourcesPanel({pushNotification({module: "bytebase",style: "SUCCESS",- title: vueT("sql-review.policy-updated"),+ title: t("sql-review.policy-updated"),});onClose();};@@ -255,7 +257,7 @@ export function AttachResourcesPanel({<div className="ml-auto relative bg-white w-[40rem] max-w-[100vw] h-full shadow-lg flex flex-col"><div className="px-4 py-3 border-b flex items-center justify-between"><h2 className="text-lg font-medium">- {vueT("sql-review.attach-resource.self")}+ {t("sql-review.attach-resource.self")}</h2><Button variant="ghost" size="icon" onClick={onClose}><X className="w-4 h-4" />@@ -265,14 +267,14 @@ export function AttachResourcesPanel({<div className="flex-1 overflow-y-auto p-4"><div className="flex flex-col gap-y-6"><p className="textinfolabel">- {vueT("sql-review.attach-resource.label")}+ {t("sql-review.attach-resource.label")}</p>{/* Environment section */}<div>- <div className="textlabel mb-1">{vueT("common.environment")}</div>+ <div className="textlabel mb-1">{t("common.environment")}</div><p className="textinfolabel">- {vueT("sql-review.attach-resource.label-environment")}+ {t("sql-review.attach-resource.label-environment")}</p><div className="mt-3 flex flex-col gap-y-2">{environments.map((env) => {@@ -304,17 +306,15 @@ export function AttachResourcesPanel({{/* OR divider */}<div className="flex items-center gap-x-2">- <div className="textlabel w-10 capitalize">- {vueT("common.or")}- </div>+ <div className="textlabel w-10 capitalize">{t("common.or")}</div><hr className="flex-1 border-gray-200" /></div>{/* Project section */}<div>- <div className="textlabel mb-1">{vueT("common.project")}</div>+ <div className="textlabel mb-1">{t("common.project")}</div><p className="textinfolabel">- {vueT("sql-review.attach-resource.label-project")}+ {t("sql-review.attach-resource.label-project")}</p><div className="mt-3 flex flex-col gap-y-2 max-h-60 overflow-y-auto">{projects.map((proj) => {@@ -351,8 +351,8 @@ export function AttachResourcesPanel({<Alert variant="warning"><AlertDescription><p className="mb-2">- {vueT("sql-review.attach-resource.override-warning", {- button: vueT("common.confirm"),+ {t("sql-review.attach-resource.override-warning", {+ button: t("common.confirm"),})}</p><ul className="list-disc list-inside text-sm">@@ -367,15 +367,15 @@ export function AttachResourcesPanel({<div className="px-4 py-3 border-t flex justify-end gap-x-2"><Button variant="outline" onClick={onClose}>- {vueT("common.cancel")}+ {t("common.cancel")}</Button>{showOverrideConfirm ? (<Button variant="destructive" onClick={doSave}>- {vueT("common.confirm")}+ {t("common.confirm")}</Button>) : (<Button disabled={!hasPermission} onClick={onConfirm}>- {vueT("common.confirm")}+ {t("common.confirm")}</Button>)}</div>diff --git a/frontend/src/react/components/sql-review/RuleComponents.tsx b/frontend/src/react/components/sql-review/RuleComponents.tsxindex cd51d4800a..9cc602fd10 100644--- a/frontend/src/react/components/sql-review/RuleComponents.tsx+++ b/frontend/src/react/components/sql-review/RuleComponents.tsx@@ -4,7 +4,6 @@ import { useTranslation } from "react-i18next";import type { PayloadValueType } from "@/components/SQLReview/components/RuleConfigComponents/types";import { getRulePayload } from "@/components/SQLReview/components/RuleConfigComponents/utils";import { payloadValueListToComponentList } from "@/components/SQLReview/components/utils";-import { t as vueT, te as vueTe } from "@/plugins/i18n";import { Badge } from "@/react/components/ui/badge";import { Button } from "@/react/components/ui/button";import {@@ -14,6 +13,7 @@ import {} from "@/react/components/ui/dialog";import { Input } from "@/react/components/ui/input";import { Tooltip } from "@/react/components/ui/tooltip";+import i18n from "@/react/i18n";import { Engine } from "@/types/proto-es/v1/common_pb";import { SQLReviewRule_Level } from "@/types/proto-es/v1/review_config_service_pb";import type {@@ -50,11 +50,12 @@ export function RuleLevelSwitch({editable = true,onLevelChange,}: RuleLevelSwitchProps) {+ const { t } = useTranslation();const levelOptions = [- { level: SQLReviewRule_Level.ERROR, label: vueT("sql-review.level.error") },+ { level: SQLReviewRule_Level.ERROR, label: t("sql-review.level.error") },{level: SQLReviewRule_Level.WARNING,- label: vueT("sql-review.level.warning"),+ label: t("sql-review.level.warning"),},];@@ -99,12 +100,13 @@ interface RuleLevelBadgeProps {}export function RuleLevelBadge({ level, suffix }: RuleLevelBadgeProps) {+ const { t } = useTranslation();const variant =level === SQLReviewRule_Level.ERROR ? "destructive" : "warning";const label =level === SQLReviewRule_Level.ERROR- ? vueT("sql-review.level.error")- : vueT("sql-review.level.warning");+ ? t("sql-review.level.error")+ : t("sql-review.level.warning");return (<Badge variant={variant}>@@ -128,7 +130,7 @@ function configTitle(config: RuleConfigComponent): string {const key = `sql-review.rule.${getRuleLocalizationKey(ruleTypeToString(rule.type))}.component.${config.key}.title`;- return vueT(key);+ return i18n.t(key);}function configTooltip(@@ -136,7 +138,7 @@ function configTooltip(config: RuleConfigComponent): string {const key = `sql-review.rule.${getRuleLocalizationKey(ruleTypeToString(rule.type))}.component.${config.key}.tooltip`;- return vueTe(key) ? vueT(key) : "";+ return i18n.exists(key) ? i18n.t(key) : "";}export function RuleConfig({@@ -258,6 +260,7 @@ function StringArrayInput({disabled: boolean;onChange: (value: string[]) => void;}) {+ const { t } = useTranslation();const [inputValue, setInputValue] = useState("");const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {@@ -279,7 +282,7 @@ function StringArrayInput({<div>{!disabled && (<p className="text-sm text-control-placeholder mb-1">- {vueT("sql-review.input-then-press-enter")}+ {t("sql-review.input-then-press-enter")}</p>)}<div className="flex flex-wrap items-center gap-1">@@ -328,10 +331,11 @@ function TemplateSelect({disabled: boolean;onChange: (value: string) => void;}) {+ const { t } = useTranslation();const payload = config.payload as TemplatePayload;const options = payload.templateList.map((id) => ({id,- description: vueT(+ description: t(`sql-review.rule.${getRuleLocalizationKey(ruleType)}.component.${config.key}.template.${id}`),}));diff --git a/frontend/src/react/components/sql-review/RuleTable.tsx b/frontend/src/react/components/sql-review/RuleTable.tsxindex 5c3890d9bc..0f494b6d53 100644--- a/frontend/src/react/components/sql-review/RuleTable.tsx+++ b/frontend/src/react/components/sql-review/RuleTable.tsx@@ -2,7 +2,6 @@ import { ChevronDown, ChevronRight, ExternalLink, Pencil } from "lucide-react";import { useCallback, useEffect, useMemo, useState } from "react";import { useTranslation } from "react-i18next";import { getRuleKey } from "@/components/SQLReview/components/utils";-import { t as vueT } from "@/plugins/i18n";import { Button } from "@/react/components/ui/button";import { SearchInput } from "@/react/components/ui/search-input";import { Tabs, TabsList, TabsTrigger } from "@/react/components/ui/tabs";@@ -146,12 +145,12 @@ export function RuleFilter({const tabItemList = useMemo(() => {const list: RuleListWithCategory[] = [- { value: "all", label: vueT("common.all"), ruleList: [] },+ { value: "all", label: t("common.all"), ruleList: [] },];for (const [category, rules] of convertToCategoryMap(ruleList).entries()) {list.push({value: category,- label: vueT(`sql-review.category.${category.toLowerCase()}`),+ label: t(`sql-review.category.${category.toLowerCase()}`),ruleList: rules,});}@@ -212,7 +211,7 @@ export function RuleFilter({onChange={(e) => onToggleSelectAll?.(e.target.checked)}/><span className="text-xl text-main font-medium">- {vueT("sql-review.select-all")}+ {t("sql-review.select-all")}</span></div>)}@@ -332,7 +331,7 @@ export function RuleTable({</th>{!hideLevel && (<th className="text-left px-4 py-2 font-medium whitespace-nowrap w-[12rem]">- {vueT("sql-review.level.name")}+ {t("sql-review.level.name")}</th>)}{!supportSelect && (diff --git a/frontend/src/react/components/sql-review/TemplateSelector.tsx b/frontend/src/react/components/sql-review/TemplateSelector.tsxindex 54c3d8cbed..7a919061b2 100644--- a/frontend/src/react/components/sql-review/TemplateSelector.tsx+++ b/frontend/src/react/components/sql-review/TemplateSelector.tsx@@ -2,7 +2,6 @@ import { CheckCircle } from "lucide-react";import { useEffect, useMemo } from "react";import { useTranslation } from "react-i18next";import { rulesToTemplate } from "@/components/SQLReview/components/utils";-import { t as vueT } from "@/plugins/i18n";import { EnvironmentLabel } from "@/react/components/EnvironmentLabel";import { Badge } from "@/react/components/ui/badge";import { useVueState } from "@/react/hooks/useVueState";@@ -73,6 +72,7 @@ export function TemplateSelector({selectedTemplateId,onSelectTemplate,}: TemplateSelectorProps) {+ const { t } = useTranslation();const sqlReviewStore = useSQLReviewStore();const policyList = useVueState(() => [...sqlReviewStore.reviewPolicyList]);@@ -90,7 +90,7 @@ export function TemplateSelector({return (<div className="flex flex-col gap-y-2"><p className="textlabel">- {vueT("sql-review.create.basic-info.choose-template")}+ {t("sql-review.create.basic-info.choose-template")}{required && <span className="text-red-500"> *</span>}</p>@@ -116,7 +116,7 @@ export function TemplateSelector({</div><p className="text-sm"><span className="mr-2">- {vueT("sql-review.enabled-rules")}:+ {t("sql-review.enabled-rules")}:</span><span>{template.ruleList.length}</span></p>@@ -143,19 +143,15 @@ export function TemplateSelector({><div className="text-left flex flex-col gap-y-2"><span className="text-base font-medium">- {vueT(- `sql-review.template.${template.id.split(".").join("-")}`- )}+ {t(`sql-review.template.${template.id.split(".").join("-")}`)}</span><p className="text-sm text-gray-500">- {vueT(+ {t(`sql-review.template.${template.id.split(".").join("-")}-desc`)}</p><p className="text-sm">- <span className="mr-2">- {vueT("sql-review.enabled-rules")}:- </span>+ <span className="mr-2">{t("sql-review.enabled-rules")}:</span><span>{template.ruleList.length}</span></p></div>diff --git a/frontend/src/react/locales/en-US.json b/frontend/src/react/locales/en-US.jsonindex ae912ec814..c938654750 100644--- a/frontend/src/react/locales/en-US.json+++ b/frontend/src/react/locales/en-US.json@@ -304,10 +304,13 @@},"common.add": "Add","common.admin": "Admin",+ "common.all": "All","common.archive": "Archive","common.archived": "Archived","common.cancel": "Cancel","common.cannot-undo-this-action": "You cannot undo this action",+ "common.close": "Close",+ "common.confirm": "Confirm","common.continue-anyway": "Continue anyway","common.create": "Create","common.creating": "Creating",@@ -329,6 +332,7 @@"common.minutes": "Minutes","common.no-data": "No data","common.optional": "Optional",+ "common.or": "or","common.overview": "Overview","common.password": "Password","common.project": "Project",@@ -1844,12 +1848,29 @@"attach-resource": {"change-resources": "Change attached resources","label": "You can apply the SQL review policy to environments or projects. The database will use the project-level policy if it exists, or fallback to the environment-level policy.",+ "label-environment": "The SQL review policy will affect all databases belonging to the selected environment.",+ "label-project": "The SQL review policy will affect all databases belonging to the selected project. This will supersede the database environment-level policy.","no-linked-resources": "No attached resources",+ "override-warning": "Following resources already bound with other SQL review policies. Click \"{{button}}\" will override the config.","self": "Attach to resources"},+ "category": {+ "advice": "Advice",+ "builtin": "Built-in",+ "column": "Column",+ "database": "Database",+ "engine": "Engine",+ "index": "Index",+ "naming": "Naming",+ "schema": "Schema",+ "statement": "Statement",+ "system": "System",+ "table": "Table"+ },"configure-policy": "Configure policy","create": {"basic-info": {+ "choose-template": "Choose template","display-name": "Display name","display-name-default": "SQL review policy","display-name-label": "A display name to help identifying among different review policies.",@@ -1865,6 +1886,23 @@"description": "SQL review policy can define different set of SQL lint rules for the respective environments. It helps teams to adopt SQL best practice and enforce schema consistency across different databases. Whenever you attempt a DDL/DML change or use SQL Editor to query data, the query will be checked against the configured SQL review policy.","disabled": "SQL review is disabled","enabled-rules": "Enabled rules",+ "engine": {+ "mariadb": "MariaDB",+ "mssql": "SQL Server",+ "mysql": "MySQL",+ "oceanbase": "OceanBase",+ "oracle": "Oracle",+ "postgres": "PostgreSQL",+ "snowflake": "Snowflake",+ "tidb": "TiDB"+ },+ "input-then-press-enter": "Input the value then press enter to add",+ "level": {+ "disabled": "Disabled",+ "error": "Error",+ "name": "Level",+ "warning": "Warning"+ },"no-permission": "Only DBA or Admin has permission to create or update review policy.","policy-create-failed": "Failed to create the review policy.","policy-created": "Successfully created the review policy.",@@ -1873,8 +1911,689 @@"policy-updated": "Successfully updated the review policy.","review-policy": "Review policy","rule": {+ "ADVICE_ONLINE_MIGRATION": {+ "component": {+ "number": {+ "title": "Threshold value"+ }+ },+ "description": "Advise enabling online migration if the migrated table row count exceeds your setting. Suggested error level: Warning",+ "title": "Online migration"+ },+ "BUILTIN_PRIOR_BACKUP_CHECK": {+ "description": "This rule checks whether a backup can be created before data changes. It verifies the existence of the backup target database and disallows non-supported scenarios. It's builtin and cannot skip.",+ "title": "Prior backup feasibility check"+ },+ "BUILTIN_WALK_THROUGH_CHECK": {+ "description": "Validates SQL statements against the current database schema by simulating their execution. Detects issues like referencing non-existent tables, columns, or indexes.",+ "title": "Schema walk-through validation"+ },+ "COLUMN_AUTO_INCREMENT_INITIAL_VALUE": {+ "component": {+ "number": {+ "title": "Initial value"+ }+ },+ "description": "based on management requirements to limit the initial value of the auto-increment column. Suggested error level: Warning",+ "title": "Restrict the initial value of auto-increment columns"+ },+ "COLUMN_AUTO_INCREMENT_MUST_INTEGER": {+ "description": "MySQL's auto-increment column are generally used as business-independent primary key. Using integer types occupies less storage space and makes the primary key index structure more compact, bringing better query and DML performance. Suggested error level: Error",+ "title": "Enforce the use of \"INTEGER\" data type for auto-increment columns"+ },+ "COLUMN_AUTO_INCREMENT_MUST_UNSIGNED": {+ "description": "Unsigned types do not store negative numbers, and the range of values that can be stored by the same type is doubled, which can avoid auto-increment columns overflow. Suggested error level: Warning",+ "title": "Enforce the use of \"UNSIGNED\" data type for auto-increment columns"+ },+ "COLUMN_COMMENT": {+ "component": {+ "maxLength": {+ "title": "Max length"+ },+ "required": {+ "title": "Require comment"+ }+ },+ "description": "Adding comments to columns is a good development practice, but excessively long comments can decrease the readability of the schema. Suggested error level: Warning",+ "title": "Column comment convention"+ },+ "COLUMN_CURRENT_TIME_COUNT_LIMIT": {+ "description": "Only columns recording the creation time of the record with \"DEFAULT NOW()\" and recording the update time of the record with \"DEFAULT NOW() ON UPDATE\" need to call function to get system time. It is meaningless and will increase resource overhead to record system time in other columns. Suggested error level: Error",+ "title": "Restrict the number of columns in the table that acquire system time"+ },+ "COLUMN_DEFAULT_DISALLOW_VOLATILE": {+ "description": "Volatile functions (e.g., clock_timestamp()) update each row with the value at the time of ALTER TABLE ADD COLUMN execution, potentially causing lengthy updates.",+ "title": "Disallow setting volatile default value on columns"+ },+ "COLUMN_DISALLOW_CHANGE": {+ "description": "\"CHANGE COLUMN\" is unique to MySQL syntax and can be used to modify column names and other properties at the same time. However, it may cause the column name to be mistakenly changed when modifying properties. It is recommended to still use standard \"RENAME\" and \"MODIFY\" statements to distinguish between the two types of changes. Suggested error level: Error",+ "title": "Prohibit using \"CHANGE COLUMN\" statement"+ },+ "COLUMN_DISALLOW_CHANGE_TYPE": {+ "description": "Modifying column types may affect system performance, maintainability, and even lead to data loss. Suggested error level: Warning",+ "title": "Prohibit modifying column types"+ },+ "COLUMN_DISALLOW_CHANGING_ORDER": {+ "description": "Modifying the order of columns may cause some applications or views that depend on the default order of the original table to produce unexpected results, such as \"select *\". Suggested error level: Warning",+ "title": "Prohibit changing the order of columns in a table"+ },+ "COLUMN_DISALLOW_DROP": {+ "description": "Prohibit dropping columns. Suggested error level: Warning",+ "title": "Prohibit dropping columns"+ },+ "COLUMN_DISALLOW_DROP_IN_INDEX": {+ "description": "Prohibit dropping columns in index. Suggested error level: Error",+ "title": "Prohibit dropping columns in index"+ },+ "COLUMN_DISALLOW_SET_CHARSET": {+ "description": "It is recommended to set the charset at the database level or table level. Setting the charset at finer granularity can bring unnecessary complexities. Suggested error level: Error.",+ "title": "Prohibit defining character set in column properties"+ },+ "COLUMN_MAXIMUM_CHARACTER_LENGTH": {+ "component": {+ "number": {+ "title": "Maximum length"+ }+ },+ "description": "\"CHAR\" is a fixed-length type. For example, the CHAR(20) column will occupy 20 character spaces even if only one character is stored, causing waste. When the string is too long and the length is not fixed, consider using VARCHAR for MySQL and using TEXT for PostgreSQL. Suggested error level: Error",+ "title": "Restrict the length of \"CHAR\" data type"+ },+ "COLUMN_MAXIMUM_VARCHAR_LENGTH": {+ "component": {+ "number": {+ "title": "Maximum length"+ }+ },+ "description": "",+ "title": "Restrict the length of \"VARCHAR\" data type"+ },+ "COLUMN_NO_NULL": {+ "description": "Columns cannot have NULL value.",+ "title": "Enforce \"NOT NULL\" constraints on columns"+ },+ "COLUMN_REQUIRED": {+ "component": {+ "list": {+ "title": "Required column names"+ }+ },+ "description": "Some common columns are helpful for better application maintenance. For example, adding a business-independent \"ID\" column as the primary key avoids primary key conflicts caused by business changes (such as business mergers), and in some scenarios can also bring better data insertion performance. Suggested error level: Warning",+ "title": "Enforce the inclusion of specific columns in a table"+ },+ "COLUMN_REQUIRE_CHARSET": {+ "description": "The charset of columns with text data types must be specified. Suggested error level: Warning",+ "title": "Require charset for text columns"+ },+ "COLUMN_REQUIRE_COLLATION": {+ "description": "The collation of columns with text data types must be specified. Suggested error level: Warning",+ "title": "Require collation for text columns"+ },+ "COLUMN_REQUIRE_DEFAULT": {+ "description": "Setting default values that satisfy business logic can effectively improve the data quality of downstream analytical pipeline. This rule does not check \"PRIMARY KEY\", \"JSON\", \"BLOB\", \"TEXT\", \"GEOMETRY\", \"AUTO_INCREMENT\", \"GENERATED\" types. Suggested error level: Warning",+ "title": "Enforce setting default value on columns"+ },+ "COLUMN_SET_DEFAULT_FOR_NOT_NULL": {+ "description": "For a 'NOT NULL' column, if a value is not assigned to the column when inserting a new row and the column does not have a default value, the database will reject the insertion of that row. Setting a default value for a new column can also ensure compatibility with legacy application. Suggested error level: Error",+ "title": "Enforce default value on \"NOT NULL\" columns"+ },+ "COLUMN_TYPE_DISALLOW_LIST": {+ "component": {+ "list": {+ "title": "Disallow list"+ }+ },+ "description": "Abusing column types can have serious negative effects on system maintainability and performance. For example, using \"LOB\" column to store large amounts of audio and video data may cause database performance to decrease, backup and recovery times to lengthen, and data synchronization tools incompatible. Suggested error level: Error",+ "title": "Prohibit the use of certain column data types"+ },+ "DATABASE_DROP_EMPTY_DATABASE": {+ "description": "Deletion is only allowed when there are no tables in the database, which can greatly avoid accidental deletion. Suggested error level: Error",+ "title": "Prohibit deleting non-empty database"+ },+ "ENGINE_MYSQL_USE_INNODB": {+ "description": "InnoDB is the default storage engine for MySQL that provides transaction support. It also provides better performance for high-concurrency and low-latency scenarios, and supports online data backup and recovery. It is the preferred choice for OLTP businesses. Suggested error level: Error",+ "title": "Enforce InnoDB storage engine"+ },+ "INDEX_CREATE_CONCURRENTLY": {+ "description": "In PostgreSQL 11 and above, using the standard statement to create an index will cause table locking and unable to write. Using the \"CONCURRENTLY\" mode can avoid this problem. Suggested error level: Warning",+ "title": "Enforce concurrent index creation"+ },+ "INDEX_KEY_NUMBER_LIMIT": {+ "component": {+ "number": {+ "title": "Maximum column count"+ }+ },+ "description": "A composite index with over 5 columns does not significantly improve query performance, but it occupies a lot of space and reduces DML performance. Suggested error level: Warning",+ "title": "Restrict the number of columns in a single index"+ },+ "INDEX_NOT_REDUNDANT": {+ "description": "Redundant index may result in performance loss and occupy additional space. For example, the index on columns (c1, c2) will be treated as redundant indexes if there is already a index on column (c1). Suggested error level: Warning",+ "title": "Disallow redundant indexes"+ },+ "INDEX_NO_DUPLICATE_COLUMN": {+ "description": "Creating an index with duplicate columns will result in failure. Suggested error level: Error",+ "title": "Prohibit indexes containing duplicate columns"+ },+ "INDEX_PK_TYPE_LIMIT": {+ "description": "Enforce the primary key type to be INT or BIGINT.",+ "title": "Primary key type limit"+ },+ "INDEX_PRIMARY_KEY_TYPE_ALLOWLIST": {+ "component": {+ "list": {+ "title": "Allow list"+ }+ },+ "description": "The appropriate primary key type can optimize storage structure, reduce space usage, and beneficial for insert and query performance. Suggested error level: Warning",+ "title": "Allowable list of primary key types"+ },+ "INDEX_TOTAL_NUMBER_LIMIT": {+ "component": {+ "number": {+ "title": "Maximum index count"+ }+ },+ "description": "Although indexes can improve query performance, they also occupy a lot of space and reduce DML performance. Therefore, it is not recommended to create more than 5 indexes in a table. Suggested error level: Warning",+ "title": "Restrict the number of indexes on a single table"+ },+ "INDEX_TYPE_ALLOW_LIST": {+ "component": {+ "list": {+ "title": "Allow list"+ }+ },+ "description": "Different index types have different performance characteristics. For example, B-tree indexes are suitable for range queries, while hash indexes are suitable for equality queries. Suggested error level: Warning",+ "title": "Allowable list of index types"+ },+ "INDEX_TYPE_NO_BLOB": {+ "description": "The \"BLOB\" type is usually used to store binary data and should not be used as a query condition. If an index is created on this column type by mistake, it will consume a lot of resources and cause serious performance impact. Suggested error level: Error",+ "title": "Prohibit creating indexes on \"BLOB\" and \"TEXT\" data type columns"+ },+ "NAMING_COLUMN": {+ "component": {+ "format": {+ "title": "Column name format (regex)"+ },+ "maxLength": {+ "title": "Length limit"+ }+ },+ "description": "The default format is all lowercase letters, separated by underscores between words, which is no more than 63 characters long, such as \"abc\" and \"abc_def\". Suggested error level: Warning",+ "title": "Enforce column naming format"+ },+ "NAMING_COLUMN_AUTO_INCREMENT": {+ "component": {+ "format": {+ "title": "Auto-increment column name format (regex)"+ },+ "maxLength": {+ "title": "Length limit"+ }+ },+ "description": "The default column name is \"ID\", and is no more than 63 characters long.",+ "title": " Enforce auto-increment column naming format"+ },+ "NAMING_FULLY_QUALIFIED": {+ "description": "Enforce the use of fully qualified object names. For example, “schema.table”, suggested error level: Warning",+ "title": "Fully qualified object name"+ },+ "NAMING_IDENTIFIER_CASE": {+ "component": {+ "upper": {+ "title": "Upper case"+ }+ },+ "description": "",+ "title": "Enforce identifier case"+ },+ "NAMING_IDENTIFIER_NO_KEYWORD": {+ "description": "",+ "title": "Prohibit using keywords as identifiers"+ },+ "NAMING_INDEX_FK": {+ "component": {+ "format": {+ "template": {+ "referenced_column": "The referenced column name",+ "referenced_table": "The referenced table name",+ "referencing_column": "The referencing column name",+ "referencing_table": "The referencing table name"+ },+ "title": "Foreign key name format"+ },+ "maxLength": {+ "title": "Length limit"+ }+ },+ "description": "The name is allowed to be empty and named by the database. If not empty, the default format is \"fk_<table name>_<unique key column name combination>\", which is no more than 63 characters long, such as \"fk_my_table_id_name\". Suggested error level: Warning",+ "title": "Enforce foreign key naming format"+ },+ "NAMING_INDEX_IDX": {+ "component": {+ "format": {+ "template": {+ "column_list": "Index column names, joined by _",+ "table": "The table name"+ },+ "title": "Index name format"+ },+ "maxLength": {+ "title": "Length limit"+ }+ },+ "description": "The name is allowed to be empty and named by the database. If not empty, the default format is \"idx_<table name>_<unique key column name combination>\", which is no more than 63 characters long, such as \"idx_my_table_id_name\". Suggested error level: Warning",+ "title": "Enforce index naming format"+ },+ "NAMING_INDEX_PK": {+ "component": {+ "format": {+ "template": {+ "column_list": "Index column names, joined by _",+ "table": "The table name"+ },+ "title": "Primary key name format"+ },+ "maxLength": {+ "title": "Length limit"+ }+ },+ "description": "The name is allowed to be empty and named by the database. If not empty, the default format is \"pk_<table name>_<unique key column name combination>\", which is no more than 63 characters long, such as \"pk_my_table_id_name\". Suggested error level: Warning",+ "title": "Enforce primary key naming format"+ },+ "NAMING_INDEX_UK": {+ "component": {+ "format": {+ "template": {+ "column_list": "Index column names, joined by _",+ "table": "The table name"+ },+ "title": "Unique key name format"+ },+ "maxLength": {+ "title": "Length limit"+ }+ },+ "description": "The name is allowed to be empty and named by the database. If not empty, the default format is \"uk_<table name>_<unique key column name combination>\", which is no more than 63 characters long, such as \"uk_my_table_id_name\". Suggested error level: Warning",+ "title": "Enforce unique key naming format"+ },+ "NAMING_TABLE": {+ "component": {+ "format": {+ "title": "Table name format (regex)"+ },+ "maxLength": {+ "title": "Length limit"+ }+ },+ "description": "The default format is all lowercase letters, separated by underscores between words, and no more than 63 characters long, such as \"abc\" and \"abc_def\". Suggested error level: Warning",+ "title": "Enforce table naming format"+ },+ "NAMING_TABLE_NO_KEYWORD": {+ "description": "",+ "title": "Prohibit using keywords as table names"+ },+ "SCHEMA_BACKWARD_COMPATIBILITY": {+ "description": "Some changes may affect running applications, such as modifying the name of database object, adding new constraints, etc. This rule can avoid careless changes that lead to the failure of existing application. Suggested error level: Warning",+ "title": "Check application backward compatibility"+ },+ "STATEMENT_ADD_CHECK_NOT_VALID": {+ "description": "Adding a CHECK constraint needs to verify the existing data and requires ACCESS EXCLUSIVE table lock. This blocks read and write, which may cause business interruption. It is recommended to add the \"NOT VALID\" option to validate new data and manually validate existing data after the change is completed. Suggested error level: Warning",+ "title": "Enforce including \"NOT VALID\" option when adding \"CHECK\" constraints"+ },+ "STATEMENT_ADD_COLUMN_WITHOUT_POSITION": {+ "description": "In some cases, using FIRST/AFTER to add columns will cause data reorganization (rewriting all data). Suggested error level: Warning",+ "title": "Check no position in ADD COLUMN clause"+ },+ "STATEMENT_ADD_FOREIGN_KEY_NOT_VALID": {+ "description": "Adding foreign keys needs to verify the existing data and requires SHARE ROW EXCLUSIVE table lock. This blocks write, which may cause business interruption. It is recommended to add the \"NOT VALID\" option to validate new data and validate existing data after the change is completed. Suggested error level: Warning",+ "title": "Enforce including \"NOT VALID\" option when adding foreign keys"+ },+ "STATEMENT_AFFECTED_ROW_LIMIT": {+ "component": {+ "number": {+ "title": "Maximum affected rows"+ }+ },+ "description": "Reveal the number of rows to be updated or deleted can help determine whether the statement meets business expectations. Suggested error level: Warning",+ "title": "Restrict the maximum number of updated or deleted rows (estimated)."+ },+ "STATEMENT_CHECK_SET_ROLE_VARIABLE": {+ "description": "Failure to set the role statement properly at the beginning of a session may lead to unauthorized access or improper permissions assignment, potentially compromising data security and integrity. Suggested error level: Warning",+ "title": "Check if Set Role statement at the beginning"+ },+ "STATEMENT_CREATE_SPECIFY_SCHEMA": {+ "description": "If the schema is not specified, the object will be created in the default schema, which may cause unexpected results.",+ "title": "Prohibit creating objects without specifying the schema"+ },+ "STATEMENT_DISALLOW_ADD_COLUMN_WITH_DEFAULT": {+ "description": "Before PostgreSQL 11, adding a column with a default value cause table locking and unable to read and write, which may cause business interruption. In PostgreSQL 11 and above, this issue has been optimized and there is no need to pay attention to this rule. Suggested error level: Warning",+ "title": "Restrict adding columns with default values to a table"+ },+ "STATEMENT_DISALLOW_ADD_NOT_NULL": {+ "description": "Adding NOT NULL constraint with default value before PostgreSQL 11 or adding NOT NULL constraint without default value requires to verify the existing data. This blocks read and write, which may cause business interruption. Suggested error level: Warning",+ "title": "Restrict adding \"NOT NULL\" constraint to existing columns"+ },+ "STATEMENT_DISALLOW_COMMIT": {+ "description": "In some cases, multiple statements are required to be included in a transaction committed by the system, in order to quickly rerun in case of partial failure. Therefore, explicit \"COMMIT\" is not allowed. Suggested error level: Warning",+ "title": "Prohibit explicit \"COMMIT\" statement"+ },+ "STATEMENT_DISALLOW_CROSS_DB_QUERIES": {+ "description": "Cross-database queries increase system coupling and can lead to efficiency issues. Suggested error level: Warning",+ "title": "Disallow cross database queries"+ },+ "STATEMENT_DISALLOW_LIMIT": {+ "description": "If LIMIT is used in DML statements without an ORDER BY clause, the affected rows order are not fixed, which may cause data inconsistency between the primary and replica databases in some replication modes. Suggested error level: Error",+ "title": "Prohibit using \"LIMIT\" clause in DML statements"+ },+ "STATEMENT_DISALLOW_OFFLINE_DDL": {+ "description": "To prevent database changes from impacting your business, avoid using Offline DDL.",+ "title": "Disallow Offline DDL"+ },+ "STATEMENT_DISALLOW_ON_DEL_CASCADE": {+ "description": "The \"CASCADE\" option in 'ON DELETE' can cause a large number of dependent objects to be deleted or modified, which may cause unexpected results. Suggested error level: Error",+ "title": "Prohibit using CASCADE option for ON DELETE clauses"+ },+ "STATEMENT_DISALLOW_ORDER_BY": {+ "description": "Sorting operations are extremely resource-intensive, so for update and delete operations, it is recommended to use a deterministic filtering condition as much as possible instead of using ORDER BY and LIMIT. Suggested error level: Error",+ "title": "Prohibit using \"ORDER BY\" clause in \"UPDATE\" and \"DELETE\" statements"+ },+ "STATEMENT_DISALLOW_RM_TBL_CASCADE": {+ "description": "Using the \"CASCADE\" option when removing a table can cause a large number of dependent objects to be deleted or modified, which may cause unexpected results. Suggested error level: Error",+ "title": "Prohibit using CASCADE when removing a table"+ },+ "STATEMENT_DISALLOW_USING_FILESORT": {+ "description": "Filesort is a resource-intensive operation and may cause serious performance impact. Suggested error level: Warning",+ "title": "Prohibit using filesort"+ },+ "STATEMENT_DISALLOW_USING_TEMPORARY": {+ "description": "Temporary tables are not recommended for use in production environments. They can cause resource contention and performance issues. Suggested error level: Warning",+ "title": "Prohibit using temporary tables"+ },+ "STATEMENT_DML_DRY_RUN": {+ "description": "When the syntax is correct, but the table name is incorrect or the permission is insufficient, it can be discovered by dry run before the actual execution. Suggested error level: Warning",+ "title": "Validate the executability of DML statements"+ },+ "STATEMENT_INSERT_DISALLOW_ORDER_BY_RAND": {+ "description": "Randomly sorting the data to be inserted is meaningless and will only consume unnecessary resources. Suggested error level: Error",+ "title": "Prohibit using \"ORDER BY rand()\" in \"INSERT\" statement"+ },+ "STATEMENT_INSERT_MUST_SPECIFY_COLUMN": {+ "description": "The \"INSERT INTO table VALUES (...)\" statement does not explicit list column names. Once the column order changes or columns are added or dropped, the statement may fail or generate unexpected data. Suggested error level: Error",+ "title": "Enforce specifying column names in \"INSERT\" statements"+ },+ "STATEMENT_INSERT_ROW_LIMIT": {+ "component": {+ "number": {+ "title": "Maximum insert amount"+ }+ },+ "description": "Reveal the number of rows to be inserted can help determine whether the statement meets business expectations. Suggested error level: Warning",+ "title": "Restrict the maximum number of inserted rows"+ },+ "STATEMENT_JOIN_STRICT_COLUMN_ATTRS": {+ "description": "If the data types, character sets of the join columns are not identical, the database may not be able to correctly identify matching rows, leading to inaccurate or incomplete results.",+ "title": "Fields to be joined must have identical data types, character sets"+ },+ "STATEMENT_MAXIMUM_JOIN_TABLE_COUNT": {+ "component": {+ "number": {+ "title": "Maximum value"+ }+ },+ "description": "The more tables you join, the more complex the query becomes and the longer it takes to execute. In general, it is best to keep the number of joins to a minimum.",+ "title": "Restrict the number of tables to be joined"+ },+ "STATEMENT_MAXIMUM_LIMIT_VALUE": {+ "component": {+ "number": {+ "title": "Maximum value"+ }+ },+ "description": "Limiting the number of rows through LIMIT ensures the database processes manageable chunks, improving query execution speed. A capped LIMIT value prevents excessive memory usage, safeguarding overall system stability and preventing performance degradation.",+ "title": "Restrict the maximum number of the LIMIT clause"+ },+ "STATEMENT_MAXIMUM_STATEMENTS_IN_TRANSACTION": {+ "component": {+ "number": {+ "title": "Maximum value"+ }+ },+ "description": "Large transactions can significantly impact database performance. If a large number of statements are involved and one fails, rolling back the entire transaction becomes complex. Limiting statements minimizes the potential damage caused by a single failure and simplifies rollback procedures.",+ "title": "Restrict the number of statements in a transaction"+ },+ "STATEMENT_MAX_EXECUTION_TIME": {+ "description": "Set the maximum execution time for SQL statements. If the execution time exceeds the limit, the statement will be terminated. Suggested error level: Warning",+ "mariadb": {+ "description": "Set the MAX_STATEMENT_TIME parameter in the change script to explicitly control the maximum execution time of the statement. Suggested error level: Warning",+ "title": "Enforce set the MAX_STATEMENT_TIME parameter explicitly"+ },+ "mysql": {+ "description": "Set the MAX_EXECUTION_TIME parameter in the change script to explicitly control the maximum execution time of the statement. Suggested error level: Warning",+ "title": "Enforce set the MAX_EXECUTION_TIME parameter explicitly"+ },+ "title": "Enforce set the max execution time parameter"+ },+ "STATEMENT_MERGE_ALTER_TABLE": {+ "description": "Every change to a table may cause a table-level lock and consume a large amount of resources. If there are multiple changes to the same table, they should be merged into a single change statement. Suggested error level: Error",+ "title": "Prohibit issuing multiple independent changes on the same table"+ },+ "STATEMENT_NON_TRANSACTIONAL": {+ "description": "",+ "title": "Detect and report non-transactional statements"+ },+ "STATEMENT_OBJECT_OWNER_CHECK": {+ "description": "This rule checks whether the object owner for DDL is the same as the current user.",+ "title": "Object owner check"+ },+ "STATEMENT_QUERY_MINIMUM_PLAN_LEVEL": {+ "component": {+ "level": {+ "title": "Maximum level"+ }+ },+ "description": "SQL performance optimization strives for constant (const) access, aiming for reference (ref) level as a baseline, with acceptable performance at range level.",+ "title": "Restrict the maximum level of query access method"+ },+ "STATEMENT_REQUIRE_ALGORITHM_OPTION": {+ "description": "Specifying the ALGORITHM option in ALTER TABLE statements ensures more control over how table changes are applied, minimizing potential disruptions by avoiding full table copies or locks. It helps optimize performance and reduce downtime during schema modifications. Suggested error level: Warning.",+ "title": "Require specifying the ALGORITHM option in ALTER TABLE statements"+ },+ "STATEMENT_REQUIRE_LOCK_OPTION": {+ "description": "The LOCK option in ALTER TABLE statements allows you to control the level of locking during schema changes, helping to prevent unnecessary table locks and ensuring better concurrency. Proper use of this option can significantly reduce the impact of DDL operations on active queries. Suggested error level: Warning.",+ "title": "Require specifying the LOCK option in ALTER TABLE statements"+ },+ "STATEMENT_SELECT_FULL_TABLE_SCAN": {+ "description": "Full table scan is a resource-intensive operation and may cause serious performance impact. Suggested error level: Error",+ "title": "Check full table scan for queries"+ },+ "STATEMENT_SELECT_NO_SELECT_ALL": {+ "description": "SELECT * to fetch entire row data may cause unnecessary resource overhead and may also cause unexpected results in applications once the table adds or removes columns. Suggested error level: Error",+ "title": "Prohibit using \"SELECT *\""+ },+ "STATEMENT_WHERE_DISALLOW_FUNCTIONS_AND_CALCULATIONS": {+ "description": "If you apply a function or perform a calculation on the indexed field, the database cannot use the index and has to scan the entire table instead.",+ "title": "Do not apply functions or perform calculations on indexed fields in the WHERE clause"+ },+ "STATEMENT_WHERE_MAXIMUM_LOGICAL_OPERATOR_COUNT": {+ "component": {+ "number": {+ "title": "Maximum count"+ }+ },+ "description": "This prevents performance degradation due to extensive comparisons and resource limitations.",+ "title": "Restrict the number of values in the IN or OR clause of the WHERE clause"+ },+ "STATEMENT_WHERE_NO_EQUAL_NULL": {+ "description": "The result of NULL equality comparison is always NULL, which may cause unexpected results. Suggested error level: Warning",+ "title": "Prohibit using NULL equality comparison in WHERE clause"+ },+ "STATEMENT_WHERE_NO_LEADING_WILDCARD_LIKE": {+ "description": "When using leading wildcard, such as \"LIKE '%ABC'\", the database optimizer cannot use fast index scan, and fallback to full table scan or full index scan, which may cause serious performance impact. Suggested error level: Error",+ "title": "Prohibit using leading wildcard in filter conditions"+ },+ "STATEMENT_WHERE_REQUIRE_SELECT": {+ "description": "Queries without WHERE clause may cause huge unnecessary resource overhead. Suggested error level: Error",+ "title": "Enforce the presence of \"WHERE\" condition in SELECT statements"+ },+ "STATEMENT_WHERE_REQUIRE_UPDATE_DELETE": {+ "description": "DMLs without WHERE clause may cause massive accidental data loss. Suggested error level: Error",+ "title": "Enforce the presence of \"WHERE\" condition in UPDATE/DELETE statements"+ },+ "SYSTEM_CHARSET_ALLOWLIST": {+ "component": {+ "list": {+ "title": "Allow list"+ }+ },+ "description": "The character set determines which characters can be stored in the table. Using the wrong character set may result in certain characters in the application being unable to be stored and displayed correctly, such as CJK and Emoji. Suggested error level: Error",+ "title": "Allowable list of Charset"+ },+ "SYSTEM_COLLATION_ALLOWLIST": {+ "component": {+ "list": {+ "title": "Allow list"+ }+ },+ "description": "The collation determines the rules for character comparison and sorting. For example, when using a case-insensitive collation, \"ABC\" and \"abc\" will be treated as the same string in queries. Suggested error level: Error",+ "title": "Allowable list of Collation"+ },+ "SYSTEM_COMMENT_LENGTH": {+ "component": {+ "number": {+ "title": "Maximum comment length"+ }+ },+ "description": "",+ "title": "Restrict the length of comments"+ },+ "SYSTEM_EVENT_DISALLOW_CREATE": {+ "description": "This rule prohibits the creation of events within the database. System events often perform automated tasks that could affect the database environment. By disallowing their creation, it helps maintain control over database operations and prevents potential disruptions. Suggested error level: Warning",+ "title": "Disallow to create events"+ },+ "SYSTEM_FUNCTION_DISALLOWED_LIST": {+ "component": {+ "list": {+ "title": "Disallow list"+ }+ },+ "description": "This rule restricts the usage of specific functions within the database. By disallowing the use of these functions, it helps maintain data consistency and security. Suggested error level: Warning",+ "title": "Prohibit the use of certain functions"+ },+ "SYSTEM_FUNCTION_DISALLOW_CREATE": {+ "description": "This rule prohibits the creation of functions within the database. Functions provide reusable logic that can simplify queries and enhance data integrity. By disallowing their creation, it helps maintain control over database schema and prevents potential security risks. Suggested error level: Warning",+ "title": "Disallow to create functions"+ },+ "SYSTEM_PROCEDURE_DISALLOW_CREATE": {+ "description": "This rule prohibits the execution of procedures within the database. System procedures often perform critical operations that could impact the stability and security of the database environment. By disallowing their execution, it helps prevent unintended changes and potential vulnerabilities. Suggested error level: Warning",+ "title": "Disallow to create procedures"+ },+ "SYSTEM_VIEW_DISALLOW_CREATE": {+ "description": "This rule prohibits the creation of views within the database. Views provide a virtual representation of data that can simplify queries and enhance data security. By disallowing their creation, it helps maintain control over database schema and prevents potential security risks. Suggested error level: Warning",+ "title": "Disallow to create views"+ },+ "TABLE_COMMENT": {+ "component": {+ "maxLength": {+ "title": "Max length"+ },+ "required": {+ "title": "Require comment"+ }+ },+ "description": "Configure whether the table requires comments and the maximum comment length.",+ "title": "Table comment convention"+ },+ "TABLE_DISALLOW_DDL": {+ "component": {+ "list": {+ "title": "Table names"+ }+ },+ "description": "Configure which tables are prohibited from executing DDL. Suggested error level: Warning",+ "title": "Disallow DDL"+ },+ "TABLE_DISALLOW_DML": {+ "component": {+ "list": {+ "title": "Table names"+ }+ },+ "description": "Configure which tables are prohibited from executing DML. Suggested error level: Warning",+ "title": "Disallow DML"+ },+ "TABLE_DISALLOW_PARTITION": {+ "description": "In some database engines, partitioned tables are not mature, and the use and maintenance are inconvenient. Therefore, it is more inclined to use manual data partitioning methods such as database and table sharding. Suggested error level: Warning",+ "title": "Prohibit using partition table"+ },+ "TABLE_DISALLOW_SET_CHARSET": {+ "description": "It is recommended to set the charset at the database level. Setting the charset at finer granularity can bring unnecessary complexities. Suggested error level: Error.",+ "title": "Prohibit defining character set in table properties"+ },+ "TABLE_DISALLOW_TRIGGER": {+ "description": "This rule restricts the usage of triggers on tables. Triggers can introduce complexity and potential performance issues to database operations. By disallowing triggers, the system can maintain a simpler and more predictable behavior. Suggested error level: Warning",+ "title": "Prevent the use of triggers on tables"+ },+ "TABLE_DROP_NAMING_CONVENTION": {+ "component": {+ "format": {+ "title": "Table name format (regex)"+ }+ },+ "description": "For example, by requiring the \"_del\" suffix, it can effectively prevent accidental deletions. Suggested error level: Error",+ "title": "Restrict the naming format of tables to be deleted"+ },+ "TABLE_LIMIT_SIZE": {+ "component": {+ "number": {+ "title": "Max row count"+ }+ },+ "description": "Configure the maximum number of rows in tables for which DDL can be executed. Recommended error level: warning",+ "title": "Limit DDL operations on tables with a large number of rows"+ },+ "TABLE_NO_DUPLICATE_INDEX": {+ "description": "This rule requires that a table does not have duplicate indexes. Duplicate indexes consume extra storage space and can potentially reduce query performance. Suggested error level: Warning.",+ "title": "Prohibit duplicate indexes on table"+ },+ "TABLE_NO_FOREIGN_KEY": {+ "description": "The advantages and disadvantages of foreign key are highly controversial. Using foreign key may significantly increase the difficulty of database changes, scalability (such as sharding), etc. And may even prevent the use of some tools. Therefore, another option is to implement foreign key constraints at the application layer. Suggested error level: Warning",+ "title": "Prohibit using foreign key constraints"+ },+ "TABLE_REQUIRE_CHARSET": {+ "description": "The charset of the table must be specified. Suggested error level: Warning",+ "title": "Require charset"+ },+ "TABLE_REQUIRE_COLLATION": {+ "description": "The collation of the table must be specified. Suggested error level: Warning",+ "title": "Require collation"+ },+ "TABLE_REQUIRE_PK": {+ "description": "Various data synchronization, comparison, and rollback tools require tables to have primary key. Suggested error level: Error",+ "title": "Enforce inclusion of primary key in a table"+ },+ "TABLE_TEXT_FIELDS_TOTAL_LENGTH": {+ "component": {+ "number": {+ "title": "Maximum length"+ }+ },+ "description": "This rule limits the amount of data a table can hold, preventing excessive storage usage.",+ "title": "Restrict the total length of text fields in a table"+ },"self": "SQL Review Rule"},+ "select-all": "Select all",+ "select-review-rules": "Select SQL review rules",+ "template": {+ "bb-sql-review-dev": "Basic Template",+ "bb-sql-review-dev-desc": "Basic coverage to defend your databases from common misusage.",+ "bb-sql-review-empty": "Start from scratch",+ "bb-sql-review-empty-desc": "An empty template. You need to add needed rules by yourself.",+ "bb-sql-review-prod": "Advanced Template",+ "bb-sql-review-prod-desc": "Comprehensive policy where you have total protection and best practices for your databases.",+ "bb-sql-review-sample": "Sample Template",+ "bb-sql-review-sample-desc": "A minimum template with DROP protection and disallow column nullable."+ },"title": "SQL Review"},"subscription": {diff --git a/frontend/src/react/locales/es-ES.json b/frontend/src/react/locales/es-ES.jsonindex 2a585c2230..ac951d5f0f 100644--- a/frontend/src/react/locales/es-ES.json+++ b/frontend/src/react/locales/es-ES.json@@ -304,10 +304,13 @@},"common.add": "Agregar","common.admin": "Admin",+ "common.all": "Todos","common.archive": "Archivo","common.archived": "Archivada","common.cancel": "Cancelar","common.cannot-undo-this-action": "No se puede deshacer esta acción",+ "common.close": "Cerrar",+ "common.confirm": "Confirmar","common.continue-anyway": "De todas maneras, continúe","common.create": "Crear","common.creating": "Creando...",@@ -329,6 +332,7 @@"common.minutes": "Minutos","common.no-data": "Sin datos","common.optional": "Opcional",+ "common.or": "o","common.overview": "Resumen","common.password": "Contraseña","common.project": "Proyecto",@@ -1839,43 +1843,758 @@"view-issue": "View Issue"},"sql-review": {- "add-or-remove-rules": "Add or remove rules",- "add-rules": "Add rules",+ "add-or-remove-rules": "Agregar o eliminar reglas",+ "add-rules": "Agregar reglas","attach-resource": {- "change-resources": "Change attached resources",- "label": "You can apply the SQL review policy to environments or projects. The database will use the project-level policy if it exists, or fallback to the environment-level policy.",- "no-linked-resources": "No attached resources",- "self": "Attach to resources"- },- "configure-policy": "Configure policy",+ "change-resources": "Cambiar recursos adjuntos",+ "label": "Puede aplicar la política de revisión a entornos o proyectos. Un recurso sólo puede vincular una política. La base de datos utilizará la política de revisión de SQL adjunta al proyecto; de lo contrario, recurrirá a la política de entorno.",+ "label-environment": "La política de revisión de SQL afectará a todas las bases de datos que pertenecen al entorno seleccionado.",+ "label-project": "La política de revisión de SQL afectará a todas las bases de datos que pertenecen al proyecto seleccionado. Se ignorará la política de revisión de SQL para el entorno.",+ "no-linked-resources": "Sin recursos adjuntos",+ "override-warning": "Siguiendo los recursos ya vinculados con otras políticas de revisión de SQL. Haga clic en \"{{button}}\" para anular la configuración.",+ "self": "Adjuntar a recursos"+ },+ "category": {+ "advice": "Consejo",+ "builtin": "Integrado",+ "column": "Columna",+ "database": "Base de datos",+ "engine": "Motor",+ "index": "Índice",+ "naming": "Nomenclatura",+ "schema": "Esquema",+ "statement": "Declaración",+ "system": "Sistema",+ "table": "Tabla"+ },+ "configure-policy": "Configurar política","create": {"basic-info": {- "display-name": "Display name",- "display-name-default": "SQL review policy",- "display-name-label": "A display name to help identifying among different review policies.",- "name": "Basic info"+ "choose-template": "Elegir plantilla",+ "display-name": "Nombre para mostrar",+ "display-name-default": "Política de revisión SQL",+ "display-name-label": "Un nombre para mostrar que ayuda a identificar entre diferentes políticas de revisión.",+ "name": "Información básica"},"configure-rule": {- "change-template": "Change the template",- "confirm-override-description": "Your rules will be overridden",- "name": "Configure rule"+ "change-template": "Cambiar plantilla",+ "confirm-override-description": "Sus reglas serán anuladas",+ "name": "Configurar regla"}},- "delete": "Delete SQL review policy",- "description": "SQL review policy can define different set of SQL lint rules for the respective environments. It helps teams to adopt SQL best practice and enforce schema consistency across different databases. Whenever you attempt a DDL/DML change or use SQL Editor to query data, the query will be checked against the configured SQL review policy.",- "disabled": "SQL review is disabled",- "enabled-rules": "Enabled rules",- "no-permission": "Only DBA or Admin has permission to create or update review policy.",- "policy-create-failed": "Failed to create the review policy.",- "policy-created": "Successfully created the review policy.",- "policy-removed": "Successfully removed the review policy.",- "policy-update-failed": "Failed to update the review policy.",- "policy-updated": "Successfully updated the review policy.",+ "delete": "Eliminar política de revisión SQL",+ "description": "La política de revisión de SQL puede definir diferentes conjuntos de reglas de lint SQL para los entornos respectivos. Ayuda a los equipos a adoptar las mejores prácticas de SQL y a hacer cumplir la consistencia del esquema en diferentes bases de datos. Cada vez que intente realizar un cambio DDL/DML o use el Editor SQL para consultar datos, la consulta se verificará en función de la política de revisión de SQL configurada.",+ "disabled": "La revisión de SQL está deshabilitada",+ "enabled-rules": "Reglas habilitadas",+ "engine": {+ "mariadb": "MariaDB",+ "mssql": "SQL Server",+ "mysql": "MySQL",+ "oceanbase": "OceanBase",+ "oracle": "Oracle",+ "postgres": "PostgreSQL",+ "snowflake": "Snowflake",+ "tidb": "TiDB"+ },+ "input-then-press-enter": "Ingrese el valor y luego presione enter para agregar",+ "level": {+ "disabled": "Deshabilitado",+ "error": "Error",+ "name": "Nivel",+ "warning": "Advertencia"+ },+ "no-permission": "Solo el DBA o el administrador tiene permiso para crear o actualizar la política de revisión.",+ "policy-create-failed": "No se pudo crear la política de revisión.",+ "policy-created": "La política de revisión se creó correctamente.",+ "policy-removed": "La política de revisión se eliminó correctamente.",+ "policy-update-failed": "No se pudo actualizar la política de revisión.",+ "policy-updated": "La política de revisión se actualizó correctamente.","review-policy": "Review policy","rule": {+ "ADVICE_ONLINE_MIGRATION": {+ "component": {+ "number": {+ "title": "Valor de umbral"+ }+ },+ "description": "Se recomienda habilitar la migración en línea si el recuento de filas de la tabla migrada supera su configuración. Nivel de error sugerido: Advertencia",+ "title": "Migración en línea"+ },+ "BUILTIN_PRIOR_BACKUP_CHECK": {+ "description": "Esta regla verifica si se puede crear una copia de seguridad antes de que se modifiquen los datos. Verifica la existencia de la base de datos de destino de la copia de seguridad y rechaza los escenarios no admitidos. Está incorporada y no se puede omitir.",+ "title": "Comprobación previa de viabilidad de la copia de seguridad"+ },+ "BUILTIN_WALK_THROUGH_CHECK": {+ "description": "Valida las sentencias SQL contra el esquema de base de datos actual simulando su ejecución. Detecta problemas como hacer referencia a tablas, columnas o índices inexistentes.",+ "title": "Validación de recorrido del esquema"+ },+ "COLUMN_AUTO_INCREMENT_INITIAL_VALUE": {+ "component": {+ "number": {+ "title": "Valor inicial"+ }+ },+ "description": "Basándose en los requisitos de gestión, se debe limitar el valor inicial de la columna de autoincremento. Nivel de error sugerido: Advertencia",+ "title": "Restringir el valor inicial de las columnas de autoincremento"+ },+ "COLUMN_AUTO_INCREMENT_MUST_INTEGER": {+ "description": "Las columnas de autoincremento de MySQL se utilizan generalmente como claves primarias independientes del negocio. El uso de tipos enteros ocupa menos espacio de almacenamiento y hace que la estructura de índice de clave primaria sea más compacta, lo que mejora el rendimiento de consultas y DML. Nivel de error sugerido: Error",+ "title": "Forzar el uso del tipo de datos \"INTEGER\" para columnas de autoincremento"+ },+ "COLUMN_AUTO_INCREMENT_MUST_UNSIGNED": {+ "description": "Los tipos no signados no almacenan números negativos, y el rango de valores que pueden almacenar se duplica, lo que puede evitar que las columnas de autoincremento desborden. Nivel de error sugerido: Advertencia",+ "title": "Hacer obligatorio el uso del tipo de dato \"UNSIGNED\" para columnas de autoincremento"+ },+ "COLUMN_COMMENT": {+ "component": {+ "maxLength": {+ "title": "Longitud máxima"+ },+ "required": {+ "title": "Comentario obligatorio"+ }+ },+ "description": "Agregar comentarios a las columnas es una buena práctica de desarrollo, pero comentarios demasiado largos pueden disminuir la legibilidad del esquema. Nivel de error sugerido: Advertencia",+ "title": "Convención de comentarios de columnas"+ },+ "COLUMN_CURRENT_TIME_COUNT_LIMIT": {+ "description": "Solo las columnas que registran la hora de creación del registro con \"DEFAULT NOW()\" y que registran la hora de actualización del registro con \"DEFAULT NOW() ON UPDATE\" necesitan llamar a la función para obtener la hora del sistema. Es inútil y aumentará la sobrecarga de recursos registrar la hora del sistema en otras columnas. Nivel de error sugerido: Error",+ "title": "Restringir el número de columnas en la tabla que adquieren la hora del sistema"+ },+ "COLUMN_DEFAULT_DISALLOW_VOLATILE": {+ "description": "Las funciones volátiles (por ejemplo, clock_timestamp()) actualizan cada fila con el valor en el momento de la ejecución de ALTER TABLE ADD COLUMN, lo que puede causar actualizaciones prolongadas.",+ "title": "No permitir establecer valores predeterminados volátiles en las columnas"+ },+ "COLUMN_DISALLOW_CHANGE": {+ "description": "\"CHANGE COLUMN\" es único en la sintaxis de MySQL y se puede usar para modificar los nombres de las columnas y otras propiedades al mismo tiempo. Sin embargo, puede causar que el nombre de la columna se cambie por error al modificar las propiedades. Se recomienda seguir utilizando las instrucciones estándar \"RENAME\" y \"MODIFY\" para distinguir entre los dos tipos de cambios. Nivel de error sugerido: Error",+ "title": "Prohibir el uso de la instrucción \"CHANGE COLUMN\""+ },+ "COLUMN_DISALLOW_CHANGE_TYPE": {+ "description": "Modificar los tipos de columnas puede afectar el rendimiento del sistema, la mantenibilidad e incluso llevar a la pérdida de datos. Nivel de error sugerido: Advertencia",+ "title": "Prohibir la modificación de los tipos de columnas"+ },+ "COLUMN_DISALLOW_CHANGING_ORDER": {+ "description": "Modificar el orden de las columnas puede hacer que algunas aplicaciones o vistas que dependen del orden predeterminado de la tabla original produzcan resultados inesperados, como \"select *\". Nivel de error sugerido: Advertencia",+ "title": "Prohibir el cambio del orden de las columnas en una tabla"+ },+ "COLUMN_DISALLOW_DROP": {+ "description": "Se prohíbe eliminar columnas. Nivel de error sugerido: advertencia.",+ "title": "Prohibir eliminar columnas"+ },+ "COLUMN_DISALLOW_DROP_IN_INDEX": {+ "description": "Prohibir eliminar columnas en el índice. Nivel de error sugerido: Advertencia",+ "title": "Prohibir eliminar columnas en el índice"+ },+ "COLUMN_DISALLOW_SET_CHARSET": {+ "description": "Se recomienda establecer el conjunto de caracteres a nivel de base de datos o de tabla. Establecer el conjunto de caracteres a una granularidad más fina puede traer complejidades innecesarias. Nivel de error sugerido: Error.",+ "title": "Prohibir la definición del conjunto de caracteres en las propiedades de las columnas"+ },+ "COLUMN_MAXIMUM_CHARACTER_LENGTH": {+ "component": {+ "number": {+ "title": "Longitud máxima"+ }+ },+ "description": "\"CHAR\" es un tipo de longitud fija. Por ejemplo, la columna CHAR(20) ocupará 20 espacios de caracteres aunque solo se almacene un carácter, lo que causa desperdicio. Cuando la cadena sea demasiado larga y la longitud no sea fija, se debe considerar el uso de VARCHAR para MySQL y el uso de TEXT para PostgreSQL. Nivel de error sugerido: Error",+ "title": "Restringir la longitud del tipo de dato \"CHAR\""+ },+ "COLUMN_MAXIMUM_VARCHAR_LENGTH": {+ "component": {+ "number": {+ "title": "Longitud máxima"+ }+ },+ "description": "",+ "title": "Restringir la longitud del tipo de dato \"VARCHAR\""+ },+ "COLUMN_NO_NULL": {+ "description": "Las columnas no pueden tener un valor NULL.",+ "title": "Forzar restricciones \"NOT NULL\" en las columnas"+ },+ "COLUMN_REQUIRED": {+ "component": {+ "list": {+ "title": "Lista de prohibiciones"+ }+ },+ "description": "Algunas columnas comunes son útiles para el mantenimiento de la aplicación. Por ejemplo, agregar una columna de \"ID\" independiente del negocio como clave primaria evita conflictos de clave primaria causados por cambios en el negocio (como fusiones de negocios) y en algunos escenarios también puede mejorar el rendimiento de inserción de datos. Nivel de error sugerido: Advertencia",+ "title": "Imponer la inclusión de columnas específicas en una tabla"+ },+ "COLUMN_REQUIRE_CHARSET": {+ "description": "Se debe especificar el conjunto de caracteres de las columnas con tipos de datos de texto. Nivel de error sugerido: Advertencia",+ "title": "Requerir juego de caracteres para columnas de texto"+ },+ "COLUMN_REQUIRE_COLLATION": {+ "description": "Se debe especificar la intercalación de columnas con tipos de datos de texto. Nivel de error sugerido: Advertencia",+ "title": "Requerir intercalación para columnas de texto"+ },+ "COLUMN_REQUIRE_DEFAULT": {+ "description": "Establecer valores por defecto que satisfagan la lógica de negocio puede mejorar efectivamente la calidad de los datos del pipeline analítico aguas abajo. Esta regla no verifica los tipos \"PRIMARY KEY\", \"JSON\", \"BLOB\", \"TEXT\", \"GEOMETRY\", \"AUTO_INCREMENT\", \"GENERATED\". Nivel de error sugerido: Advertencia",+ "title": "Hacer obligatorio establecer un valor por defecto en las columnas"+ },+ "COLUMN_SET_DEFAULT_FOR_NOT_NULL": {+ "description": "Para una columna 'NOT NULL', si no se asigna un valor a la columna al insertar una nueva fila y la columna no tiene un valor predeterminado, la base de datos rechazará la inserción de esa fila. Establecer un valor predeterminado para una nueva columna también puede garantizar la compatibilidad con la aplicación heredada. Nivel de error sugerido: Error",+ "title": "Forzar un valor predeterminado en columnas \"NOT NULL\""+ },+ "COLUMN_TYPE_DISALLOW_LIST": {+ "component": {+ "list": {+ "title": "Prohibir lista"+ }+ },+ "description": "Abusar de los tipos de columna puede tener graves efectos negativos en el mantenimiento y rendimiento del sistema. Por ejemplo, el uso de una columna \"LOB\" para almacenar grandes cantidades de datos de audio y video puede disminuir el rendimiento de la base de datos, aumentar los tiempos de copia de seguridad y recuperación, y hacer que las herramientas de sincronización de datos sean incompatibles. Nivel de error sugerido: Error",+ "title": "Prohibir el uso de ciertos tipos de datos de columna"+ },+ "DATABASE_DROP_EMPTY_DATABASE": {+ "description": "Solo se permite la eliminación cuando no hay tablas en la base de datos, lo que puede evitar la eliminación accidental. Nivel de error sugerido: Error",+ "title": "Prohibir eliminar base de datos no vacía"+ },+ "ENGINE_MYSQL_USE_INNODB": {+ "description": "InnoDB es el motor de almacenamiento predeterminado para MySQL que proporciona soporte para transacciones. También proporciona un mejor rendimiento para escenarios de alta concurrencia y baja latencia, y admite copias de seguridad y recuperación de datos en línea. Es la opción preferida para las empresas OLTP. Nivel de sugerencia de error: Error",+ "title": "Imponer el motor de almacenamiento InnoDB"+ },+ "INDEX_CREATE_CONCURRENTLY": {+ "description": "En PostgreSQL 11 y versiones posteriores, usar la declaración estándar para crear un índice causará un bloqueo de tabla y no permitirá escribir. Usar el modo \"CONCURRENTLY\" puede evitar este problema. Nivel de error sugerido: Advertencia",+ "title": "Aplicar creación de índices concurrentes"+ },+ "INDEX_KEY_NUMBER_LIMIT": {+ "component": {+ "number": {+ "title": "Número máximo de columnas"+ }+ },+ "description": "Un índice compuesto con más de 5 columnas no mejora significativamente el rendimiento de la consulta, pero ocupa mucho espacio y reduce el rendimiento de DML. Nivel de error sugerido: Advertencia",+ "title": "Restringir el número de columnas en un solo índice"+ },+ "INDEX_NOT_REDUNDANT": {+ "description": "El índice redundante puede resultar en pérdida de rendimiento y ocupar espacio adicional. Por ejemplo, el índice en las columnas (c1, c2) se tratará como índices redundantes si ya hay un índice en la columna (c1). Nivel de error sugerido: Advertencia",+ "title": "Prohibir índices redundantes"+ },+ "INDEX_NO_DUPLICATE_COLUMN": {+ "description": "La creación de un índice con columnas duplicadas dará como resultado un fallo. Nivel de error sugerido: Error",+ "title": "Prohibir índices que contengan columnas duplicadas"+ },+ "INDEX_PK_TYPE_LIMIT": {+ "description": "Forzar que el tipo de clave primaria sea INT o BIGINT.",+ "title": "Límite de tipo de clave primaria"+ },+ "INDEX_PRIMARY_KEY_TYPE_ALLOWLIST": {+ "component": {+ "list": {+ "title": "Permitir lista"+ }+ },+ "description": "El tipo de clave primaria adecuado puede optimizar la estructura de almacenamiento, reducir el uso de espacio y ser beneficioso para el rendimiento de inserción y consulta. Nivel de error sugerido: Advertencia",+ "title": "Lista permitida de tipos de clave primaria"+ },+ "INDEX_TOTAL_NUMBER_LIMIT": {+ "component": {+ "number": {+ "title": "Número máximo de índices"+ }+ },+ "description": "Aunque los índices pueden mejorar el rendimiento de la consulta, también ocupan mucho espacio y reducen el rendimiento de DML. Por lo tanto, no se recomienda crear más de 5 índices en una tabla. Nivel de error sugerido: Advertencia",+ "title": "Restringir el número de índices en una sola tabla"+ },+ "INDEX_TYPE_ALLOW_LIST": {+ "component": {+ "list": {+ "title": "Lista permitida"+ }+ },+ "description": "Los diferentes tipos de índice tienen diferentes características de rendimiento. Por ejemplo, los índices B-tree son adecuados para consultas de rango, mientras que los índices hash son adecuados para consultas de igualdad. Nivel de error de sugerencia: Advertencia",+ "title": "Lista de tipos de índice permitidos"+ },+ "INDEX_TYPE_NO_BLOB": {+ "description": "El tipo \"BLOB\" se utiliza generalmente para almacenar datos binarios y no debe utilizarse como condición de consulta. Si se crea un índice en este tipo de columna por error, consumirá muchos recursos y causará un grave impacto en el rendimiento. Nivel de error sugerido: Error",+ "title": "Prohibir la creación de índices en columnas de tipo de datos \"BLOB\" y \"TEXT\""+ },+ "NAMING_COLUMN": {+ "component": {+ "format": {+ "title": "Formato de nombre de columna (regex)"+ },+ "maxLength": {+ "title": "Límite de longitud"+ }+ },+ "description": "El formato predeterminado es todo en minúsculas, separado por guiones bajos entre palabras, y no más de 63 caracteres de largo, como \"abc\" y \"abc_def\". Nivel de sugerencia de error: Advertencia",+ "title": "Imponer formato de nomenclatura de columna"+ },+ "NAMING_COLUMN_AUTO_INCREMENT": {+ "component": {+ "format": {+ "title": "Formato del nombre de columna de autoincremento (regex)"+ },+ "maxLength": {+ "title": "Límite de longitud"+ }+ },+ "description": "El nombre predeterminado de la columna es \"ID\" y no tiene más de 63 caracteres de longitud.",+ "title": " Imponer el formato de nombres de columna de autoincremento"+ },+ "NAMING_FULLY_QUALIFIED": {+ "description": "Forzar el uso de nombres de objetos completamente calificados. Por ejemplo, “schema.table”, nivel de error sugerido: Advertencia",+ "title": "Nombre de objeto completo"+ },+ "NAMING_IDENTIFIER_CASE": {+ "component": {+ "upper": {+ "title": "Capital"+ }+ },+ "description": "",+ "title": "Hacer cumplir el caso del identificador"+ },+ "NAMING_IDENTIFIER_NO_KEYWORD": {+ "description": "",+ "title": "Prohibir el uso de palabras clave como identificadores"+ },+ "NAMING_INDEX_FK": {+ "component": {+ "format": {+ "template": {+ "referenced_column": "El nombre de la columna referenciada",+ "referenced_table": "El nombre de la tabla referenciada",+ "referencing_column": "El nombre de la columna que referencia",+ "referencing_table": "El nombre de la tabla que referencia"+ },+ "title": "Formato del nombre de clave foránea"+ },+ "maxLength": {+ "title": "Límite de longitud"+ }+ },+ "description": "El nombre puede estar vacío y ser nombrado por la base de datos. Si no está vacío, el formato predeterminado es \"fk<nombre de la tabla><combinación de nombres de columna de clave única>\", que no tiene más de 63 caracteres de longitud, como \"fk_my_table_id_name\". Nivel de error sugerido: Advertencia",+ "title": "Imponer el formato de nombres de clave foránea"+ },+ "NAMING_INDEX_IDX": {+ "component": {+ "format": {+ "template": {+ "column_list": "Nombres de las columnas de índice, unidos por _",+ "table": "El nombre de la tabla"+ },+ "title": "Formato del nombre del índice"+ },+ "maxLength": {+ "title": "Límite de longitud"+ }+ },+ "description": "El nombre puede estar vacío y ser nombrado por la base de datos. Si no está vacío, el formato predeterminado es \"idx<nombre de la tabla>_<combinación de nombres de columna de clave única>\", que no tiene más de 63 caracteres de longitud, como \"idx_my_table_id_name\". Nivel de error sugerido: Advertencia",+ "title": "Imponer el formato de nombres de índice"+ },+ "NAMING_INDEX_PK": {+ "component": {+ "format": {+ "template": {+ "column_list": "Nombres de las columnas de índice, unidos por _",+ "table": "El nombre de la tabla"+ },+ "title": "Formato del nombre de clave primaria"+ },+ "maxLength": {+ "title": "Límite de longitud"+ }+ },+ "description": "El nombre puede estar vacío y nombrado por la base de datos. Si no está vacío, el formato predeterminado es \"pk<nombre de tabla><combinación de nombre de columna de clave única>\", que no debe superar los 63 caracteres, como \"pk_my_table_id_name\". Nivel de sugerencia de error: Advertencia",+ "title": "Imponer formato de nomenclatura de clave primaria"+ },+ "NAMING_INDEX_UK": {+ "component": {+ "format": {+ "template": {+ "column_list": "Nombres de columna del índice, unidos por _",+ "table": "El nombre de la tabla"+ },+ "title": "Formato de nombre de clave única"+ },+ "maxLength": {+ "title": "Límite de longitud"+ }+ },+ "description": "El nombre puede estar vacío y nombrado por la base de datos. Si no está vacío, el formato predeterminado es \"uk_<nombre de tabla><combinación de nombre de columna de clave única>\", que no debe superar los 63 caracteres, como \"uk_my_table_id_name\". Nivel de sugerencia de error: Advertencia",+ "title": "Imponer formato de nomenclatura de clave única"+ },+ "NAMING_TABLE": {+ "component": {+ "format": {+ "title": "Formato de nombre de tabla (regex)"+ },+ "maxLength": {+ "title": "Límite de longitud"+ }+ },+ "description": "El formato predeterminado es todo en minúsculas, separado por guiones bajos entre palabras, y no más de 63 caracteres de largo, como \"abc\" y \"abc_def\". Nivel de sugerencia de error: Advertencia",+ "title": "Imponer formato de nomenclatura de tabla"+ },+ "NAMING_TABLE_NO_KEYWORD": {+ "description": "",+ "title": "Prohibir el uso de palabras clave como nombres de tablas"+ },+ "SCHEMA_BACKWARD_COMPATIBILITY": {+ "description": "Algunos cambios pueden afectar las aplicaciones en ejecución, como modificar el nombre del objeto de la base de datos, agregar nuevas restricciones, etc. Esta regla puede evitar cambios descuidados que lleven al fallo de la aplicación existente. Nivel de error sugerido: Advertencia",+ "title": "Comprobación de la compatibilidad con versiones anteriores de la aplicación"+ },+ "STATEMENT_ADD_CHECK_NOT_VALID": {+ "description": "Agregar una restricción CHECK necesita verificar los datos existentes y requiere el bloqueo de tabla ACCESS EXCLUSIVE. Esto bloquea la lectura y la escritura, lo que puede provocar la interrupción del negocio. Se recomienda agregar la opción \"NOT VALID\" para validar nuevos datos y validar manualmente los datos existentes después de completar el cambio. Nivel de sugerencia de error: Advertencia",+ "title": "Obligar a incluir la opción \"NOT VALID\" al agregar restricciones \"CHECK\""+ },+ "STATEMENT_ADD_COLUMN_WITHOUT_POSITION": {+ "description": "En algunos casos, usar FIRST/AFTER para añadir columnas en una posición especificada puede causar una reorganización de los datos (reescribiendo los datos originales). Nivel de recomendación: advertencia.",+ "title": "Prohibir añadir columnas en una posición especificada"+ },+ "STATEMENT_ADD_FOREIGN_KEY_NOT_VALID": {+ "description": "Agregar claves externas necesita verificar los datos existentes y requiere el bloqueo de tabla SHARE ROW EXCLUSIVE. \nEsto bloquea la escritura, lo que puede provocar la interrupción del negocio. \nSe recomienda agregar la opción \"NO VÁLIDO\" para validar datos nuevos y validar los datos existentes una vez completado el cambio. \nNivel de error de sugerencia: Advertencia",+ "title": "Aplicar la opción \"NO VÁLIDO\" al agregar claves externas"+ },+ "STATEMENT_AFFECTED_ROW_LIMIT": {+ "component": {+ "number": {+ "title": "Cantidad máxima de filas afectadas"+ }+ },+ "description": "Revelar el número de filas a actualizar o eliminar puede ayudar a determinar si la declaración cumple con las expectativas comerciales. Nivel de sugerencia de error: Advertencia",+ "title": "Restringir el número máximo de filas actualizadas o eliminadas (estimada)."+ },+ "STATEMENT_CHECK_SET_ROLE_VARIABLE": {+ "description": "La falla al establecer correctamente la declaración de rol al principio de una sesión puede llevar a accesos no autorizados o asignación de permisos incorrecta, comprometiendo potencialmente la seguridad e integridad de los datos. Nivel de error: Advertencia",+ "title": "Verificar si la Declaración de Establecimiento de Rol está al Principio"+ },+ "STATEMENT_CREATE_SPECIFY_SCHEMA": {+ "description": "Si no se especifica el esquema, el objeto se creará en el esquema predeterminado, lo que puede causar resultados inesperados.",+ "title": "Prohibir la creación de objetos sin especificar el esquema"+ },+ "STATEMENT_DISALLOW_ADD_COLUMN_WITH_DEFAULT": {+ "description": "Antes de PostgreSQL 11, agregar una columna con un valor predeterminado causaba bloqueos en la tabla y no se podía leer ni escribir, lo que podía causar interrupciones comerciales. En PostgreSQL 11 y versiones posteriores, este problema se ha optimizado y no es necesario prestar atención a esta regla. Nivel de sugerencia de error: Advertencia",+ "title": "Restringir agregar columnas con valores predeterminados a una tabla"+ },+ "STATEMENT_DISALLOW_ADD_NOT_NULL": {+ "description": "Agregar una restricción NOT NULL con un valor predeterminado antes de PostgreSQL 11 o agregar una restricción NOT NULL sin un valor predeterminado requiere verificar los datos existentes. Esto bloquea la lectura y la escritura, lo que puede provocar la interrupción del negocio. Nivel de error sugerido: Advertencia",+ "title": "Restricción de agregar restricción \"NOT NULL\" a columnas existentes"+ },+ "STATEMENT_DISALLOW_COMMIT": {+ "description": "En algunos casos, se requiere que varias declaraciones se incluyan en una transacción confirmada por el sistema, para poder volver a ejecutarse rápidamente en caso de fallo parcial. Por lo tanto, no se permite la declaración explícita de \"COMMIT\". Nivel de sugerencia de error: Advertencia",+ "title": "Prohibir la declaración explícita de \"COMMIT\""+ },+ "STATEMENT_DISALLOW_CROSS_DB_QUERIES": {+ "description": "Las consultas entre bases de datos aumentan el acoplamiento del sistema y pueden llevar a problemas de eficiencia. Nivel de error sugerido: Advertencia",+ "title": "Prohibir consultas entre bases de datos"+ },+ "STATEMENT_DISALLOW_LIMIT": {+ "description": "Si se utiliza LIMIT en declaraciones DML sin una cláusula ORDER BY, el orden de las filas afectadas no está fijo, lo que puede causar inconsistencias de datos entre las bases de datos primarias y de réplica en algunos modos de replicación. Nivel de sugerencia de error: Error",+ "title": "Prohibir el uso de la cláusula \"LIMIT\" en declaraciones DML"+ },+ "STATEMENT_DISALLOW_OFFLINE_DDL": {+ "description": "Para evitar que los cambios en la base de datos afecten su negocio, por favor evite usar DDL sin conexión.",+ "title": "Prohibir DDL sin conexión"+ },+ "STATEMENT_DISALLOW_ON_DEL_CASCADE": {+ "description": "La opción 'CASCADE' en 'ON DELETE' puede causar que se eliminen o modifiquen un gran número de objetos dependientes, lo que puede causar resultados inesperados. Nivel de error sugerido: Error",+ "title": "Prohibir el uso de la opción CASCADE en las cláusulas ON DELETE"+ },+ "STATEMENT_DISALLOW_ORDER_BY": {+ "description": "Las operaciones de clasificación son extremadamente intensivas en recursos, por lo que para operaciones de actualización y eliminación, se recomienda utilizar una condición de filtrado determinista tanto como sea posible en lugar de usar ORDER BY y LIMIT. Nivel de sugerencia de error: Error",+ "title": "Prohibir el uso de la cláusula \"ORDER BY\" en las declaraciones \"UPDATE\" y \"DELETE\""+ },+ "STATEMENT_DISALLOW_RM_TBL_CASCADE": {+ "description": "Using the \"CASCADE\" option when removing a table can cause a large number of dependent objects to be deleted or modified, which may cause unexpected results. Suggestion error level: Error",+ "title": "Prohibir el uso de CASCADE al eliminar una tabla"+ },+ "STATEMENT_DISALLOW_USING_FILESORT": {+ "description": "El uso de filesort puede causar un impacto grave en el rendimiento. Nivel de error sugerido: Advertencia",+ "title": "Prohibir el uso de filesort"+ },+ "STATEMENT_DISALLOW_USING_TEMPORARY": {+ "description": "Las tablas temporales pueden causar problemas de rendimiento y de mantenimiento. Nivel de error sugerido: Advertencia",+ "title": "Prohibir el uso de tablas temporales"+ },+ "STATEMENT_DML_DRY_RUN": {+ "description": "Cuando la sintaxis es correcta, pero el nombre de la tabla es incorrecto o el permiso es insuficiente, se puede descubrir mediante una simulación antes de la ejecución real. Nivel de sugerencia de error: Advertencia",+ "title": "Validar la ejecutabilidad de declaraciones DML"+ },+ "STATEMENT_INSERT_DISALLOW_ORDER_BY_RAND": {+ "description": "Ordenar aleatoriamente los datos a insertar no tiene sentido y solo consume recursos innecesarios. Nivel de sugerencia de error: Error",+ "title": "Prohibir el uso de \"ORDER BY rand()\" en declaraciones \"INSERT\""+ },+ "STATEMENT_INSERT_MUST_SPECIFY_COLUMN": {+ "description": "La declaración \"INSERT INTO table VALUES (...)\" no lista explícitamente los nombres de las columnas. Una vez que cambia el orden de las columnas o se agregan o eliminan columnas, la declaración puede fallar o generar datos inesperados. Nivel de sugerencia de error: Error",+ "title": "Obligar a especificar nombres de columnas en declaraciones \"INSERT\""+ },+ "STATEMENT_INSERT_ROW_LIMIT": {+ "component": {+ "number": {+ "title": "Cantidad máxima de inserciones"+ }+ },+ "description": "Revelar el número de filas a insertar puede ayudar a determinar si la declaración cumple con las expectativas comerciales. Nivel de sugerencia de error: Advertencia",+ "title": "Restringir el número máximo de filas insertadas"+ },+ "STATEMENT_JOIN_STRICT_COLUMN_ATTRS": {+ "description": "Si los tipos de datos y los juegos de caracteres de las columnas de unión no son idénticos, es posible que la base de datos no pueda identificar correctamente las filas coincidentes, lo que dará lugar a resultados inexactos o incompletos.",+ "title": "Los campos a unir deben tener tipos de datos y conjuntos de caracteres idénticos"+ },+ "STATEMENT_MAXIMUM_JOIN_TABLE_COUNT": {+ "component": {+ "number": {+ "title": "Valor máximo"+ }+ },+ "description": "Cuanto más tablas unes, más compleja se vuelve la consulta y más tardará en ejecutarse. En general, es recomendable mantener el número de uniones al mínimo.",+ "title": "Limite el número de tablas a unir"+ },+ "STATEMENT_MAXIMUM_LIMIT_VALUE": {+ "component": {+ "number": {+ "title": "Valor máximo"+ }+ },+ "description": "Limitar el número de filas mediante LIMIT garantiza que la base de datos procese bloques manejables, lo que mejora la velocidad de ejecución de las consultas. Un valor LIMIT limitado evita el uso excesivo de memoria, salvaguardando la estabilidad general del sistema y evitando la degradación del rendimiento.",+ "title": "Limitar el número máximo de la cláusula LIMIT"+ },+ "STATEMENT_MAXIMUM_STATEMENTS_IN_TRANSACTION": {+ "component": {+ "number": {+ "title": "Valor máximo"+ }+ },+ "description": "Las transacciones grandes pueden impactar significativamente el rendimiento de la base de datos. Si se involucra una gran cantidad de sentencias y una falla, revertir toda la transacción se vuelve complejo. Limitar las sentencias minimiza el daño potencial causado por una sola falla y simplifica los procedimientos de recuperación.",+ "title": "Limitar el número de sentencias en una transacción"+ },+ "STATEMENT_MAX_EXECUTION_TIME": {+ "description": "Establezca el tiempo máximo de ejecución de las sentencias SQL. Si el tiempo de ejecución supera el límite, la sentencia finalizará. Nivel de error sugerido: Advertencia",+ "mariadb": {+ "description": "Establezca el parámetro MAX_STATEMENT_TIME en el script de cambio para controlar explícitamente el tiempo máximo de ejecución de la declaración. Nivel de error sugerido: Advertencia",+ "title": "Exigir que se establezca el parámetro MAX_STATEMENT_TIME explícitamente"+ },+ "mysql": {+ "description": "Establezca el parámetro MAX_EXECUTION_TIME en el script de cambio para controlar explícitamente el tiempo máximo de ejecución de la instrucción. Nivel de error sugerido: Advertencia",+ "title": "Exigir que se establezca el parámetro MAX_EXECUTION_TIME explícitamente"+ },+ "title": "Aplicar el parámetro de tiempo máximo de ejecución"+ },+ "STATEMENT_MERGE_ALTER_TABLE": {+ "description": "Cada cambio en una tabla puede causar un bloqueo a nivel de tabla y consumir una gran cantidad de recursos. Si hay múltiples cambios en la misma tabla, deben fusionarse en una única declaración de cambio. Nivel de sugerencia de error: Error",+ "title": "Prohibir la emisión de múltiples cambios independientes en la misma tabla"+ },+ "STATEMENT_NON_TRANSACTIONAL": {+ "description": "",+ "title": "Detectar y reportar declaraciones no transaccionales"+ },+ "STATEMENT_OBJECT_OWNER_CHECK": {+ "description": "Esta regla verifica si el propietario del objeto para DDL es el mismo que el usuario actual.",+ "title": "Verificación del propietario del objeto"+ },+ "STATEMENT_QUERY_MINIMUM_PLAN_LEVEL": {+ "component": {+ "level": {+ "title": "Nivel maximo"+ }+ },+ "description": "La optimización del rendimiento de SQL busca un acceso constante (const), con el nivel de referencia (ref) como base, y un rendimiento aceptable a nivel de rango.",+ "title": "Limitar el nivel máximo del método de acceso a la consulta"+ },+ "STATEMENT_REQUIRE_ALGORITHM_OPTION": {+ "description": "La especificación de la opción ALGORITHM en las instrucciones ALTER TABLE garantiza un mayor control sobre cómo se aplican los cambios en las tablas, lo que minimiza las posibles interrupciones al evitar copias o bloqueos completos de las tablas. Ayuda a optimizar el rendimiento y reducir el tiempo de inactividad durante las modificaciones del esquema. Nivel de error sugerido: Advertencia.",+ "title": "Requiere especificar la opción ALGORITMO en las instrucciones ALTER TABLE"+ },+ "STATEMENT_REQUIRE_LOCK_OPTION": {+ "description": "La opción LOCK en las instrucciones ALTER TABLE le permite controlar el nivel de bloqueo durante los cambios de esquema, lo que ayuda a evitar bloqueos de tablas innecesarios y garantiza una mejor concurrencia. El uso adecuado de esta opción puede reducir significativamente el impacto de las operaciones DDL en las consultas activas. Nivel de error sugerido: Advertencia.",+ "title": "Requerir especificar la opción LOCK en las instrucciones ALTER TABLE"+ },+ "STATEMENT_SELECT_FULL_TABLE_SCAN": {+ "description": "El escaneo completo de tabla es una operación intensiva en recursos y puede causar un impacto grave en el rendimiento. Nivel de sugerencia de error: Error",+ "title": "Verificar escaneo completo de tabla en consultas"+ },+ "STATEMENT_SELECT_NO_SELECT_ALL": {+ "description": "El uso de SELECT * para obtener todos los datos de una fila puede causar una sobrecarga de recursos innecesaria y también puede causar resultados inesperados en las aplicaciones una vez que la tabla agrega o elimina columnas. Nivel de sugerencia de error: Error",+ "title": "Prohibir el uso de \"SELECT *\""+ },+ "STATEMENT_WHERE_DISALLOW_FUNCTIONS_AND_CALCULATIONS": {+ "description": "Si aplica una función o realiza un cálculo en el campo indexado, la base de datos no puede usar el índice y tiene que escanear toda la tabla.",+ "title": "No aplique funciones ni realice cálculos en campos indexados en la cláusula WHERE"+ },+ "STATEMENT_WHERE_MAXIMUM_LOGICAL_OPERATOR_COUNT": {+ "component": {+ "number": {+ "title": "Número máximo"+ }+ },+ "description": "Esto evita la degradación del rendimiento debido a comparaciones exhaustivas y limitaciones de recursos.",+ "title": "Limitar el número de valores en las cláusulas IN u OR dentro de la cláusula WHERE"+ },+ "STATEMENT_WHERE_NO_EQUAL_NULL": {+ "description": "El resultado de la comparación de igualdad con NULL siempre es NULL, lo que puede causar resultados inesperados. Nivel de error de sugerencia: Advertencia",+ "title": "Prohibir el uso de comparación de igualdad con NULL en la cláusula WHERE"+ },+ "STATEMENT_WHERE_NO_LEADING_WILDCARD_LIKE": {+ "description": "Al usar comodines principales, como \"LIKE '%ABC'\", el optimizador de la base de datos no puede usar el escaneo de índice rápido y debe recurrir al escaneo completo de la tabla o del índice completo, lo que puede causar un impacto grave en el rendimiento. Nivel de sugerencia de error: Error",+ "title": "Prohibir el uso de comodines principales en las condiciones de filtrado"+ },+ "STATEMENT_WHERE_REQUIRE_SELECT": {+ "description": "Las consultas sin la cláusula WHERE pueden causar una sobrecarga de recursos innecesaria y enorme. Nivel de error sugerido: Error",+ "title": "Hacer cumplir la presencia de la condición \"WHERE\" en las instrucciones SELECT"+ },+ "STATEMENT_WHERE_REQUIRE_UPDATE_DELETE": {+ "description": "Los DML sin cláusula WHERE pueden provocar una pérdida masiva de datos accidental. Nivel de error sugerido: Error",+ "title": "Hacer cumplir la presencia de la condición \"WHERE\" en las declaraciones"+ },+ "SYSTEM_CHARSET_ALLOWLIST": {+ "component": {+ "list": {+ "title": "Permitir lista"+ }+ },+ "description": "El juego de caracteres determina qué caracteres se pueden almacenar en la tabla. El uso de un juego de caracteres incorrecto puede hacer que ciertos caracteres de la aplicación no se puedan almacenar ni mostrar correctamente, como los caracteres CJK y Emoji. Nivel de error sugerido: Error",+ "title": "Lista permitida de juegos de caracteres"+ },+ "SYSTEM_COLLATION_ALLOWLIST": {+ "component": {+ "list": {+ "title": "Permitir lista"+ }+ },+ "description": "La ordenación determina las reglas para la comparación y clasificación de caracteres. Por ejemplo, al utilizar una ordenación que no distingue entre mayúsculas y minúsculas, \"ABC\" y \"abc\" se tratarán como la misma cadena en las consultas. Nivel de error sugerido: Error",+ "title": "Lista permitida de ordenaciones"+ },+ "SYSTEM_COMMENT_LENGTH": {+ "component": {+ "number": {+ "title": "Longitud máxima de los comentarios"+ }+ },+ "description": "",+ "title": "Restricción en la longitud de los comentarios"+ },+ "SYSTEM_EVENT_DISALLOW_CREATE": {+ "description": "Esta regla prohíbe la creación de eventos dentro de la base de datos. Los eventos del sistema a menudo realizan tareas automatizadas que podrían afectar el entorno de la base de datos. Al prohibir su creación, ayuda a mantener el control sobre las operaciones de la base de datos y previene posibles interrupciones. Nivel de error sugerido: Advertencia",+ "title": "Prohibir la creación de eventos"+ },+ "SYSTEM_FUNCTION_DISALLOWED_LIST": {+ "component": {+ "list": {+ "title": "Prohibir lista"+ }+ },+ "description": "Esta regla restringe el uso de funciones específicas dentro de la base de datos. Al prohibir el uso de estas funciones, ayuda a mantener la consistencia y seguridad de los datos. Nivel de error sugerido: Advertencia",+ "title": "Prohibir el uso de ciertas funciones"+ },+ "SYSTEM_FUNCTION_DISALLOW_CREATE": {+ "description": "Esta regla prohíbe la creación de funciones dentro de la base de datos. Las funciones proporcionan lógica reutilizable que puede simplificar las consultas y mejorar la integridad de los datos. Al prohibir su creación, se ayuda a mantener el control sobre el esquema de la base de datos y se previenen posibles riesgos de seguridad. Nivel de error sugerido: Advertencia",+ "title": "Prohibición de crear funciones"+ },+ "SYSTEM_PROCEDURE_DISALLOW_CREATE": {+ "description": "Los procedimientos del sistema pueden realizar operaciones de alto riesgo, como la eliminación de datos, la modificación de la estructura de la base de datos, etc. Nivel de error sugerido: Advertencia",+ "title": "Prohibir la ejecución de procedimientos del sistema"+ },+ "SYSTEM_VIEW_DISALLOW_CREATE": {+ "description": "Esta regla prohíbe la creación de vistas dentro de la base de datos. Las vistas proporcionan una representación virtual de los datos que puede simplificar las consultas y mejorar la seguridad de los datos. Al prohibir su creación, ayuda a mantener el control sobre el esquema de la base de datos y previene posibles riesgos de seguridad. Nivel de error sugerido: Advertencia",+ "title": "Prohibir la creación de vistas"+ },+ "TABLE_COMMENT": {+ "component": {+ "maxLength": {+ "title": "Longitud máxima"+ },+ "required": {+ "title": "Requerir comentario"+ }+ },+ "description": "Configure si la tabla requiere comentarios y la longitud máxima de comentarios.",+ "title": "Convención de comentarios de tabla"+ },+ "TABLE_DISALLOW_DDL": {+ "component": {+ "list": {+ "title": "Nombres de tablas"+ }+ },+ "description": "Configure qué tablas tienen prohibido ejecutar DDL. Nivel de error de sugerencia: Advertencia",+ "title": "No permitir DDL"+ },+ "TABLE_DISALLOW_DML": {+ "component": {+ "list": {+ "title": "Nombres de tablas"+ }+ },+ "description": "Configure qué tablas tienen prohibido ejecutar DML. Nivel de error de sugerencia: Advertencia",+ "title": "No permitir DML"+ },+ "TABLE_DISALLOW_PARTITION": {+ "description": "En algunos motores de base de datos, las tablas particionadas no están maduras y el uso y mantenimiento son incómodos. Por lo tanto, es más propenso a utilizar métodos manuales de partición de datos como la fragmentación de bases de datos y tablas. Nivel de sugerencia de error: Advertencia",+ "title": "Prohibir el uso de tablas particionadas"+ },+ "TABLE_DISALLOW_SET_CHARSET": {+ "description": "Se recomienda establecer el juego de caracteres a nivel de la base de datos. Establecer el juego de caracteres con una granularidad más fina puede generar complejidades innecesarias. Nivel de error sugerido: Error.",+ "title": "Prohibir la definición del juego de caracteres en las propiedades de la tabla"+ },+ "TABLE_DISALLOW_TRIGGER": {+ "description": "Los desencadenadores pueden hacer que el flujo de control sea difícil de seguir y aumentar la complejidad del sistema. En lugar de usar desencadenadores, se recomienda utilizar la lógica de la aplicación para realizar operaciones de base de datos. Nivel de sugerencia de error: Advertencia",+ "title": "Prohibir el uso de desencadenadores en tablas"+ },+ "TABLE_DROP_NAMING_CONVENTION": {+ "component": {+ "format": {+ "title": "Formato de nombre de tabla (regex)"+ }+ },+ "description": "Por ejemplo, al requerir el sufijo \"_del\", se puede prevenir efectivamente las eliminaciones accidentales. Nivel de sugerencia de error: Error",+ "title": "Restringir el formato de nomenclatura de las tablas a eliminar"+ },+ "TABLE_LIMIT_SIZE": {+ "component": {+ "number": {+ "title": "Recuento máximo de filas"+ }+ },+ "description": "Configurar el número máximo de filas en tablas para las cuales se puede ejecutar DDL. Nivel de error recomendado: advertencia",+ "title": "Limitar operaciones DDL en tablas con gran número de filas"+ },+ "TABLE_NO_DUPLICATE_INDEX": {+ "description": "Esta regla requiere que una tabla no tenga índices duplicados. Los índices duplicados consumen espacio de almacenamiento adicional y pueden reducir el rendimiento de las consultas. Nivel de error sugerido: Advertencia.",+ "title": "Prohibir índices duplicados en la tabla"+ },+ "TABLE_NO_FOREIGN_KEY": {+ "description": "Las ventajas y desventajas de las claves externas son altamente controvertidas. El uso de claves externas puede aumentar significativamente la dificultad de los cambios en la base de datos, la escalabilidad (como la fragmentación), etc. Y incluso puede evitar el uso de algunas herramientas. Por lo tanto, otra opción es implementar restricciones de claves externas en la capa de aplicación. Nivel de sugerencia de error: Advertencia",+ "title": "Prohibir el uso de restricciones de clave externa"+ },+ "TABLE_REQUIRE_CHARSET": {+ "description": "Se debe especificar el conjunto de caracteres de la tabla. Nivel de error sugerido: Advertencia",+ "title": "Requerir juego de caracteres"+ },+ "TABLE_REQUIRE_COLLATION": {+ "description": "Se debe especificar la intercalación de la tabla. Nivel de error sugerido: Advertencia",+ "title": "Requerir intercalación"+ },+ "TABLE_REQUIRE_PK": {+ "description": "Varias herramientas de sincronización, comparación y recuperación de datos a menudo requieren que las tablas tengan una clave principal. Nivel de error sugerido: Error",+ "title": "Imponer la inclusión de clave primaria en una tabla"+ },+ "TABLE_TEXT_FIELDS_TOTAL_LENGTH": {+ "component": {+ "number": {+ "title": "Longitud máxima"+ }+ },+ "description": "Esta regla limita la cantidad de datos que una tabla puede almacenar, evitando un uso excesivo de almacenamiento.",+ "title": "Limitar la longitud total de los campos de texto en una tabla"+ },"self": "Regla de revisión SQL"},- "title": "SQL Review"+ "select-all": "Seleccionar todo",+ "select-review-rules": "Seleccionar reglas de revisión de SQL",+ "template": {+ "bb-sql-review-dev": "Plantilla Básica",+ "bb-sql-review-dev-desc": "Cobertura básica para defender sus bases de datos de uso indebido común.",+ "bb-sql-review-empty": "Empezar desde el principio",+ "bb-sql-review-empty-desc": "Una plantilla vacía. Debe agregar las reglas necesarias usted mismo.",+ "bb-sql-review-prod": "Plantilla Avanzada",+ "bb-sql-review-prod-desc": "Política completa donde se tiene protección total y mejores prácticas para sus bases de datos.",+ "bb-sql-review-sample": "Plantilla de Muestra",+ "bb-sql-review-sample-desc": "Una plantilla mínima con protección de DROP y prohibición de columnas anulables."+ },+ "title": "Revisión de SQL"},"subscription": {"contact-us": "Contáctenos",diff --git a/frontend/src/react/locales/ja-JP.json b/frontend/src/react/locales/ja-JP.jsonindex ac30943432..e6fbcde13c 100644--- a/frontend/src/react/locales/ja-JP.json+++ b/frontend/src/react/locales/ja-JP.json@@ -304,10 +304,13 @@},"common.add": "追加","common.admin": "管理者",+ "common.all": "全て","common.archive": "アーカイブ","common.archived": "アーカイブ済み","common.cancel": "キャンセル","common.cannot-undo-this-action": "この操作は元に戻せません",+ "common.close": "閉じる",+ "common.confirm": "確認する","common.continue-anyway": "まだ続けたい","common.create": "作成する","common.creating": "作成...",@@ -329,6 +332,7 @@"common.minutes": "分","common.no-data": "データなし","common.optional": "オプション",+ "common.or": "または","common.overview": "概要","common.password": "パスワード","common.project": "プロジェクト",@@ -1839,43 +1843,758 @@"view-issue": "View Issue"},"sql-review": {- "add-or-remove-rules": "Add or remove rules",- "add-rules": "Add rules",+ "add-or-remove-rules": "ルールを追加または削除する",+ "add-rules": "ルールを追加する","attach-resource": {- "change-resources": "Change attached resources",- "label": "You can apply the SQL review policy to environments or projects. The database will use the project-level policy if it exists, or fallback to the environment-level policy.",- "no-linked-resources": "No attached resources",- "self": "Attach to resources"- },- "configure-policy": "Configure policy",+ "change-resources": "バインドされたリソースを変更する",+ "label": "SQL レビューポリシーは環境リソースまたはプロジェクト リソースにバインドする必要があり、対応するリソースの下にあるすべてのデータベースに影響します。データベースがプロジェクト レベルと環境レベルの両方のポリシーの影響を受ける場合、プロジェクト レベルのポリシーのみが有効になります。",+ "label-environment": "SQL レビューポリシーは、選択した環境に属するすべてのデータベースに影響します。",+ "label-project": "SQL レビューポリシーは、選択したプロジェクト内のすべてのデータベースに影響します。環境の SQL レビューポリシーは無視されます。",+ "no-linked-resources": "リソースのバインドはありません",+ "override-warning": "次のリソースは、他の SQL レビューポリシーにバインドされています。 \"{{button}}\" をクリックすると設定が上書きされます。",+ "self": "リソースにバインドする"+ },+ "category": {+ "advice": "アドバイス",+ "builtin": "ビルトイン",+ "column": "カラム",+ "database": "データベース",+ "engine": "エンジン",+ "index": "インデックス",+ "naming": "命名",+ "schema": "スキーマ",+ "statement": "ステートメント",+ "system": "システム",+ "table": "テーブル"+ },+ "configure-policy": "SQL レビューポリシーを設定する","create": {"basic-info": {- "display-name": "Display name",- "display-name-default": "SQL review policy",- "display-name-label": "A display name to help identifying among different review policies.",- "name": "Basic info"+ "choose-template": "テンプレートを選択",+ "display-name": "名前",+ "display-name-default": "SQL レビューポリシー",+ "display-name-label": "さまざまな SQL レビューポリシーを区別するために使用される名前。",+ "name": "基本情報"},"configure-rule": {- "change-template": "Change the template",- "confirm-override-description": "Your rules will be overridden",- "name": "Configure rule"+ "change-template": "テンプレートの変更",+ "confirm-override-description": "以前のルールは上書きされます",+ "name": "ルールを設定する"}},- "delete": "Delete SQL review policy",- "description": "SQL review policy can define different set of SQL lint rules for the respective environments. It helps teams to adopt SQL best practice and enforce schema consistency across different databases. Whenever you attempt a DDL/DML change or use SQL Editor to query data, the query will be checked against the configured SQL review policy.",- "disabled": "SQL review is disabled",- "enabled-rules": "Enabled rules",- "no-permission": "Only DBA or Admin has permission to create or update review policy.",- "policy-create-failed": "Failed to create the review policy.",- "policy-created": "Successfully created the review policy.",- "policy-removed": "Successfully removed the review policy.",- "policy-update-failed": "Failed to update the review policy.",- "policy-updated": "Successfully updated the review policy.",+ "delete": "SQL レビューポリシーの削除",+ "description": "SQL レビューポリシーは、さまざまな環境に対してさまざまな SQL lint ルールのセットを定義でき、チームが SQL のベスト プラクティスを採用し、さまざまなデータベースでスキーマの一貫性を制約するのに役立ちます。 DDL/DML を変更しようとしたり、SQL エディターを使用してデータをクエリしようとしたりすると、設定された SQL レビュールールによって対応する実行ステートメントがチェックされます。",+ "disabled": "SQL レビューポリシーが無効になっています",+ "enabled-rules": "開かれたルールの数",+ "engine": {+ "mariadb": "MariaDB",+ "mssql": "SQL Server",+ "mysql": "MySQL",+ "oceanbase": "OceanBase",+ "oracle": "Oracle",+ "postgres": "PostgreSQL",+ "snowflake": "Snowflake",+ "tidb": "TiDB"+ },+ "input-then-press-enter": "入力後、Enterを押して追加します",+ "level": {+ "disabled": "無効化",+ "error": "エラー",+ "name": "レベル",+ "warning": "警告"+ },+ "no-permission": "管理者または DBA のみが SQL レビューポリシーを作成または更新する権限を持っています。",+ "policy-create-failed": "SQL レビューポリシーの作成に失敗しました",+ "policy-created": "SQL レビューポリシーが作成されました",+ "policy-removed": "SQL レビューポリシーが削除されました",+ "policy-update-failed": "レビューポリシーの更新に失敗しました。",+ "policy-updated": "SQL レビューポリシーが更新されました","review-policy": "Review policy","rule": {+ "ADVICE_ONLINE_MIGRATION": {+ "component": {+ "number": {+ "title": "しきい値"+ }+ },+ "description": "移行されたテーブル行数が設定値を超えた場合、オンライン移行の有効化を推奨します。推奨されるエラーレベル: 警告",+ "title": "オンライン移行"+ },+ "BUILTIN_PRIOR_BACKUP_CHECK": {+ "description": "このルールは、データが変更される前にバックアップを作成できるかどうかを確認します。バックアップ ターゲット データベースの存在を確認し、サポートされていないシナリオを禁止します。これは組み込みであり、スキップできません。",+ "title": "事前のバックアップ実行可能性チェック"+ },+ "BUILTIN_WALK_THROUGH_CHECK": {+ "description": "SQL文の実行をシミュレートして、現在のデータベーススキーマとの整合性を検証します。存在しないテーブル、カラム、インデックスの参照などの問題を検出します。",+ "title": "スキーマウォークスルー検証"+ },+ "COLUMN_AUTO_INCREMENT_INITIAL_VALUE": {+ "component": {+ "number": {+ "title": "初期値"+ }+ },+ "description": "管理要件に基づいて自動インクリメントカラムの初期値を制限します。推奨エラーレベル:警告",+ "title": "自動インクリメントカラムの初期値を制限する"+ },+ "COLUMN_AUTO_INCREMENT_MUST_INTEGER": {+ "description": "MySQLの自動増分列は一般的にビジネスに依存しない主キーとして使用されます。整数型を使用することで、ストレージスペースを節約し、主キーのインデックス構造をよりコンパクトにし、クエリとDMLのパフォーマンスを向上させることができます。推奨エラーレベル:エラー",+ "title": "自動増分列に「INTEGER」データ型の使用を強制します"+ },+ "COLUMN_AUTO_INCREMENT_MUST_UNSIGNED": {+ "description": "符号なしの型は負の数を格納せず、同じ型で格納できる値の範囲が倍増するため、自動増分列のオーバーフローを回避することができます。推奨エラーレベル:警告",+ "title": "自動増分列に「UNSIGNED」データ型の使用を強制します"+ },+ "COLUMN_COMMENT": {+ "component": {+ "maxLength": {+ "title": "最大長"+ },+ "required": {+ "title": "コメントの必須化"+ }+ },+ "description": "カラムにコメントを追加することは良い開発の慣行ですが、極端に長いコメントはスキーマの可読性を低下させる可能性があります。推奨エラーレベル:警告",+ "title": "列コメントの規則"+ },+ "COLUMN_CURRENT_TIME_COUNT_LIMIT": {+ "description": "レコードの作成時に\"DEFAULT NOW()\"で作成時刻を記録し、レコードの更新時に\"DEFAULT NOW() ON UPDATE\"で更新時刻を記録するカラムのみ、システム時刻を取得するための関数を呼び出す必要があります。他のカラムにシステム時刻を記録することは意味がなく、リソースのオーバーヘッドを増やすだけです。推奨エラーレベル:エラー",+ "title": "システム時刻を取得する必要のあるテーブルのカラム数を制限する"+ },+ "COLUMN_DEFAULT_DISALLOW_VOLATILE": {+ "description": "ボラタイル関数(例: clock_timestamp())は、ALTER TABLE ADD COLUMN 実行時の値で各行を更新し、更新が長引く可能性があります。",+ "title": "列に対して揮発性のあるデフォルト値の設定を禁止します"+ },+ "COLUMN_DISALLOW_CHANGE": {+ "description": "\"CHANGE COLUMN\" は MySQL の構文に固有のものであり、列名やその他のプロパティを同時に変更するために使用できます。ただし、プロパティを変更する際に列名が誤って変更される可能性があります。2つの変更の種類を区別するために、引き続き標準の \"RENAME\" および \"MODIFY\" ステートメントを使用することを推奨します。推奨エラーレベル:エラー",+ "title": "\"CHANGE COLUMN\" ステートメントの使用を禁止する"+ },+ "COLUMN_DISALLOW_CHANGE_TYPE": {+ "description": "列の型を変更すると、システムのパフォーマンス、保守性、さらにはデータの損失に影響を与える可能性があります。推奨エラーレベル:警告",+ "title": "列の型の変更を禁止する"+ },+ "COLUMN_DISALLOW_CHANGING_ORDER": {+ "description": "列の順序を変更すると、元のテーブルのデフォルトの順序に依存する一部のアプリケーションやビューが予期しない結果(\"select *\" など)を生成する可能性があります。推奨エラーレベル:警告",+ "title": "テーブル内の列の順序の変更を禁止する"+ },+ "COLUMN_DISALLOW_DROP": {+ "description": "列を削除することは禁止されています。推奨されるエラーレベル:警告。",+ "title": "列の削除を禁止"+ },+ "COLUMN_DISALLOW_DROP_IN_INDEX": {+ "description": "インデックス内の列の削除を禁止します。推奨エラーレベル:エラー",+ "title": "インデックス内の列の削除を禁止する"+ },+ "COLUMN_DISALLOW_SET_CHARSET": {+ "description": "データベースレベルまたはテーブルレベルで文字セットを設定することをおすすめします。細かい粒度で文字セットを設定すると、不必要な複雑さが生じる場合があります。推奨エラーレベル:エラー。",+ "title": "列のプロパティで文字セットの定義を禁止する"+ },+ "COLUMN_MAXIMUM_CHARACTER_LENGTH": {+ "component": {+ "number": {+ "title": "最大長"+ }+ },+ "description": "\"CHAR\"は固定長のタイプです。例えば、CHAR(20)のカラムは1文字しか格納されていなくても20文字分のスペースを占有し、無駄になります。文字列が長すぎて長さが固定されていない場合は、MySQLではVARCHARを使用し、PostgreSQLではTEXTを使用することを検討してください。推奨エラーレベル:エラー",+ "title": "\"CHAR\"データ型の長さを制限する"+ },+ "COLUMN_MAXIMUM_VARCHAR_LENGTH": {+ "component": {+ "number": {+ "title": "最大長"+ }+ },+ "description": "",+ "title": "\"VARCHAR\"データ型の長さを制限する"+ },+ "COLUMN_NO_NULL": {+ "description": "列にNULL値を持つことはできません。",+ "title": "列に「NOT NULL」制約を強制する"+ },+ "COLUMN_REQUIRED": {+ "component": {+ "list": {+ "title": "必須の列名"+ }+ },+ "description": "いくつかの共通の列は、アプリケーションのメンテナンスを向上させるために役立ちます。例えば、ビジネスに依存しない「ID」列を主キーとして追加することで、ビジネスの変更(ビジネスの統合など)による主キーの競合を回避することができ、一部のシナリオではデータの挿入パフォーマンスも向上させることができます。推奨エラーレベル:警告",+ "title": "テーブルに特定の列を含めることを強制する"+ },+ "COLUMN_REQUIRE_CHARSET": {+ "description": "テキスト データ型の列の文字セットを指定する必要があります。提案エラー レベル: 警告",+ "title": "テキスト列に文字セットを要求する"+ },+ "COLUMN_REQUIRE_COLLATION": {+ "description": "テキスト データ型の列の照合を指定する必要があります。提案エラー レベル: 警告",+ "title": "テキスト列の照合を要求する"+ },+ "COLUMN_REQUIRE_DEFAULT": {+ "description": "ビジネスロジックを満たすデフォルト値の設定は、ダウンストリームの分析パイプラインのデータ品質を効果的に向上させることができます。このルールは「PRIMARY KEY」、「JSON」、「BLOB」、「TEXT」、「GEOMETRY」、「AUTO_INCREMENT」、「GENERATED」のタイプをチェックしません。提案エラーレベル:警告",+ "title": "カラムにデフォルト値の設定を強制する"+ },+ "COLUMN_SET_DEFAULT_FOR_NOT_NULL": {+ "description": "「NOT NULL」列に新しい行を挿入する際に列に値が割り当てられていない場合、かつ列にデフォルト値がない場合、データベースはその行の挿入を拒否します。新しい列にデフォルト値を設定することで、レガシーアプリケーションとの互換性も確保できます。推奨エラーレベル:エラー",+ "title": "「NOT NULL」列にデフォルト値を強制します"+ },+ "COLUMN_TYPE_DISALLOW_LIST": {+ "component": {+ "list": {+ "title": "禁止リスト"+ }+ },+ "description": "列のデータ型の乱用は、システムの保守性とパフォーマンスに深刻な悪影響を与える可能性があります。例えば、「LOB」列を使用して大量の音声やビデオデータを保存すると、データベースのパフォーマンスが低下し、バックアップと復旧時間が長くなり、データ同期ツールとの互換性が失われる可能性があります。推奨エラーレベル:エラー",+ "title": "特定の列データ型の使用を禁止する"+ },+ "DATABASE_DROP_EMPTY_DATABASE": {+ "description": "データベース内にテーブルが存在しない場合のみ削除が許可されます。これにより、誤って削除することを大幅に防ぐことができます。提案されるエラーレベル:エラー",+ "title": "空でないデータベースの削除を禁止する"+ },+ "ENGINE_MYSQL_USE_INNODB": {+ "description": "InnoDBはMySQLのデフォルトのストレージエンジンであり、トランザクションのサポートを提供します。高並行性と低遅延のシナリオにおいても優れたパフォーマンスを提供し、オンラインデータのバックアップとリカバリをサポートします。OLTPビジネスにおいては優先される選択肢です。提案エラーレベル:エラー",+ "title": "InnoDBストレージエンジンの強制"+ },+ "INDEX_CREATE_CONCURRENTLY": {+ "description": "PostgreSQL 11以降では、標準のステートメントを使用してインデックスを作成すると、テーブルのロックが発生し、書き込みができなくなります。\"CONCURRENTLY\"モードを使用すると、この問題を回避できます。提案エラーレベル:警告",+ "title": "同時インデックス作成の強制"+ },+ "INDEX_KEY_NUMBER_LIMIT": {+ "component": {+ "number": {+ "title": "最大列数"+ }+ },+ "description": "5つ以上の列を持つ複合インデックスは、クエリのパフォーマンスを大幅に向上させるわけではありませんが、多くのスペースを占有し、DMLのパフォーマンスを低下させます。提案エラーレベル:警告",+ "title": "単一のインデックス内の列の数を制限する"+ },+ "INDEX_NOT_REDUNDANT": {+ "description": "冗長なインデックスはパフォーマンスの損失と追加のスペースの占有を引き起こす可能性があります。例えば、列(c1)にすでにインデックスが存在する場合、列(c1、c2)上のインデックスは冗長なインデックスとして扱われます。提案されるエラーレベル:警告",+ "title": "冗長なインデックスを禁止する"+ },+ "INDEX_NO_DUPLICATE_COLUMN": {+ "description": "重複する列を持つインデックスの作成は失敗します。提案されるエラーレベル:エラー",+ "title": "重複する列を含むインデックスの作成を禁止する"+ },+ "INDEX_PK_TYPE_LIMIT": {+ "description": "プライマリキーのタイプをINTまたはBIGINTに制限します。",+ "title": "プライマリキーのタイプ制限"+ },+ "INDEX_PRIMARY_KEY_TYPE_ALLOWLIST": {+ "component": {+ "list": {+ "title": "許可リスト"+ }+ },+ "description": "適切な主キーのタイプは、ストレージ構造を最適化し、スペース使用量を減らし、挿入およびクエリのパフォーマンスを向上させることができます。提案エラーレベル:警告",+ "title": "許可される主キーのタイプのリスト"+ },+ "INDEX_TOTAL_NUMBER_LIMIT": {+ "component": {+ "number": {+ "title": "最大インデックス数"+ }+ },+ "description": "インデックスはクエリのパフォーマンスを向上させることができますが、多くのスペースを占有し、DMLのパフォーマンスを低下させることもあります。したがって、テーブルに5つ以上のインデックスを作成することは推奨されません。提案エラーレベル:警告",+ "title": "単一のテーブルにおけるインデックスの数を制限します"+ },+ "INDEX_TYPE_ALLOW_LIST": {+ "component": {+ "list": {+ "title": "許可リスト"+ }+ },+ "description": "異なるインデックスタイプには異なるパフォーマンス特性があります。例えば、B-tree インデックスは範囲クエリに適していますが、ハッシュインデックスは等価クエリに適しています。提案エラーレベル: 警告",+ "title": "許可されたインデックスタイプのリスト"+ },+ "INDEX_TYPE_NO_BLOB": {+ "description": "\"BLOB\"タイプは通常、バイナリデータを格納するために使用され、クエリ条件として使用するべきではありません。誤ってこの列タイプにインデックスを作成すると、多くのリソースを消費し、重大なパフォーマンスの影響を引き起こす可能性があります。提案されるエラーレベル:エラー",+ "title": "\"BLOB\"および\"TEXT\"データ型の列にインデックスの作成を禁止する"+ },+ "NAMING_COLUMN": {+ "component": {+ "format": {+ "title": "列名の形式(正規表現)"+ },+ "maxLength": {+ "title": "長さ制限"+ }+ },+ "description": "デフォルトの形式はすべて小文字で、単語間にアンダースコアで区切られ、最大63文字までです。例えば「abc」や「abc_def」です。提案エラーレベル:警告",+ "title": "列名の形式を強制する"+ },+ "NAMING_COLUMN_AUTO_INCREMENT": {+ "component": {+ "format": {+ "title": "オートインクリメント列の名前の形式(正規表現)"+ },+ "maxLength": {+ "title": "長さ制限"+ }+ },+ "description": "デフォルトの列名は「ID」で、63文字を超えないようにします。",+ "title": "オートインクリメント列の命名形式を強制する"+ },+ "NAMING_FULLY_QUALIFIED": {+ "description": "完全修飾オブジェクト名の使用を強制します。 例えば、「schema.table」、推奨エラーレベル:警告",+ "title": "完全修飾オブジェクト名"+ },+ "NAMING_IDENTIFIER_CASE": {+ "component": {+ "upper": {+ "title": "大文字にする"+ }+ },+ "description": "",+ "title": "識別子の大文字小文字を強制する"+ },+ "NAMING_IDENTIFIER_NO_KEYWORD": {+ "description": "",+ "title": "識別子としてキーワードの使用を禁止する"+ },+ "NAMING_INDEX_FK": {+ "component": {+ "format": {+ "template": {+ "referenced_column": "参照されている列名",+ "referenced_table": "参照されているテーブル名",+ "referencing_column": "参照している列名",+ "referencing_table": "参照しているテーブル名"+ },+ "title": "外部キーの名前の形式"+ },+ "maxLength": {+ "title": "長さ制限"+ }+ },+ "description": "名前は空であることもあり、データベースによって命名されることもあります。空でない場合、デフォルトの形式は「fk_<テーブル名>_<一意のキーカラム名の組み合わせ>」で、63文字を超えないようにします。例えば「fk_my_table_id_name」です。提案エラーレベル:警告",+ "title": "外部キーの命名形式を強制する"+ },+ "NAMING_INDEX_IDX": {+ "component": {+ "format": {+ "template": {+ "column_list": "_で結合されたインデックス列の名前",+ "table": "テーブル名"+ },+ "title": "インデックスの名前の形式"+ },+ "maxLength": {+ "title": "長さ制限"+ }+ },+ "description": "名前は空であることもあり、データベースによって命名されることもあります。空でない場合、デフォルトの形式は「idx_<テーブル名>_<一意のキーカラム名の組み合わせ>」で、63文字を超えないようにします。例えば「idx_my_table_id_name」です。提案エラーレベル:警告",+ "title": "インデックスの命名形式を強制する"+ },+ "NAMING_INDEX_PK": {+ "component": {+ "format": {+ "template": {+ "column_list": "_で結合されたインデックス列の名前",+ "table": "テーブル名"+ },+ "title": "プライマリキーの名前の形式"+ },+ "maxLength": {+ "title": "長さ制限"+ }+ },+ "description": "名前は空白であることが許可され、データベースによって命名されます。空でない場合、デフォルトの形式は「pk_<テーブル名>_<一意キーカラム名の組み合わせ>」で、最大63文字までです。例えば「pk_my_table_id_name」です。提案エラーレベル:警告",+ "title": "主キーの命名形式を強制する"+ },+ "NAMING_INDEX_UK": {+ "component": {+ "format": {+ "template": {+ "column_list": "インデックス列名は_で結合されます",+ "table": "テーブル名"+ },+ "title": "一意キーの名前の形式"+ },+ "maxLength": {+ "title": "長さ制限"+ }+ },+ "description": "名前は空白であることが許可され、データベースによって命名されます。空でない場合、デフォルトの形式は「uk_<テーブル名>_<一意キーカラム名の組み合わせ>」で、最大63文字までです。例えば「uk_my_table_id_name」です。提案エラーレベル:警告",+ "title": "一意キーの命名形式を強制する"+ },+ "NAMING_TABLE": {+ "component": {+ "format": {+ "title": "テーブル名の形式(正規表現)"+ },+ "maxLength": {+ "title": "長さ制限"+ }+ },+ "description": "デフォルトの形式はすべて小文字で、単語間にアンダースコアで区切られ、最大63文字までです。例えば「abc」や「abc_def」です。提案エラーレベル:警告",+ "title": "テーブルの命名形式の強制"+ },+ "NAMING_TABLE_NO_KEYWORD": {+ "description": "",+ "title": "テーブル名としてキーワードの使用を禁止する"+ },+ "SCHEMA_BACKWARD_COMPATIBILITY": {+ "description": "一部の変更は実行中のアプリケーションに影響を与える可能性があります。データベースオブジェクトの名前の変更や新しい制約の追加などが該当します。このルールにより、既存のアプリケーションの障害を防ぐことができます。提案されるエラーレベル:警告",+ "title": "アプリケーションの後方互換性を確認する"+ },+ "STATEMENT_ADD_CHECK_NOT_VALID": {+ "description": "CHECK 制約を追加するには、既存のデータを検証する必要があり、ACCESS EXCLUSIVE テーブル ロックが必要です。 これにより読み取りと書き込みがブロックされ、ビジネスの中断が発生する可能性があります。新しいデータを検証するために\"NOT VALID\"オプションを追加し、変更が完了した後に既存のデータを手動で検証することをおすすめします。提案エラーレベル:警告",+ "title": "\"CHECK\"制約を追加する際に\"NOT VALID\"オプションを強制する"+ },+ "STATEMENT_ADD_COLUMN_WITHOUT_POSITION": {+ "description": "場合によっては、FIRST/AFTER を使用して指定位置に列を追加すると、データの再編成(元のデータを再び書き直す)が発生する可能性があります。推奨エラーレベル:警告。",+ "title": "指定位置への列の追加を禁止"+ },+ "STATEMENT_ADD_FOREIGN_KEY_NOT_VALID": {+ "description": "外部キーを追加するには、既存のデータを検証する必要があり、SHARE ROW EXCLUSIVE テーブル ロックが必要です。\nこれにより書き込みがブロックされ、業務が中断される可能性があります。\n新しいデータを検証し、変更の完了後に既存のデータを検証するには、「NOT VALID」オプションを追加することをお勧めします。\n提案エラーレベル: 警告",+ "title": "外部キーを追加するときに「NOT VALID」オプションを含めることを強制する"+ },+ "STATEMENT_AFFECTED_ROW_LIMIT": {+ "component": {+ "number": {+ "title": "影響を受ける行数の最大制限"+ }+ },+ "description": "更新または削除される行数を明示することで、ステートメントがビジネスの期待に沿っているかどうかを判断するのに役立ちます。提案エラーレベル:警告",+ "title": "更新または削除される行数の最大制限 (推定)"+ },+ "STATEMENT_CHECK_SET_ROLE_VARIABLE": {+ "description": "セッションの初めにロールステートメントを適切に設定しないと、不正なアクセスや不適切な権限の割り当てが発生し、データのセキュリティと完全性が危険にさらされる可能性があります。エラーレベル:警告",+ "title": "開始時にロールステートメントが設定されているかを確認する"+ },+ "STATEMENT_CREATE_SPECIFY_SCHEMA": {+ "description": "スキーマが指定されていない場合、オブジェクトはデフォルトのスキーマに作成され、予期しない結果を引き起こす可能性があります。",+ "title": "スキーマを指定せずにオブジェクトを作成することを禁止する"+ },+ "STATEMENT_DISALLOW_ADD_COLUMN_WITH_DEFAULT": {+ "description": "PostgreSQL 11以前では、デフォルト値を持つ列を追加するとテーブルがロックされて読み書きができなくなり、業務の中断を引き起こす可能性があります。PostgreSQL 11以降では、この問題が最適化されており、このルールに注意する必要はありません。提案エラーレベル:警告",+ "title": "テーブルにデフォルト値を持つ列を追加することを制限する"+ },+ "STATEMENT_DISALLOW_ADD_NOT_NULL": {+ "description": "PostgreSQL 11 より前にデフォルト値のある NOT NULL 制約を追加する場合、またはデフォルト値なしの NOT NULL 制約を追加する場合は、既存のデータを検証する必要があります。 これにより読み取りと書き込みがブロックされ、ビジネスの中断が発生する可能性があります。提案エラーレベル:警告",+ "title": "既存の列に\"NOT NULL\"制約を追加することを制限する"+ },+ "STATEMENT_DISALLOW_COMMIT": {+ "description": "システムによってコミットされるトランザクションには複数のステートメントが含まれる場合があり、部分的な障害の場合にはすばやく再実行するために必要です。そのため、明示的な\"COMMIT\"は許可されていません。提案エラーレベル:警告",+ "title": "明示的な\"COMMIT\"ステートメントの禁止"+ },+ "STATEMENT_DISALLOW_CROSS_DB_QUERIES": {+ "description": "データベース間のクエリはシステムの結合度を高め、効率性に問題を引き起こす可能性があります。推奨されるエラーレベル:警告",+ "title": "データベース間のクエリを禁止する"+ },+ "STATEMENT_DISALLOW_LIMIT": {+ "description": "ORDER BY句がない場合にDMLステートメントでLIMITを使用すると、影響を受ける行の順序が固定されないため、一部のレプリケーションモードではプライマリとレプリカのデータの整合性の問題が発生する可能性があります。提案エラーレベル:エラー",+ "title": "DMLステートメントでの\"LIMIT\"句の使用の禁止"+ },+ "STATEMENT_DISALLOW_OFFLINE_DDL": {+ "description": "データベースの変更がビジネスに影響するのを防ぐために、オフラインDDLの使用を避けてください。",+ "title": "オフラインDDLを禁止"+ },+ "STATEMENT_DISALLOW_ON_DEL_CASCADE": {+ "description": "'ON DELETEの\"CASCADE\"オプションは、多数の依存オブジェクトが削除または変更される原因となり、予期しない結果をもたらす可能性があります。提案されるエラーレベル:エラー",+ "title": "ON DELETE節での CASCADE オプションの使用を禁止する"+ },+ "STATEMENT_DISALLOW_ORDER_BY": {+ "description": "ソート操作は非常にリソースを消費するため、更新および削除操作では、ORDER BYおよびLIMITの代わりに可能な限り決定論的なフィルタリング条件を使用することをお勧めします。提案エラーレベル:エラー",+ "title": "\"UPDATE\"および\"DELETE\"ステートメントでの\"ORDER BY\"句の使用の禁止"+ },+ "STATEMENT_DISALLOW_RM_TBL_CASCADE": {+ "description": "テーブルを削除する際の\"CASCADE\"オプションの使用は、多数の依存オブジェクトが削除または変更される原因となり、予期しない結果をもたらす可能性があります。提案されるエラーレベル:エラー",+ "title": "テーブルの削除時に\"CASCADE\"を使用することを禁止する"+ },+ "STATEMENT_DISALLOW_USING_FILESORT": {+ "description": "ファイルソートは、データの大量の読み書きを伴うため、パフォーマンスが低下する可能性があります。提案エラーレベル:警告",+ "title": "ファイルソートの使用を禁止する"+ },+ "STATEMENT_DISALLOW_USING_TEMPORARY": {+ "description": "一時テーブルは、データの永続化が不要な場合にのみ使用することをお勧めします。一時テーブルはディスクに書き込まれるため、パフォーマンスが低下する可能性があります。提案エラーレベル:警告",+ "title": "一時テーブルの使用を禁止する"+ },+ "STATEMENT_DML_DRY_RUN": {+ "description": "構文は正しいが、テーブル名が間違っているか、権限が不足している場合、実際の実行前にドライランで発見できます。提案エラーレベル:警告",+ "title": "DML ステートメントの実行可能性を検証する"+ },+ "STATEMENT_INSERT_DISALLOW_ORDER_BY_RAND": {+ "description": "挿入するデータをランダムに並べ替えることは意味がなく、不必要なリソースを消費するだけです。提案エラーレベル:エラー",+ "title": "\"INSERT\" ステートメントで \"ORDER BY rand()\" の使用を禁止する"+ },+ "STATEMENT_INSERT_MUST_SPECIFY_COLUMN": {+ "description": "\"INSERT INTO table VALUES (...)\" ステートメントは列名を明示的にリストしません。列の順序が変更されたり、列が追加または削除された場合、ステートメントは失敗するか予期しないデータを生成する可能性があります。提案エラーレベル:エラー",+ "title": "\"INSERT\" ステートメントで列名の指定を強制する"+ },+ "STATEMENT_INSERT_ROW_LIMIT": {+ "component": {+ "number": {+ "title": "最大挿入量"+ }+ },+ "description": "挿入される行数を明示することで、ステートメントがビジネスの期待に沿っているかどうかを判断するのに役立ちます。提案エラーレベル:警告",+ "title": "挿入される行数の最大制限"+ },+ "STATEMENT_JOIN_STRICT_COLUMN_ATTRS": {+ "description": "加入カラムのデータ型、文字セットが一致しないと、データベースは一致する行を正しく識別できず、不正確または不完全な結果が生じるおそれがあります。",+ "title": "ジョインするフィールドは、データ型と文字セットが一致している必要があります"+ },+ "STATEMENT_MAXIMUM_JOIN_TABLE_COUNT": {+ "component": {+ "number": {+ "title": "最大値"+ }+ },+ "description": "結合するテーブル数が増えるほど、クエリは 複雑 (fukuzatsu) になり、実行時間が 長くなります (nagaku narimasu)。 一般的に、結合数を 最小限 (saishougen) に抑えることが望ましいです。",+ "title": "結合するテーブル数を制限する"+ },+ "STATEMENT_MAXIMUM_LIMIT_VALUE": {+ "component": {+ "number": {+ "title": "最大値"+ }+ },+ "description": "LIMIT による行数の制限は、データベースが管理可能なサイズの塊で処理を行い、クエリの実行速度を向上させます。上限を設定した LIMIT は、過度なメモリ使用を防ぎ、システム全体の安定性とパフォーマンスの低下を防ぐセーフガードとして機能します。",+ "title": "リミット節の上限値を制限する"+ },+ "STATEMENT_MAXIMUM_STATEMENTS_IN_TRANSACTION": {+ "component": {+ "number": {+ "title": "最大値"+ }+ },+ "description": "大きなトランザクションは、データベースのパフォーマンスに著しく影響を及ぼします。 多数のステートメントが関与しており、1つでも失敗すると、トランザクション全体のロールバックが複雑になります。 ステートメントを制限することで、単一の障害による潜在的な損害を最小限に抑え、ロールバック手順を簡素化できます。",+ "title": "トランザクション内のステートメント数を制限する"+ },+ "STATEMENT_MAX_EXECUTION_TIME": {+ "description": "SQL 文の最大実行時間を設定します。実行時間が制限を超えると、文は終了します。提案エラー レベル: 警告",+ "mariadb": {+ "description": "変更スクリプトで MAX_STATEMENT_TIME パラメータを設定して、ステートメントの最大実行時間を明示的に制御します。提案エラー レベル: 警告",+ "title": "MAX_STATEMENT_TIMEパラメータを明示的に設定する"+ },+ "mysql": {+ "description": "変更スクリプトで MAX_EXECUTION_TIME パラメータを設定して、ステートメントの最大実行時間を明示的に制御します。提案エラー レベル: 警告",+ "title": "MAX_EXECUTION_TIMEパラメータを明示的に設定する"+ },+ "title": "最大実行時間パラメータの設定を強制する"+ },+ "STATEMENT_MERGE_ALTER_TABLE": {+ "description": "テーブルへの変更ごとにテーブルレベルのロックが発生し、大量のリソースを消費する可能性があります。同じテーブルに複数の変更がある場合は、それらを1つの変更ステートメントに統合する必要があります。提案エラーレベル:エラー",+ "title": "同じテーブルに対して複数の独立した変更の発行の禁止"+ },+ "STATEMENT_NON_TRANSACTIONAL": {+ "description": "",+ "title": "非トランザクションステートメントを検出してレポートする"+ },+ "STATEMENT_OBJECT_OWNER_CHECK": {+ "description": "このルールは、DDLのオブジェクト所有者が現在のユーザーと同じであるかどうかを確認します。",+ "title": "オブジェクト所有者のチェック"+ },+ "STATEMENT_QUERY_MINIMUM_PLAN_LEVEL": {+ "component": {+ "level": {+ "title": "最大レベル"+ }+ },+ "description": "SQL パフォーマンス最適化は、定数時間 (じょうすうじかん) アクセスを目指すもので、基準として参照 (さんしょう) レベルを置き、許容範囲として範囲 (はんい) レベルのパフォーマンスを想定します。",+ "title": "クエリ アクセス メソッドの最大レベルを制限する"+ },+ "STATEMENT_REQUIRE_ALGORITHM_OPTION": {+ "description": "ALTER TABLE ステートメントで ALGORITHM オプションを指定すると、テーブルの変更の適用方法をより細かく制御できるようになり、テーブル全体のコピーやロックを回避することで潜在的な中断を最小限に抑えることができます。これにより、パフォーマンスが最適化され、スキーマ変更中のダウンタイムが短縮されます。推奨されるエラー レベル: 警告。",+ "title": "ALTER TABLE文でALGORITHMオプションを指定する必要がある"+ },+ "STATEMENT_REQUIRE_LOCK_OPTION": {+ "description": "ALTER TABLE ステートメントの LOCK オプションを使用すると、スキーマ変更時のロック レベルを制御できるため、不要なテーブル ロックを防止し、同時実行性を向上させることができます。このオプションを適切に使用すると、アクティブなクエリに対する DDL 操作の影響を大幅に軽減できます。推奨されるエラー レベル: 警告。",+ "title": "ALTER TABLE文でLOCKオプションを指定する必要がある"+ },+ "STATEMENT_SELECT_FULL_TABLE_SCAN": {+ "description": "フルテーブルスキャンはリソースを消費する操作であり、重大なパフォーマンスの影響を引き起こす可能性があります。提案エラーレベル:エラー",+ "title": "クエリのフルテーブルスキャンをチェックする"+ },+ "STATEMENT_SELECT_NO_SELECT_ALL": {+ "description": "「SELECT *」を使用して全行データを取得すると、不必要なリソースのオーバーヘッドが発生し、テーブルに列を追加または削除した場合にアプリケーションで予期しない結果が発生する可能性があります。提案エラーレベル:エラー",+ "title": "「SELECT *」の使用を禁止する"+ },+ "STATEMENT_WHERE_DISALLOW_FUNCTIONS_AND_CALCULATIONS": {+ "description": "あなたがインデックス付けされたフィールドに関数や計算を適用すると、データベースはインデックスを使用できず、代わりにテーブル全体をスキャンする必要があります。",+ "title": "WHERE 句でインデックス付きフィールドに関数や計算を適用しないでください"+ },+ "STATEMENT_WHERE_MAXIMUM_LOGICAL_OPERATOR_COUNT": {+ "component": {+ "number": {+ "title": "最大値"+ }+ },+ "description": "このアプローチは、広範な比較とリソースの制限によるパフォーマンスの低下を防ぎます。",+ "title": "WHERE 句の IN または OR 句の値数を制限する"+ },+ "STATEMENT_WHERE_NO_EQUAL_NULL": {+ "description": "NULL等価比較の結果は常にNULLです、これは予期しない結果を引き起こす可能性があります。推奨エラーレベル:警告",+ "title": "WHERE句でのNULL等価比較の使用を禁止する"+ },+ "STATEMENT_WHERE_NO_LEADING_WILDCARD_LIKE": {+ "description": "「LIKE '%ABC'」のような先行ワイルドカードを使用すると、データベースの最適化プランナーは高速なインデックススキャンを使用できず、フルテーブルスキャンまたはフルインデックススキャンにフォールバックする可能性があります。これにより、重大なパフォーマンスの影響が発生する可能性があります。提案エラーレベル:エラー",+ "title": "フィルタ条件で先行ワイルドカードの使用を禁止する"+ },+ "STATEMENT_WHERE_REQUIRE_SELECT": {+ "description": "WHERE 句のないクエリは、膨大なリソースのオーバーヘッドを引き起こす可能性があります。提案エラー レベル: エラー",+ "title": "SELECT文に「WHERE」条件を強制する"+ },+ "STATEMENT_WHERE_REQUIRE_UPDATE_DELETE": {+ "description": "WHERE 句のない DML は、大量の偶発的なデータ損失を引き起こす可能性があります。提案エラー レベル: エラー",+ "title": "ステートメント内の「WHERE」条件の存在を強制する"+ },+ "SYSTEM_CHARSET_ALLOWLIST": {+ "component": {+ "list": {+ "title": "許可リスト"+ }+ },+ "description": "文字セットは、テーブルに格納できる文字を決定します。間違った文字セットを使用すると、アプリケーションの一部の文字が正しく格納および表示されない場合があります。CJKや絵文字などが該当します。提案エラーレベル:エラー",+ "title": "許可される文字セットのリスト"+ },+ "SYSTEM_COLLATION_ALLOWLIST": {+ "component": {+ "list": {+ "title": "許可リスト"+ }+ },+ "description": "照合は文字の比較とソートのルールを決定します。例えば、大文字小文字を区別しない照合を使用する場合、クエリ内では\"ABC\"と\"abc\"は同じ文字列として扱われます。推奨エラーレベル:エラー",+ "title": "許可可能な照合のリスト"+ },+ "SYSTEM_COMMENT_LENGTH": {+ "component": {+ "number": {+ "title": "最大コメント長"+ }+ },+ "description": "",+ "title": "コメントの長さを制限する"+ },+ "SYSTEM_EVENT_DISALLOW_CREATE": {+ "description": "このルールは、データベース内でのイベントの作成を禁止します。システム イベントは、多くの場合、データベース環境に影響を与える可能性のある自動タスクを実行します。イベントの作成を禁止することで、データベース操作の制御を維持し、潜在的な問題を防ぐことができます。推奨エラー レベル:警告",+ "title": "イベントの作成は許可されていません"+ },+ "SYSTEM_FUNCTION_DISALLOWED_LIST": {+ "component": {+ "list": {+ "title": "禁止リスト"+ }+ },+ "description": "このルールは、データベース内の特定の関数の使用を制限します。これらの関数の使用を禁止することで、データの一貫性とセキュリティを維持するのに役立ちます。推奨エラーレベル:警告",+ "title": "特定の関数の使用を禁止する"+ },+ "SYSTEM_FUNCTION_DISALLOW_CREATE": {+ "description": "このルールは、データベース内での関数の作成を禁止します。関数は再利用可能なロジックを提供し、クエリを簡素化し、データの整合性を向上させることができます。その作成を禁止することで、データベーススキーマの制御を維持し、潜在的なセキュリティリスクを防止します。推奨されるエラーレベル:警告",+ "title": "関数の作成を禁止する"+ },+ "SYSTEM_PROCEDURE_DISALLOW_CREATE": {+ "description": "システムプロシージャは、データベースのメタデータを変更するために使用されるため、誤って実行するとデータベースの整合性が失われる可能性があります。提案エラーレベル:警告",+ "title": "システムプロシージャの実行を禁止する"+ },+ "SYSTEM_VIEW_DISALLOW_CREATE": {+ "description": "このルールは、データベース内でのビューの作成を禁止します。ビューは、クエリを単純化し、データのセキュリティを向上させることができるデータの仮想表現を提供します。その作成を禁止することで、データベーススキーマの管理を維持し、潜在的なセキュリティリスクを防ぐのに役立ちます。推奨されるエラーレベル:警告",+ "title": "ビューの作成を禁止"+ },+ "TABLE_COMMENT": {+ "component": {+ "maxLength": {+ "title": "最大長"+ },+ "required": {+ "title": "コメントの必須化"+ }+ },+ "description": "テーブルにコメントが必要かどうか、および最大コメント長を設定します。",+ "title": "コメントの規約"+ },+ "TABLE_DISALLOW_DDL": {+ "component": {+ "list": {+ "title": "テーブル名"+ }+ },+ "description": "DDL の実行を禁止するテーブルを設定します。提案エラー レベル: 警告",+ "title": "DDL を禁止する"+ },+ "TABLE_DISALLOW_DML": {+ "component": {+ "list": {+ "title": "テーブル名"+ }+ },+ "description": "DML の実行を禁止するテーブルを設定します。提案エラー レベル: 警告",+ "title": "DML を禁止する"+ },+ "TABLE_DISALLOW_PARTITION": {+ "description": "一部のデータベースエンジンでは、パーティションテーブルは未熟であり、使用やメンテナンスが不便です。そのため、データベースやテーブルのシャーディングなどの手動のデータパーティショニング方法の使用がより好まれます。提案エラーレベル:警告",+ "title": "パーティションテーブルの使用を禁止する"+ },+ "TABLE_DISALLOW_SET_CHARSET": {+ "description": "データベースの文字セットは、データベースレベルで設定することを推奨します。より細かいレベルで文字セットを設定すると、不要な複雑さが生じる可能性があります。推奨されるエラーレベル: エラー。",+ "title": "テーブルプロパティでの文字セットの定義を禁止する"+ },+ "TABLE_DISALLOW_TRIGGER": {+ "description": "トリガはデータベースの複雑さを増加させ、データの整合性を保つための手段としては適切ではありません。代わりに、アプリケーションレイヤーでデータの整合性を保つことをお勧めします。提案エラーレベル:警告",+ "title": "テーブルにトリガの使用を禁止する"+ },+ "TABLE_DROP_NAMING_CONVENTION": {+ "component": {+ "format": {+ "title": "テーブル名の形式(正規表現)"+ }+ },+ "description": "例えば、「_del」の接尾辞を要求することで、誤って削除することを効果的に防ぐことができます。提案エラーレベル:エラー",+ "title": "削除するテーブルの命名形式を制限する"+ },+ "TABLE_LIMIT_SIZE": {+ "component": {+ "number": {+ "title": "最大行数"+ }+ },+ "description": "DDLが実行可能なテーブルの最大行数を設定します。推奨エラーレベル:警告",+ "title": "行数の多いテーブルに対するDDL操作を制限する"+ },+ "TABLE_NO_DUPLICATE_INDEX": {+ "description": "このルールは、テーブルに重複するインデックスがないことを要求します。重複するインデックスは余分なストレージスペースを消費し、クエリパフォーマンスを低下させる可能性があります。推奨されるエラーレベル:警告。",+ "title": "テーブル内の重複インデックスを禁止する"+ },+ "TABLE_NO_FOREIGN_KEY": {+ "description": "外部キーの利点と欠点は非常に議論が分かれています。外部キーの使用は、データベースの変更やスケーラビリティ(シャーディングなど)の難しさを大幅に増加させる可能性があります。また、一部のツールの使用を妨げることさえあります。そのため、別のオプションとして、アプリケーションレイヤーで外部キー制約を実装することがあります。提案エラーレベル:警告",+ "title": "外部キー制約の使用を禁止する"+ },+ "TABLE_REQUIRE_CHARSET": {+ "description": "テーブルの文字セットを指定する必要があります。提案エラーレベル: 警告",+ "title": "文字セットを要求する"+ },+ "TABLE_REQUIRE_COLLATION": {+ "description": "テーブルの照合順序を指定する必要があります。提案エラー レベル: 警告",+ "title": "照合を要求する"+ },+ "TABLE_REQUIRE_PK": {+ "description": "さまざまなデータ同期、比較、ロールバック ツールでは、テーブルに主キーが必要になることがよくあります。提案エラー レベル: エラー",+ "title": "テーブルに主キーの含まれることを強制する"+ },+ "TABLE_TEXT_FIELDS_TOTAL_LENGTH": {+ "component": {+ "number": {+ "title": "最大長さ"+ }+ },+ "description": "このルールは、テーブルが保持できるデータ量を制限し、過剰なストレージ使用を防ぎます。",+ "title": "テキスト入力欄の文字数を制限する"+ },"self": "SQLレビュールール"},- "title": "SQL Review"+ "select-all": "すべて選択",+ "select-review-rules": "SQL レビュールールを選択",+ "template": {+ "bb-sql-review-dev": "基本的なテンプレート",+ "bb-sql-review-dev-desc": "一般的な誤用からデータベースを守るための基本的なカバレッジ。",+ "bb-sql-review-empty": "ゼロから始めます",+ "bb-sql-review-empty-desc": "空のテンプレートです。必要なルールを自分で追加する必要があります。",+ "bb-sql-review-prod": "高度なテンプレート",+ "bb-sql-review-prod-desc": "データベースの総合的な保護とベストプラクティスを提供します。",+ "bb-sql-review-sample": "サンプルテンプレート",+ "bb-sql-review-sample-desc": "DROP保護とカラムのNULL許容を禁止した最小のテンプレート。"+ },+ "title": "SQL レビューポリシー"},"subscription": {"contact-us": "お問い合わせ",diff --git a/frontend/src/react/locales/vi-VN.json b/frontend/src/react/locales/vi-VN.jsonindex 4135f6bc2f..9cdd312a57 100644--- a/frontend/src/react/locales/vi-VN.json+++ b/frontend/src/react/locales/vi-VN.json@@ -304,10 +304,13 @@},"common.add": "Thêm","common.admin": "Quản trị viên",+ "common.all": "Tất cả","common.archive": "Lưu trữ","common.archived": "Đã lưu trữ","common.cancel": "Hủy","common.cannot-undo-this-action": "Bạn không thể hoàn tác hành động này.",+ "common.close": "Đóng",+ "common.confirm": "Xác nhận","common.continue-anyway": "Tiếp tục","common.create": "Tạo","common.creating": "Đang tạo...",@@ -329,6 +332,7 @@"common.minutes": "Phút","common.no-data": "Không có dữ liệu","common.optional": "Tùy chọn",+ "common.or": "hoặc","common.overview": "Tổng quan","common.password": "Mật khẩu","common.project": "Dự án",@@ -1839,43 +1843,758 @@"view-issue": "View Issue"},"sql-review": {- "add-or-remove-rules": "Add or remove rules",- "add-rules": "Add rules",+ "add-or-remove-rules": "Thêm hoặc xóa quy tắc",+ "add-rules": "Thêm quy tắc","attach-resource": {- "change-resources": "Change attached resources",- "label": "You can apply the SQL review policy to environments or projects. The database will use the project-level policy if it exists, or fallback to the environment-level policy.",- "no-linked-resources": "No attached resources",- "self": "Attach to resources"- },- "configure-policy": "Configure policy",+ "change-resources": "Thay đổi tài nguyên đính kèm",+ "label": "Bạn có thể áp dụng chính sách đánh giá SQL cho môi trường hoặc dự án. Cơ sở dữ liệu sẽ sử dụng chính sách cấp dự án nếu có, hoặc quay lại chính sách cấp môi trường.",+ "label-environment": "Chính sách đánh giá SQL sẽ ảnh hưởng đến tất cả cơ sở dữ liệu thuộc môi trường đã chọn.",+ "label-project": "Chính sách đánh giá SQL sẽ ảnh hưởng đến tất cả cơ sở dữ liệu thuộc dự án đã chọn. Điều này sẽ thay thế chính sách cấp môi trường của cơ sở dữ liệu.",+ "no-linked-resources": "Không có tài nguyên nào được đính kèm",+ "override-warning": "Các tài nguyên sau đã được liên kết với các chính sách đánh giá SQL khác. Nhấp vào \"{{button}}\" sẽ ghi đè cấu hình.",+ "self": "Đính kèm vào tài nguyên"+ },+ "category": {+ "advice": "Lời khuyên",+ "builtin": "Tích hợp sẵn",+ "column": "Cột",+ "database": "Cơ sở dữ liệu",+ "engine": "Engine",+ "index": "Chỉ mục",+ "naming": "Đặt tên",+ "schema": "Lược đồ",+ "statement": "Câu lệnh",+ "system": "Hệ thống",+ "table": "Bảng"+ },+ "configure-policy": "Định cấu hình chính sách","create": {"basic-info": {- "display-name": "Display name",- "display-name-default": "SQL review policy",- "display-name-label": "A display name to help identifying among different review policies.",- "name": "Basic info"+ "choose-template": "Chọn mẫu",+ "display-name": "Tên hiển thị",+ "display-name-default": "Chính sách đánh giá SQL",+ "display-name-label": "Tên hiển thị để giúp nhận dạng trong số các chính sách đánh giá khác nhau.",+ "name": "Thông tin cơ bản"},"configure-rule": {- "change-template": "Change the template",- "confirm-override-description": "Your rules will be overridden",- "name": "Configure rule"+ "change-template": "Thay đổi mẫu",+ "confirm-override-description": "Quy tắc của bạn sẽ bị ghi đè",+ "name": "Định cấu hình quy tắc"}},- "delete": "Delete SQL review policy",- "description": "SQL review policy can define different set of SQL lint rules for the respective environments. It helps teams to adopt SQL best practice and enforce schema consistency across different databases. Whenever you attempt a DDL/DML change or use SQL Editor to query data, the query will be checked against the configured SQL review policy.",- "disabled": "SQL review is disabled",- "enabled-rules": "Enabled rules",- "no-permission": "Only DBA or Admin has permission to create or update review policy.",- "policy-create-failed": "Failed to create the review policy.",- "policy-created": "Successfully created the review policy.",- "policy-removed": "Successfully removed the review policy.",- "policy-update-failed": "Failed to update the review policy.",- "policy-updated": "Successfully updated the review policy.",+ "delete": "Xóa chính sách đánh giá SQL",+ "description": "Chính sách đánh giá SQL có thể xác định các bộ quy tắc lint SQL khác nhau cho các môi trường tương ứng. Nó giúp các nhóm áp dụng thực tiễn tốt nhất về SQL và thực thi tính nhất quán của lược đồ trên các cơ sở dữ liệu khác nhau. Bất cứ khi nào bạn cố gắng thay đổi DDL/DML hoặc sử dụng Trình soạn thảo SQL để truy vấn dữ liệu, truy vấn sẽ được kiểm tra theo chính sách đánh giá SQL đã định cấu hình.",+ "disabled": "Đánh giá SQL bị vô hiệu hóa",+ "enabled-rules": "Quy tắc được bật",+ "engine": {+ "mariadb": "MariaDB",+ "mssql": "SQL Server",+ "mysql": "MySQL",+ "oceanbase": "OceanBase",+ "oracle": "Oracle",+ "postgres": "PostgreSQL",+ "snowflake": "Snowflake",+ "tidb": "TiDB"+ },+ "input-then-press-enter": "Nhập giá trị sau đó nhấn enter để thêm",+ "level": {+ "disabled": "Đã tắt",+ "error": "Lỗi",+ "name": "Cấp độ",+ "warning": "Cảnh báo"+ },+ "no-permission": "Chỉ DBA hoặc Quản trị viên mới có quyền tạo hoặc cập nhật chính sách đánh giá.",+ "policy-create-failed": "Không tạo được chính sách đánh giá.",+ "policy-created": "Đã tạo thành công chính sách đánh giá.",+ "policy-removed": "Đã xóa thành công chính sách đánh giá.",+ "policy-update-failed": "Không cập nhật được chính sách đánh giá.",+ "policy-updated": "Đã cập nhật thành công chính sách đánh giá.","review-policy": "Review policy","rule": {+ "ADVICE_ONLINE_MIGRATION": {+ "component": {+ "number": {+ "title": "Giá trị ngưỡng"+ }+ },+ "description": "Đề nghị bật di chuyển trực tuyến nếu số lượng hàng của bảng được di chuyển vượt quá cài đặt của bạn. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Di chuyển trực tuyến"+ },+ "BUILTIN_PRIOR_BACKUP_CHECK": {+ "description": "Quy tắc này kiểm tra xem có thể tạo bản sao lưu trước khi thay đổi dữ liệu hay không. Nó xác minh sự tồn tại của cơ sở dữ liệu đích sao lưu và không cho phép các kịch bản không được hỗ trợ. Nó được tích hợp sẵn và không thể bỏ qua.",+ "title": "Kiểm tra tính khả thi của sao lưu trước"+ },+ "BUILTIN_WALK_THROUGH_CHECK": {+ "description": "Xác thực các câu lệnh SQL với schema cơ sở dữ liệu hiện tại bằng cách mô phỏng việc thực thi. Phát hiện các vấn đề như tham chiếu đến bảng, cột hoặc chỉ mục không tồn tại.",+ "title": "Kiểm tra mô phỏng schema"+ },+ "COLUMN_AUTO_INCREMENT_INITIAL_VALUE": {+ "component": {+ "number": {+ "title": "Giá trị ban đầu"+ }+ },+ "description": "dựa trên các yêu cầu quản lý để giới hạn giá trị ban đầu của cột tự tăng. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Hạn chế giá trị ban đầu của cột tự tăng"+ },+ "COLUMN_AUTO_INCREMENT_MUST_INTEGER": {+ "description": "Cột tự tăng của MySQL thường được sử dụng làm khóa chính độc lập với nghiệp vụ. Sử dụng kiểu số nguyên chiếm ít không gian lưu trữ hơn và làm cho cấu trúc chỉ mục khóa chính gọn hơn, mang lại hiệu suất truy vấn và DML tốt hơn. Mức độ lỗi gợi ý: Lỗi",+ "title": "Bắt buộc sử dụng kiểu dữ liệu \"INTEGER\" cho các cột tự tăng"+ },+ "COLUMN_AUTO_INCREMENT_MUST_UNSIGNED": {+ "description": "Kiểu không dấu không lưu trữ số âm và phạm vi giá trị có thể được lưu trữ bởi cùng một kiểu được nhân đôi, có thể tránh tràn cột tự tăng. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Bắt buộc sử dụng kiểu dữ liệu \"UNSIGNED\" cho các cột tự tăng"+ },+ "COLUMN_COMMENT": {+ "component": {+ "maxLength": {+ "title": "Độ dài tối đa"+ },+ "required": {+ "title": "Yêu cầu bình luận"+ }+ },+ "description": "Thêm bình luận vào cột là một phương pháp phát triển tốt, nhưng bình luận quá dài có thể làm giảm khả năng đọc của lược đồ. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Quy ước bình luận cột"+ },+ "COLUMN_CURRENT_TIME_COUNT_LIMIT": {+ "description": "Chỉ các cột ghi lại thời gian tạo bản ghi với \"DEFAULT NOW()\" và ghi lại thời gian cập nhật bản ghi với \"DEFAULT NOW() ON UPDATE\" cần gọi hàm để lấy thời gian hệ thống. Việc ghi lại thời gian hệ thống trong các cột khác là vô nghĩa và sẽ làm tăng chi phí tài nguyên. Mức độ lỗi gợi ý: Lỗi",+ "title": "Hạn chế số lượng cột trong bảng lấy thời gian hệ thống"+ },+ "COLUMN_DEFAULT_DISALLOW_VOLATILE": {+ "description": "Các hàm không ổn định (ví dụ: clock_timestamp()) cập nhật từng hàng với giá trị tại thời điểm thực hiện ALTER TABLE ADD COLUMN, có khả năng gây ra các bản cập nhật kéo dài.",+ "title": "Không cho phép đặt giá trị mặc định không ổn định trên các cột"+ },+ "COLUMN_DISALLOW_CHANGE": {+ "description": "\"CHANGE COLUMN\" là cú pháp riêng của MySQL và có thể được sử dụng để sửa đổi tên cột và các thuộc tính khác cùng một lúc. Tuy nhiên, nó có thể khiến tên cột bị thay đổi nhầm khi sửa đổi thuộc tính. Khuyến nghị vẫn sử dụng các câu lệnh \"RENAME\" và \"MODIFY\" tiêu chuẩn để phân biệt giữa hai loại thay đổi. Mức độ lỗi gợi ý: Lỗi",+ "title": "Cấm sử dụng câu lệnh \"CHANGE COLUMN\""+ },+ "COLUMN_DISALLOW_CHANGE_TYPE": {+ "description": "Sửa đổi loại cột có thể ảnh hưởng đến hiệu suất hệ thống, khả năng bảo trì và thậm chí dẫn đến mất dữ liệu. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Cấm sửa đổi loại cột"+ },+ "COLUMN_DISALLOW_CHANGING_ORDER": {+ "description": "Sửa đổi thứ tự của các cột có thể làm cho một số ứng dụng hoặc khung nhìn phụ thuộc vào thứ tự mặc định của bảng gốc tạo ra các kết quả không mong muốn, chẳng hạn như \"select *\". Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Cấm thay đổi thứ tự của các cột trong bảng"+ },+ "COLUMN_DISALLOW_DROP": {+ "description": "Cấm xóa cột. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Cấm xóa cột"+ },+ "COLUMN_DISALLOW_DROP_IN_INDEX": {+ "description": "Cấm xóa cột trong chỉ mục. Mức độ lỗi gợi ý: Lỗi",+ "title": "Cấm xóa cột trong chỉ mục"+ },+ "COLUMN_DISALLOW_SET_CHARSET": {+ "description": "Khuyến nghị nên đặt charset ở cấp cơ sở dữ liệu hoặc cấp bảng. Đặt charset ở mức độ chi tiết hơn có thể mang lại những phức tạp không cần thiết. Mức độ lỗi gợi ý: Lỗi.",+ "title": "Cấm xác định bộ ký tự trong thuộc tính cột"+ },+ "COLUMN_MAXIMUM_CHARACTER_LENGTH": {+ "component": {+ "number": {+ "title": "Độ dài tối đa"+ }+ },+ "description": "\"CHAR\" là một loại có độ dài cố định. Ví dụ: cột CHAR(20) sẽ chiếm 20 khoảng trống ký tự ngay cả khi chỉ có một ký tự được lưu trữ, gây lãng phí. Khi chuỗi quá dài và độ dài không cố định, hãy xem xét sử dụng VARCHAR cho MySQL và sử dụng TEXT cho PostgreSQL. Mức độ lỗi gợi ý: Lỗi",+ "title": "Hạn chế độ dài của kiểu dữ liệu \"CHAR\""+ },+ "COLUMN_MAXIMUM_VARCHAR_LENGTH": {+ "component": {+ "number": {+ "title": "Độ dài tối đa"+ }+ },+ "description": "",+ "title": "Hạn chế độ dài của kiểu dữ liệu \"VARCHAR\""+ },+ "COLUMN_NO_NULL": {+ "description": "Cột không được phép có giá trị NULL.",+ "title": "Bắt buộc ràng buộc \"NOT NULL\" trên các cột"+ },+ "COLUMN_REQUIRED": {+ "component": {+ "list": {+ "title": "Tên cột bắt buộc"+ }+ },+ "description": "Một số cột chung rất hữu ích cho việc bảo trì ứng dụng tốt hơn. Ví dụ: thêm cột \"ID\" độc lập với nghiệp vụ làm khóa chính tránh được xung đột khóa chính do thay đổi nghiệp vụ (chẳng hạn như sáp nhập nghiệp vụ) và trong một số trường hợp cũng có thể mang lại hiệu suất chèn dữ liệu tốt hơn. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Bắt buộc bao gồm các cột cụ thể trong bảng"+ },+ "COLUMN_REQUIRE_CHARSET": {+ "description": "Charset của các cột có kiểu dữ liệu text phải được chỉ định. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Yêu cầu charset cho cột kiểu text"+ },+ "COLUMN_REQUIRE_COLLATION": {+ "description": "Đối chiếu của các cột có kiểu dữ liệu text phải được chỉ định. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Yêu cầu đối chiếu (collation) cho các cột kiểu text"+ },+ "COLUMN_REQUIRE_DEFAULT": {+ "description": "Đặt giá trị mặc định thỏa mãn logic nghiệp vụ có thể cải thiện hiệu quả chất lượng dữ liệu của quy trình phân tích xuôi dòng. Quy tắc này không kiểm tra các loại \"PRIMARY KEY\", \"JSON\", \"BLOB\", \"TEXT\", \"GEOMETRY\", \"AUTO_INCREMENT\", \"GENERATED\". Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Bắt buộc đặt giá trị mặc định trên các cột"+ },+ "COLUMN_SET_DEFAULT_FOR_NOT_NULL": {+ "description": "Đối với cột 'NOT NULL', nếu giá trị không được gán cho cột khi chèn một hàng mới và cột không có giá trị mặc định, cơ sở dữ liệu sẽ từ chối việc chèn hàng đó. Đặt giá trị mặc định cho một cột mới cũng có thể đảm bảo khả năng tương thích với ứng dụng cũ. Mức độ lỗi gợi ý: Lỗi",+ "title": "Bắt buộc giá trị mặc định trên cột \"NOT NULL\""+ },+ "COLUMN_TYPE_DISALLOW_LIST": {+ "component": {+ "list": {+ "title": "Danh sách không cho phép"+ }+ },+ "description": "Lạm dụng các loại cột có thể có tác động tiêu cực nghiêm trọng đến khả năng bảo trì và hiệu suất của hệ thống. Ví dụ: sử dụng cột \"LOB\" để lưu trữ một lượng lớn dữ liệu âm thanh và video có thể khiến hiệu suất cơ sở dữ liệu giảm, thời gian sao lưu và phục hồi kéo dài và các công cụ đồng bộ hóa dữ liệu không tương thích. Mức độ lỗi gợi ý: Lỗi",+ "title": "Cấm sử dụng một số loại dữ liệu cột nhất định"+ },+ "DATABASE_DROP_EMPTY_DATABASE": {+ "description": "Chỉ được phép xóa khi không có bảng nào trong cơ sở dữ liệu, điều này có thể tránh được việc xóa do nhầm lẫn. Mức độ lỗi gợi ý: Lỗi",+ "title": "Cấm xóa cơ sở dữ liệu không trống"+ },+ "ENGINE_MYSQL_USE_INNODB": {+ "description": "InnoDB là engine lưu trữ mặc định cho MySQL, cung cấp hỗ trợ giao dịch. Nó cũng cung cấp hiệu suất tốt hơn cho các tình huống có tính đồng thời cao và độ trễ thấp, đồng thời hỗ trợ sao lưu và phục hồi dữ liệu trực tuyến. Đây là lựa chọn ưu tiên cho các doanh nghiệp OLTP. Mức độ lỗi gợi ý: Lỗi",+ "title": "Bắt buộc sử dụng engine lưu trữ InnoDB"+ },+ "INDEX_CREATE_CONCURRENTLY": {+ "description": "Trong PostgreSQL 11 trở lên, sử dụng câu lệnh tiêu chuẩn để tạo chỉ mục sẽ gây ra khóa bảng và không thể ghi. Sử dụng chế độ \"CONCURRENTLY\" có thể tránh được vấn đề này. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Bắt buộc tạo chỉ mục đồng thời"+ },+ "INDEX_KEY_NUMBER_LIMIT": {+ "component": {+ "number": {+ "title": "Số lượng cột tối đa"+ }+ },+ "description": "Một chỉ mục tổng hợp có hơn 5 cột không cải thiện đáng kể hiệu suất truy vấn, nhưng nó chiếm rất nhiều không gian và làm giảm hiệu suất DML. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Hạn chế số lượng cột trong một chỉ mục duy nhất"+ },+ "INDEX_NOT_REDUNDANT": {+ "description": "Chỉ mục dư thừa có thể dẫn đến mất hiệu suất và chiếm thêm dung lượng. Ví dụ: chỉ mục trên các cột (c1, c2) sẽ được coi là chỉ mục dư thừa nếu đã có chỉ mục trên cột (c1). Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Không cho phép chỉ mục dư thừa"+ },+ "INDEX_NO_DUPLICATE_COLUMN": {+ "description": "Tạo một chỉ mục với các cột trùng lặp sẽ dẫn đến lỗi. Mức độ lỗi gợi ý: Lỗi",+ "title": "Cấm chỉ mục chứa các cột trùng lặp"+ },+ "INDEX_PK_TYPE_LIMIT": {+ "description": "Bắt buộc loại khóa chính là INT hoặc BIGINT.",+ "title": "Giới hạn loại khóa chính"+ },+ "INDEX_PRIMARY_KEY_TYPE_ALLOWLIST": {+ "component": {+ "list": {+ "title": "Danh sách cho phép"+ }+ },+ "description": "Loại khóa chính thích hợp có thể tối ưu hóa cấu trúc lưu trữ, giảm mức sử dụng không gian và có lợi cho hiệu suất chèn và truy vấn. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Danh sách loại khóa chính được phép"+ },+ "INDEX_TOTAL_NUMBER_LIMIT": {+ "component": {+ "number": {+ "title": "Số lượng chỉ mục tối đa"+ }+ },+ "description": "Mặc dù các chỉ mục có thể cải thiện hiệu suất truy vấn, chúng cũng chiếm rất nhiều không gian và làm giảm hiệu suất DML. Do đó, không nên tạo quá 5 chỉ mục trong một bảng. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Hạn chế số lượng chỉ mục trên một bảng duy nhất"+ },+ "INDEX_TYPE_ALLOW_LIST": {+ "component": {+ "list": {+ "title": "Danh sách cho phép"+ }+ },+ "description": "Các loại chỉ mục khác nhau có các đặc điểm hiệu suất khác nhau. Ví dụ: chỉ mục B-tree phù hợp cho các truy vấn phạm vi, trong khi chỉ mục băm phù hợp cho các truy vấn bằng. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Danh sách loại chỉ mục được phép"+ },+ "INDEX_TYPE_NO_BLOB": {+ "description": "Loại \"BLOB\" thường được sử dụng để lưu trữ dữ liệu nhị phân và không nên được sử dụng làm điều kiện truy vấn. Nếu một chỉ mục được tạo trên loại cột này do nhầm lẫn, nó sẽ tiêu tốn rất nhiều tài nguyên và gây ra tác động nghiêm trọng đến hiệu suất. Mức độ lỗi gợi ý: Lỗi",+ "title": "Cấm tạo chỉ mục trên các cột loại \"BLOB\" và \"TEXT\""+ },+ "NAMING_COLUMN": {+ "component": {+ "format": {+ "title": "Định dạng tên cột (biểu thức chính quy)"+ },+ "maxLength": {+ "title": "Giới hạn độ dài"+ }+ },+ "description": "Định dạng mặc định là tất cả các chữ cái viết thường, được phân tách bằng dấu gạch dưới giữa các từ, không quá 63 ký tự, chẳng hạn như \"abc\" và \"abc_def\". Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Bắt buộc định dạng đặt tên cột"+ },+ "NAMING_COLUMN_AUTO_INCREMENT": {+ "component": {+ "format": {+ "title": "Định dạng tên cột tự tăng (biểu thức chính quy)"+ },+ "maxLength": {+ "title": "Giới hạn độ dài"+ }+ },+ "description": "Tên cột mặc định là \"ID\" và không quá 63 ký tự.",+ "title": " Bắt buộc định dạng đặt tên cột tự tăng"+ },+ "NAMING_FULLY_QUALIFIED": {+ "description": "Bắt buộc sử dụng tên đối tượng đủ điều kiện. Ví dụ: “schema.table”, mức độ lỗi gợi ý: Cảnh báo",+ "title": "Tên đối tượng đủ điều kiện"+ },+ "NAMING_IDENTIFIER_CASE": {+ "component": {+ "upper": {+ "title": "Chữ hoa"+ }+ },+ "description": "",+ "title": "Bắt buộc kiểu chữ của định danh"+ },+ "NAMING_IDENTIFIER_NO_KEYWORD": {+ "description": "",+ "title": "Cấm sử dụng từ khóa làm định danh"+ },+ "NAMING_INDEX_FK": {+ "component": {+ "format": {+ "template": {+ "referenced_column": "Tên cột được tham chiếu",+ "referenced_table": "Tên bảng được tham chiếu",+ "referencing_column": "Tên cột tham chiếu",+ "referencing_table": "Tên bảng tham chiếu"+ },+ "title": "Định dạng tên khóa ngoại"+ },+ "maxLength": {+ "title": "Giới hạn độ dài"+ }+ },+ "description": "Tên được phép để trống và được đặt tên bởi cơ sở dữ liệu. Nếu không để trống, định dạng mặc định là \"fk_<tên bảng>_<tổ hợp tên cột khóa duy nhất>\", không quá 63 ký tự, chẳng hạn như \"fk_my_table_id_name\". Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Bắt buộc định dạng đặt tên khóa ngoại"+ },+ "NAMING_INDEX_IDX": {+ "component": {+ "format": {+ "template": {+ "column_list": "Tên cột chỉ mục, được nối bằng dấu gạch dưới (_)",+ "table": "Tên bảng"+ },+ "title": "Định dạng tên chỉ mục"+ },+ "maxLength": {+ "title": "Giới hạn độ dài"+ }+ },+ "description": "Tên được phép để trống và được đặt tên bởi cơ sở dữ liệu. Nếu không để trống, định dạng mặc định là \"idx_<tên bảng>_<tổ hợp tên cột khóa duy nhất>\", không quá 63 ký tự, chẳng hạn như \"idx_my_table_id_name\". Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Bắt buộc định dạng đặt tên chỉ mục"+ },+ "NAMING_INDEX_PK": {+ "component": {+ "format": {+ "template": {+ "column_list": "Tên cột chỉ mục, được nối bằng dấu gạch dưới (_)",+ "table": "Tên bảng"+ },+ "title": "Định dạng tên khóa chính"+ },+ "maxLength": {+ "title": "Giới hạn độ dài"+ }+ },+ "description": "Tên được phép để trống và được đặt tên bởi cơ sở dữ liệu. Nếu không để trống, định dạng mặc định là \"pk_<tên bảng>_<tổ hợp tên cột khóa duy nhất>\", không quá 63 ký tự, chẳng hạn như \"pk_my_table_id_name\". Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Bắt buộc định dạng đặt tên khóa chính"+ },+ "NAMING_INDEX_UK": {+ "component": {+ "format": {+ "template": {+ "column_list": "Tên cột chỉ mục, được nối bằng dấu gạch dưới (_)",+ "table": "Tên bảng"+ },+ "title": "Định dạng tên khóa duy nhất"+ },+ "maxLength": {+ "title": "Giới hạn độ dài"+ }+ },+ "description": "Tên được phép để trống và được đặt tên bởi cơ sở dữ liệu. Nếu không để trống, định dạng mặc định là \"uk_<tên bảng>_<tổ hợp tên cột khóa duy nhất>\", không quá 63 ký tự, chẳng hạn như \"uk_my_table_id_name\". Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Bắt buộc định dạng đặt tên khóa duy nhất"+ },+ "NAMING_TABLE": {+ "component": {+ "format": {+ "title": "Định dạng tên bảng (biểu thức chính quy)"+ },+ "maxLength": {+ "title": "Giới hạn độ dài"+ }+ },+ "description": "Định dạng mặc định là tất cả các chữ cái viết thường, được phân tách bằng dấu gạch dưới giữa các từ và không quá 63 ký tự, chẳng hạn như \"abc\" và \"abc_def\". Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Bắt buộc định dạng đặt tên bảng"+ },+ "NAMING_TABLE_NO_KEYWORD": {+ "description": "",+ "title": "Cấm sử dụng từ khóa làm tên bảng"+ },+ "SCHEMA_BACKWARD_COMPATIBILITY": {+ "description": "Một số thay đổi có thể ảnh hưởng đến các ứng dụng đang chạy, chẳng hạn như sửa đổi tên của đối tượng cơ sở dữ liệu, thêm ràng buộc mới, v.v. Quy tắc này có thể tránh những thay đổi bất cẩn dẫn đến lỗi ứng dụng hiện có. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Kiểm tra khả năng tương thích ngược của ứng dụng"+ },+ "STATEMENT_ADD_CHECK_NOT_VALID": {+ "description": "Thêm ràng buộc CHECK cần xác minh dữ liệu hiện có và yêu cầu khóa bảng ACCESS EXCLUSIVE. Điều này chặn đọc và ghi, có thể gây gián đoạn kinh doanh. Bạn nên thêm tùy chọn \"NOT VALID\" để xác thực dữ liệu mới và xác thực thủ công dữ liệu hiện có sau khi thay đổi hoàn tất. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Bắt buộc bao gồm tùy chọn \"NOT VALID\" khi thêm ràng buộc \"CHECK\""+ },+ "STATEMENT_ADD_COLUMN_WITHOUT_POSITION": {+ "description": "Trong một số trường hợp, sử dụng FIRST/AFTER để thêm cột sẽ gây ra việc tổ chức lại dữ liệu (ghi lại tất cả dữ liệu). Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Kiểm tra không có vị trí trong mệnh đề ADD COLUMN"+ },+ "STATEMENT_ADD_FOREIGN_KEY_NOT_VALID": {+ "description": "Thêm khóa ngoại cần xác minh dữ liệu hiện có và yêu cầu khóa bảng SHARE ROW EXCLUSIVE. Điều này chặn ghi, có thể gây gián đoạn kinh doanh. Bạn nên thêm tùy chọn \"NOT VALID\" để xác thực dữ liệu mới và xác thực thủ công dữ liệu hiện có sau khi thay đổi hoàn tất. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Bắt buộc bao gồm tùy chọn \"NOT VALID\" khi thêm khóa ngoại"+ },+ "STATEMENT_AFFECTED_ROW_LIMIT": {+ "component": {+ "number": {+ "title": "Số hàng bị ảnh hưởng tối đa"+ }+ },+ "description": "Tiết lộ số lượng hàng sẽ được cập nhật hoặc xóa có thể giúp xác định xem câu lệnh có đáp ứng mong đợi của doanh nghiệp hay không. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Hạn chế số lượng hàng được cập nhật hoặc xóa tối đa (ước tính)."+ },+ "STATEMENT_CHECK_SET_ROLE_VARIABLE": {+ "description": "Không đặt đúng câu lệnh vai trò ở đầu phiên có thể dẫn đến truy cập trái phép hoặc gán quyền không phù hợp, có khả năng ảnh hưởng đến bảo mật và tính toàn vẹn dữ liệu. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Kiểm tra xem câu lệnh Set Role ở đầu"+ },+ "STATEMENT_CREATE_SPECIFY_SCHEMA": {+ "description": "Nếu lược đồ không được chỉ định, đối tượng sẽ được tạo trong lược đồ mặc định, điều này có thể gây ra kết quả không mong muốn.",+ "title": "Cấm tạo đối tượng mà không chỉ định lược đồ"+ },+ "STATEMENT_DISALLOW_ADD_COLUMN_WITH_DEFAULT": {+ "description": "Trước PostgreSQL 11, việc thêm một cột có giá trị mặc định gây ra khóa bảng và không thể đọc và ghi, điều này có thể gây gián đoạn kinh doanh. Trong PostgreSQL 11 trở lên, vấn đề này đã được tối ưu hóa và không cần phải chú ý đến quy tắc này. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Hạn chế thêm cột có giá trị mặc định vào bảng"+ },+ "STATEMENT_DISALLOW_ADD_NOT_NULL": {+ "description": "Thêm ràng buộc NOT NULL với giá trị mặc định trước PostgreSQL 11 hoặc thêm ràng buộc NOT NULL mà không có giá trị mặc định yêu cầu xác minh dữ liệu hiện có. Điều này chặn đọc và ghi, có thể gây gián đoạn kinh doanh. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Hạn chế thêm ràng buộc \"NOT NULL\" vào các cột hiện có"+ },+ "STATEMENT_DISALLOW_COMMIT": {+ "description": "Trong một số trường hợp, nhiều câu lệnh được yêu cầu phải được đưa vào một giao dịch do hệ thống cam kết, để nhanh chóng chạy lại trong trường hợp lỗi một phần. Do đó, \"COMMIT\" rõ ràng không được phép. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Cấm câu lệnh \"COMMIT\" rõ ràng"+ },+ "STATEMENT_DISALLOW_CROSS_DB_QUERIES": {+ "description": "Truy vấn chéo cơ sở dữ liệu làm tăng sự kết hợp hệ thống và có thể dẫn đến các vấn đề về hiệu quả. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Không cho phép truy vấn chéo cơ sở dữ liệu"+ },+ "STATEMENT_DISALLOW_LIMIT": {+ "description": "Nếu LIMIT được sử dụng trong câu lệnh DML mà không có mệnh đề ORDER BY, thứ tự các hàng bị ảnh hưởng không cố định, điều này có thể gây ra sự không nhất quán dữ liệu giữa cơ sở dữ liệu chính và cơ sở dữ liệu sao chép trong một số chế độ sao chép. Mức độ lỗi gợi ý: Lỗi",+ "title": "Cấm sử dụng mệnh đề \"LIMIT\" trong câu lệnh DML"+ },+ "STATEMENT_DISALLOW_OFFLINE_DDL": {+ "description": "Để ngăn các thay đổi cơ sở dữ liệu ảnh hưởng đến doanh nghiệp của bạn, hãy tránh sử dụng DDL ngoại tuyến.",+ "title": "Không cho phép DDL ngoại tuyến"+ },+ "STATEMENT_DISALLOW_ON_DEL_CASCADE": {+ "description": "Tùy chọn \"CASCADE\" trong 'ON DELETE' có thể khiến một số lượng lớn các đối tượng phụ thuộc bị xóa hoặc sửa đổi, điều này có thể gây ra kết quả không mong muốn. Mức độ lỗi gợi ý: Lỗi",+ "title": "Cấm sử dụng tùy chọn CASCADE cho mệnh đề ON DELETE"+ },+ "STATEMENT_DISALLOW_ORDER_BY": {+ "description": "Các hoạt động sắp xếp cực kỳ tốn tài nguyên, vì vậy đối với các hoạt động cập nhật và xóa, bạn nên sử dụng một điều kiện lọc xác định càng nhiều càng tốt thay vì sử dụng ORDER BY và LIMIT. Mức độ lỗi gợi ý: Lỗi",+ "title": "Cấm sử dụng mệnh đề \"ORDER BY\" trong câu lệnh \"UPDATE\" và \"DELETE\""+ },+ "STATEMENT_DISALLOW_RM_TBL_CASCADE": {+ "description": "Sử dụng tùy chọn \"CASCADE\" khi xóa bảng có thể khiến một số lượng lớn các đối tượng phụ thuộc bị xóa hoặc sửa đổi, điều này có thể gây ra kết quả không mong muốn. Mức độ lỗi gợi ý: Lỗi",+ "title": "Cấm sử dụng CASCADE khi xóa bảng"+ },+ "STATEMENT_DISALLOW_USING_FILESORT": {+ "description": "Filesort là một hoạt động tốn nhiều tài nguyên và có thể gây ra tác động nghiêm trọng đến hiệu suất. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Cấm sử dụng filesort"+ },+ "STATEMENT_DISALLOW_USING_TEMPORARY": {+ "description": "Bảng tạm không được khuyến nghị sử dụng trong môi trường sản xuất. Chúng có thể gây ra tranh chấp tài nguyên và các vấn đề hiệu suất. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Cấm sử dụng bảng tạm"+ },+ "STATEMENT_DML_DRY_RUN": {+ "description": "Khi cú pháp chính xác, nhưng tên bảng không chính xác hoặc không đủ quyền, nó có thể được phát hiện bằng cách chạy thử trước khi thực hiện thực tế. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Xác thực khả năng thực thi của câu lệnh DML"+ },+ "STATEMENT_INSERT_DISALLOW_ORDER_BY_RAND": {+ "description": "Sắp xếp ngẫu nhiên dữ liệu sẽ được chèn là vô nghĩa và sẽ chỉ tiêu tốn tài nguyên không cần thiết. Mức độ lỗi gợi ý: Lỗi",+ "title": "Cấm sử dụng \"ORDER BY rand()\" trong câu lệnh \"INSERT\""+ },+ "STATEMENT_INSERT_MUST_SPECIFY_COLUMN": {+ "description": "Câu lệnh \"INSERT INTO table VALUES (...)\" không liệt kê rõ ràng tên cột. Khi thứ tự cột thay đổi hoặc cột được thêm hoặc bớt, câu lệnh có thể thất bại hoặc tạo ra dữ liệu không mong muốn. Mức độ lỗi gợi ý: Lỗi",+ "title": "Bắt buộc chỉ định tên cột trong câu lệnh \"INSERT\""+ },+ "STATEMENT_INSERT_ROW_LIMIT": {+ "component": {+ "number": {+ "title": "Số lượng chèn tối đa"+ }+ },+ "description": "Tiết lộ số lượng hàng sẽ được chèn có thể giúp xác định xem câu lệnh có đáp ứng mong đợi của doanh nghiệp hay không. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Hạn chế số lượng hàng được chèn tối đa"+ },+ "STATEMENT_JOIN_STRICT_COLUMN_ATTRS": {+ "description": "Nếu kiểu dữ liệu, bộ ký tự của các cột nối không giống hệt nhau, cơ sở dữ liệu có thể không xác định chính xác các hàng phù hợp, dẫn đến kết quả không chính xác hoặc không đầy đủ.",+ "title": "Các trường được nối phải có kiểu dữ liệu, bộ ký tự giống hệt nhau"+ },+ "STATEMENT_MAXIMUM_JOIN_TABLE_COUNT": {+ "component": {+ "number": {+ "title": "Giá trị tối đa"+ }+ },+ "description": "Bạn càng nối nhiều bảng, truy vấn càng trở nên phức tạp và thời gian thực hiện càng lâu. Nói chung, tốt nhất là giữ số lượng phép nối ở mức tối thiểu.",+ "title": "Hạn chế số lượng bảng được nối"+ },+ "STATEMENT_MAXIMUM_LIMIT_VALUE": {+ "component": {+ "number": {+ "title": "Giá trị tối đa"+ }+ },+ "description": "Giới hạn số lượng hàng thông qua LIMIT đảm bảo cơ sở dữ liệu xử lý các phần có thể quản lý được, cải thiện tốc độ thực hiện truy vấn. Giá trị LIMIT được giới hạn ngăn chặn việc sử dụng bộ nhớ quá mức, bảo vệ sự ổn định tổng thể của hệ thống và ngăn chặn sự suy giảm hiệu suất.",+ "title": "Hạn chế số lượng tối đa của mệnh đề LIMIT"+ },+ "STATEMENT_MAXIMUM_STATEMENTS_IN_TRANSACTION": {+ "component": {+ "number": {+ "title": "Giá trị tối đa"+ }+ },+ "description": "Các giao dịch lớn có thể ảnh hưởng đáng kể đến hiệu suất cơ sở dữ liệu. Nếu một số lượng lớn các câu lệnh có liên quan và một câu lệnh thất bại, việc khôi phục toàn bộ giao dịch trở nên phức tạp. Giới hạn số lượng câu lệnh giảm thiểu thiệt hại tiềm ẩn do một lỗi duy nhất gây ra và đơn giản hóa các quy trình khôi phục.",+ "title": "Hạn chế số lượng câu lệnh trong một giao dịch"+ },+ "STATEMENT_MAX_EXECUTION_TIME": {+ "description": "Đặt thời gian thực hiện tối đa cho các câu lệnh SQL. Nếu thời gian thực hiện vượt quá giới hạn, câu lệnh sẽ bị chấm dứt. Mức độ lỗi gợi ý: Cảnh báo",+ "mariadb": {+ "description": "Đặt tham số MAX_STATEMENT_TIME trong tập lệnh thay đổi để kiểm soát rõ ràng thời gian thực hiện tối đa của câu lệnh. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Bắt buộc đặt tham số MAX_STATEMENT_TIME một cách rõ ràng"+ },+ "mysql": {+ "description": "Đặt tham số MAX_EXECUTION_TIME trong tập lệnh thay đổi để kiểm soát rõ ràng thời gian thực hiện tối đa của câu lệnh. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Bắt buộc đặt tham số MAX_EXECUTION_TIME một cách rõ ràng"+ },+ "title": "Bắt buộc đặt tham số thời gian thực hiện tối đa"+ },+ "STATEMENT_MERGE_ALTER_TABLE": {+ "description": "Mỗi thay đổi đối với một bảng có thể gây ra khóa cấp bảng và tiêu tốn một lượng lớn tài nguyên. Nếu có nhiều thay đổi đối với cùng một bảng, chúng nên được hợp nhất thành một câu lệnh thay đổi duy nhất. Mức độ lỗi gợi ý: Lỗi",+ "title": "Cấm phát hành nhiều thay đổi độc lập trên cùng một bảng"+ },+ "STATEMENT_NON_TRANSACTIONAL": {+ "description": "",+ "title": "Phát hiện và báo cáo các câu lệnh không giao dịch"+ },+ "STATEMENT_OBJECT_OWNER_CHECK": {+ "description": "Quy tắc này kiểm tra xem chủ sở hữu đối tượng cho DDL có giống với người dùng hiện tại không.",+ "title": "Kiểm tra chủ sở hữu đối tượng"+ },+ "STATEMENT_QUERY_MINIMUM_PLAN_LEVEL": {+ "component": {+ "level": {+ "title": "Mức tối đa"+ }+ },+ "description": "Tối ưu hóa hiệu suất SQL cố gắng truy cập không đổi (const), nhắm mục tiêu mức tham chiếu (ref) làm đường cơ sở, với hiệu suất chấp nhận được ở mức phạm vi.",+ "title": "Hạn chế mức tối đa của phương thức truy cập truy vấn"+ },+ "STATEMENT_REQUIRE_ALGORITHM_OPTION": {+ "description": "Chỉ định tùy chọn ALGORITHM trong câu lệnh ALTER TABLE đảm bảo kiểm soát nhiều hơn về cách áp dụng các thay đổi bảng, giảm thiểu các gián đoạn tiềm ẩn bằng cách tránh sao chép hoặc khóa toàn bộ bảng. Nó giúp tối ưu hóa hiệu suất và giảm thời gian chết trong quá trình sửa đổi lược đồ. Mức độ lỗi đề xuất: Cảnh báo.",+ "title": "Yêu cầu chỉ định tùy chọn ALGORITHM trong câu lệnh ALTER TABLE"+ },+ "STATEMENT_REQUIRE_LOCK_OPTION": {+ "description": "Tùy chọn LOCK trong câu lệnh ALTER TABLE cho phép bạn kiểm soát mức độ khóa trong quá trình thay đổi lược đồ, giúp ngăn chặn khóa bảng không cần thiết và đảm bảo tính đồng thời tốt hơn. Sử dụng tùy chọn này đúng cách có thể giảm đáng kể tác động của các hoạt động DDL đối với các truy vấn đang hoạt động. Mức độ lỗi đề xuất: Cảnh báo.",+ "title": "Yêu cầu chỉ định tùy chọn LOCK trong câu lệnh ALTER TABLE"+ },+ "STATEMENT_SELECT_FULL_TABLE_SCAN": {+ "description": "Quét toàn bộ bảng là một hoạt động tốn nhiều tài nguyên và có thể gây ra tác động nghiêm trọng đến hiệu suất. Mức độ lỗi gợi ý: Lỗi",+ "title": "Kiểm tra quét toàn bộ bảng cho các truy vấn"+ },+ "STATEMENT_SELECT_NO_SELECT_ALL": {+ "description": "SELECT * để tìm nạp toàn bộ dữ liệu hàng có thể gây ra chi phí tài nguyên không cần thiết và cũng có thể gây ra kết quả không mong muốn trong các ứng dụng khi bảng thêm hoặc xóa cột. Mức độ lỗi gợi ý: Lỗi",+ "title": "Cấm sử dụng \"SELECT *\""+ },+ "STATEMENT_WHERE_DISALLOW_FUNCTIONS_AND_CALCULATIONS": {+ "description": "Nếu bạn áp dụng một hàm hoặc thực hiện một phép tính trên trường được lập chỉ mục, cơ sở dữ liệu không thể sử dụng chỉ mục và phải quét toàn bộ bảng thay thế.",+ "title": "Không áp dụng hàm hoặc thực hiện tính toán trên các trường được lập chỉ mục trong mệnh đề WHERE"+ },+ "STATEMENT_WHERE_MAXIMUM_LOGICAL_OPERATOR_COUNT": {+ "component": {+ "number": {+ "title": "Số lượng tối đa"+ }+ },+ "description": "Điều này ngăn chặn sự suy giảm hiệu suất do so sánh quá nhiều và giới hạn tài nguyên.",+ "title": "Hạn chế số lượng toán tử logic trong mệnh đề WHERE"+ },+ "STATEMENT_WHERE_NO_EQUAL_NULL": {+ "description": "Kết quả của so sánh bằng NULL luôn là NULL, điều này có thể gây ra kết quả không mong muốn. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Cấm sử dụng so sánh bằng NULL trong mệnh đề WHERE"+ },+ "STATEMENT_WHERE_NO_LEADING_WILDCARD_LIKE": {+ "description": "Khi sử dụng ký tự đại diện đứng đầu, chẳng hạn như \"LIKE '%ABC'\", trình tối ưu hóa cơ sở dữ liệu không thể sử dụng quét chỉ mục nhanh và quay trở lại quét toàn bộ bảng hoặc quét toàn bộ chỉ mục, điều này có thể gây ra tác động nghiêm trọng đến hiệu suất. Mức độ lỗi gợi ý: Lỗi",+ "title": "Cấm sử dụng ký tự đại diện đứng đầu trong điều kiện lọc"+ },+ "STATEMENT_WHERE_REQUIRE_SELECT": {+ "description": "Các truy vấn không có mệnh đề WHERE có thể gây ra chi phí tài nguyên rất lớn không cần thiết. Mức độ lỗi gợi ý: Lỗi",+ "title": "Bắt buộc phải có điều kiện \"WHERE\" trong câu lệnh SELECT"+ },+ "STATEMENT_WHERE_REQUIRE_UPDATE_DELETE": {+ "description": "DML không có mệnh đề WHERE có thể gây ra mất dữ liệu lớn do tai nạn. Mức độ lỗi gợi ý: Lỗi",+ "title": "Bắt buộc phải có điều kiện \"WHERE\" trong câu lệnh UPDATE/DELETE"+ },+ "SYSTEM_CHARSET_ALLOWLIST": {+ "component": {+ "list": {+ "title": "Danh sách cho phép"+ }+ },+ "description": "Bộ ký tự xác định những ký tự nào có thể được lưu trữ trong bảng. Sử dụng bộ ký tự sai có thể dẫn đến một số ký tự trong ứng dụng không thể được lưu trữ và hiển thị chính xác, chẳng hạn như CJK và Emoji. Mức độ lỗi gợi ý: Lỗi",+ "title": "Danh sách Charset được phép"+ },+ "SYSTEM_COLLATION_ALLOWLIST": {+ "component": {+ "list": {+ "title": "Danh sách cho phép"+ }+ },+ "description": "Đối chiếu xác định các quy tắc so sánh và sắp xếp ký tự. Ví dụ: khi sử dụng đối chiếu không phân biệt chữ hoa chữ thường, \"ABC\" và \"abc\" sẽ được coi là cùng một chuỗi trong các truy vấn. Mức độ lỗi gợi ý: Lỗi",+ "title": "Danh sách đối chiếu được phép"+ },+ "SYSTEM_COMMENT_LENGTH": {+ "component": {+ "number": {+ "title": "Độ dài bình luận tối đa"+ }+ },+ "description": "",+ "title": "Hạn chế độ dài của bình luận"+ },+ "SYSTEM_EVENT_DISALLOW_CREATE": {+ "description": "Quy tắc này cấm tạo sự kiện trong cơ sở dữ liệu. Các sự kiện hệ thống thường thực hiện các tác vụ tự động có thể ảnh hưởng đến môi trường cơ sở dữ liệu. Bằng cách không cho phép tạo chúng, nó giúp duy trì quyền kiểm soát đối với các hoạt động của cơ sở dữ liệu và ngăn chặn sự gián đoạn tiềm ẩn. Mức độ lỗi đề xuất: Cảnh báo",+ "title": "Không cho phép tạo sự kiện"+ },+ "SYSTEM_FUNCTION_DISALLOWED_LIST": {+ "component": {+ "list": {+ "title": "Danh sách không cho phép"+ }+ },+ "description": "Quy tắc này hạn chế việc sử dụng các hàm cụ thể trong cơ sở dữ liệu. Bằng cách không cho phép sử dụng các hàm này, nó giúp duy trì tính nhất quán và bảo mật dữ liệu. Mức độ lỗi đề xuất: Cảnh báo",+ "title": "Cấm sử dụng một số hàm nhất định"+ },+ "SYSTEM_FUNCTION_DISALLOW_CREATE": {+ "description": "Quy tắc này cấm tạo các hàm trong cơ sở dữ liệu. Các hàm cung cấp logic có thể sử dụng lại có thể đơn giản hóa các truy vấn và tăng cường tính toàn vẹn dữ liệu. Bằng cách không cho phép tạo chúng, nó giúp duy trì quyền kiểm soát đối với lược đồ cơ sở dữ liệu và ngăn chặn các rủi ro bảo mật tiềm ẩn. Mức độ lỗi đề xuất: Cảnh báo",+ "title": "Không cho phép tạo hàm"+ },+ "SYSTEM_PROCEDURE_DISALLOW_CREATE": {+ "description": "Quy tắc này cấm thực hiện các thủ tục trong cơ sở dữ liệu. Các thủ tục hệ thống thường thực hiện các hoạt động quan trọng có thể ảnh hưởng đến tính ổn định và bảo mật của môi trường cơ sở dữ liệu. Bằng cách không cho phép thực hiện chúng, nó giúp ngăn ngừa những thay đổi không mong muốn và các lỗ hổng tiềm ẩn. Mức độ lỗi đề xuất: Cảnh báo",+ "title": "Không cho phép tạo thủ tục"+ },+ "SYSTEM_VIEW_DISALLOW_CREATE": {+ "description": "Quy tắc này cấm tạo khung nhìn trong cơ sở dữ liệu. Khung nhìn cung cấp một bản trình bày ảo của dữ liệu có thể đơn giản hóa các truy vấn và tăng cường bảo mật dữ liệu. Bằng cách không cho phép tạo chúng, nó giúp duy trì quyền kiểm soát đối với lược đồ cơ sở dữ liệu và ngăn chặn các rủi ro bảo mật tiềm ẩn. Mức độ lỗi đề xuất: Cảnh báo",+ "title": "Không cho phép tạo khung nhìn"+ },+ "TABLE_COMMENT": {+ "component": {+ "maxLength": {+ "title": "Độ dài tối đa"+ },+ "required": {+ "title": "Yêu cầu bình luận"+ }+ },+ "description": "Định cấu hình xem bảng có yêu cầu bình luận hay không và độ dài bình luận tối đa.",+ "title": "Quy ước bình luận bảng"+ },+ "TABLE_DISALLOW_DDL": {+ "component": {+ "list": {+ "title": "Tên bảng"+ }+ },+ "description": "Định cấu hình bảng nào bị cấm thực hiện DDL. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Không cho phép DDL"+ },+ "TABLE_DISALLOW_DML": {+ "component": {+ "list": {+ "title": "Tên bảng"+ }+ },+ "description": "Định cấu hình bảng nào bị cấm thực hiện DML. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Không cho phép DML"+ },+ "TABLE_DISALLOW_PARTITION": {+ "description": "Trong một số engine cơ sở dữ liệu, các bảng phân vùng chưa hoàn thiện, việc sử dụng và bảo trì không thuận tiện. Do đó, người ta có xu hướng sử dụng các phương pháp phân vùng dữ liệu thủ công như phân mảnh cơ sở dữ liệu và bảng. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Cấm sử dụng bảng phân vùng"+ },+ "TABLE_DISALLOW_SET_CHARSET": {+ "description": "Khuyến nghị nên đặt charset ở cấp cơ sở dữ liệu. Đặt charset ở mức độ chi tiết hơn có thể mang lại những phức tạp không cần thiết. Mức độ lỗi gợi ý: Lỗi.",+ "title": "Cấm xác định bộ ký tự trong thuộc tính bảng"+ },+ "TABLE_DISALLOW_TRIGGER": {+ "description": "Quy tắc này hạn chế việc sử dụng trigger trên bảng. Trigger có thể gây ra sự phức tạp và các vấn đề hiệu suất tiềm ẩn cho các hoạt động cơ sở dữ liệu. Bằng cách không cho phép trigger, hệ thống có thể duy trì hành vi đơn giản và dễ đoán hơn. Mức độ lỗi đề xuất: Cảnh báo",+ "title": "Ngăn chặn việc sử dụng trigger trên bảng"+ },+ "TABLE_DROP_NAMING_CONVENTION": {+ "component": {+ "format": {+ "title": "Định dạng tên bảng (biểu thức chính quy)"+ }+ },+ "description": "Ví dụ: bằng cách yêu cầu hậu tố \"_del\", nó có thể ngăn chặn hiệu quả việc xóa do nhầm lẫn. Mức độ lỗi gợi ý: Lỗi",+ "title": "Hạn chế định dạng đặt tên của các bảng sẽ bị xóa"+ },+ "TABLE_LIMIT_SIZE": {+ "component": {+ "number": {+ "title": "Số lượng hàng tối đa"+ }+ },+ "description": "Định cấu hình số lượng hàng tối đa trong các bảng mà DDL có thể được thực thi. Mức độ lỗi được khuyến nghị: cảnh báo",+ "title": "Giới hạn hoạt động DDL trên các bảng có số lượng hàng lớn"+ },+ "TABLE_NO_DUPLICATE_INDEX": {+ "description": "Quy tắc này yêu cầu một bảng không có chỉ mục trùng lặp. Các chỉ mục trùng lặp tiêu tốn thêm không gian lưu trữ và có khả năng làm giảm hiệu suất truy vấn. Mức lỗi được đề xuất: Cảnh báo.",+ "title": "Cấm các chỉ mục trùng lặp trên bảng"+ },+ "TABLE_NO_FOREIGN_KEY": {+ "description": "Ưu điểm và nhược điểm của khóa ngoại rất gây tranh cãi. Sử dụng khóa ngoại có thể làm tăng đáng kể độ khó của việc thay đổi cơ sở dữ liệu, khả năng mở rộng (chẳng hạn như phân mảnh), v.v. Và thậm chí có thể ngăn cản việc sử dụng một số công cụ. Do đó, một tùy chọn khác là triển khai các ràng buộc khóa ngoại ở lớp ứng dụng. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Cấm sử dụng ràng buộc khóa ngoại"+ },+ "TABLE_REQUIRE_CHARSET": {+ "description": "Charset của bảng phải được chỉ định. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Yêu cầu charset"+ },+ "TABLE_REQUIRE_COLLATION": {+ "description": "Đối chiếu (collation) của bảng phải được chỉ định. Mức độ lỗi gợi ý: Cảnh báo",+ "title": "Yêu cầu đối chiếu"+ },+ "TABLE_REQUIRE_PK": {+ "description": "Các công cụ đồng bộ hóa, so sánh và hoàn tác dữ liệu khác nhau yêu cầu bảng phải có khóa chính. Mức độ lỗi gợi ý: Lỗi",+ "title": "Bắt buộc bảng phải có khóa chính"+ },+ "TABLE_TEXT_FIELDS_TOTAL_LENGTH": {+ "component": {+ "number": {+ "title": "Độ dài tối đa"+ }+ },+ "description": "Quy tắc này giới hạn lượng dữ liệu mà một bảng có thể chứa, ngăn chặn việc sử dụng quá nhiều bộ nhớ.",+ "title": "Hạn chế tổng độ dài của các trường văn bản trong bảng"+ },"self": "Quy tắc đánh giá SQL"},- "title": "SQL Review"+ "select-all": "Chọn tất cả",+ "select-review-rules": "Chọn quy tắc đánh giá SQL",+ "template": {+ "bb-sql-review-dev": "Mẫu Cơ bản",+ "bb-sql-review-dev-desc": "Bảo vệ cơ bản để bảo vệ cơ sở dữ liệu khỏi những sai sót thường gặp.",+ "bb-sql-review-empty": "Bắt đầu lại từ đầu",+ "bb-sql-review-empty-desc": "Một mẫu trống. Bạn cần tự thêm các quy tắc cần thiết.",+ "bb-sql-review-prod": "Mẫu Nâng cao",+ "bb-sql-review-prod-desc": "Chính sách toàn diện, nơi bạn có sự bảo vệ và các phương pháp tốt nhất cho cơ sở dữ liệu.",+ "bb-sql-review-sample": "Mẫu Ví dụ",+ "bb-sql-review-sample-desc": "Một mẫu tối thiểu với bảo vệ DROP và không cho phép cột nullable."+ },+ "title": "Đánh giá SQL"},"subscription": {"contact-us": "Liên hệ chúng tôi",diff --git a/frontend/src/react/locales/zh-CN.json b/frontend/src/react/locales/zh-CN.jsonindex ad411a9ffd..7abd82cff8 100644--- a/frontend/src/react/locales/zh-CN.json+++ b/frontend/src/react/locales/zh-CN.json@@ -304,10 +304,13 @@},"common.add": "添加","common.admin": "管理员",+ "common.all": "全部","common.archive": "归档","common.archived": "已归档","common.cancel": "取消","common.cannot-undo-this-action": "这个操作无法撤销",+ "common.close": "关闭",+ "common.confirm": "确认","common.continue-anyway": "仍要继续","common.create": "创建","common.creating": "创建中...",@@ -329,6 +332,7 @@"common.minutes": "分钟","common.no-data": "无数据","common.optional": "可选",+ "common.or": "或者","common.overview": "概览","common.password": "密码","common.project": "项目",@@ -1844,12 +1848,29 @@"attach-resource": {"change-resources": "更改绑定的资源","label": "审核策略需要绑定到环境资源或项目资源上,并影响对应资源下所有数据库。若一个数据库同时受到项目级别与环境级别策略影响,则只有项目级别策略生效。",+ "label-environment": "SQL 审查策略将影响属于所选环境的所有数据库。",+ "label-project": "SQL 审核策略将影响所选项目下的所有数据库。数据库所属环境的 SQL 审核策略将被忽略。","no-linked-resources": "没有绑定的资源",+ "override-warning": "以下资源已与其他 SQL 审核策略绑定。点击\"{{button}}\"将覆盖配置。","self": "绑定到资源"},+ "category": {+ "advice": "建议",+ "builtin": "内置",+ "column": "列",+ "database": "数据库",+ "engine": "引擎",+ "index": "索引",+ "naming": "命名",+ "schema": "Schema",+ "statement": "语句",+ "system": "系统",+ "table": "表"+ },"configure-policy": "配置审核策略","create": {"basic-info": {+ "choose-template": "选择模板","display-name": "名称","display-name-default": "SQL 审核策略","display-name-label": "用以区分不同审核策略的名称。",@@ -1865,6 +1886,23 @@"description": "SQL 审核策略可以为不同的环境定义不同的 SQL lint 规则集. 它可以帮助团队采用 SQL 最佳使用实践,并在不同的数据库上约束 schema 的一致性。每当您尝试做一个 DDL/DML 变更或者使用 SQL 编辑器来查询数据时, 配置的 SQL 审核规则就会检查相应的执行语句。","disabled": "SQL 审核策略已禁用","enabled-rules": "开启的规则数",+ "engine": {+ "mariadb": "MariaDB",+ "mssql": "SQL Server",+ "mysql": "MySQL",+ "oceanbase": "OceanBase",+ "oracle": "Oracle",+ "postgres": "PostgreSQL",+ "snowflake": "Snowflake",+ "tidb": "TiDB"+ },+ "input-then-press-enter": "输入后按下回车来添加",+ "level": {+ "disabled": "禁用",+ "error": "错误",+ "name": "级别",+ "warning": "警告"+ },"no-permission": "仅管理员或 DBA 有权限创建或更新审核策略。","policy-create-failed": "审核策略创建失败","policy-created": "审核策略已创建",@@ -1873,8 +1911,689 @@"policy-updated": "审核策略已更新","review-policy": "审核策略","rule": {+ "ADVICE_ONLINE_MIGRATION": {+ "component": {+ "number": {+ "title": "阈值"+ }+ },+ "description": "如果迁移的表行数超过您的设置,建议启用在线迁移。建议的错误级别: 警告",+ "title": "在线大表变更"+ },+ "BUILTIN_PRIOR_BACKUP_CHECK": {+ "description": "此规则检查是否可以在数据更改之前创建备份。它会验证备份目标数据库是否存在,并禁止不支持的方案。它是内置的,无法跳过。",+ "title": "事先备份可行性检查"+ },+ "BUILTIN_WALK_THROUGH_CHECK": {+ "description": "通过模拟执行来验证 SQL 语句与当前数据库 Schema 的一致性。检测引用不存在的表、列或索引等问题。",+ "title": "Schema 模拟执行检查"+ },+ "COLUMN_AUTO_INCREMENT_INITIAL_VALUE": {+ "component": {+ "number": {+ "title": "初始值"+ }+ },+ "description": "结合管理要求限制自增列的初始值。建议错误等级:警告",+ "title": "限制自增列初始值"+ },+ "COLUMN_AUTO_INCREMENT_MUST_INTEGER": {+ "description": "MySQL 的自增列一般用做业务无关主键,使用整数类型占用更少的存储空间,还能让主键索引结构更紧凑,带来更好的查询与 DML 性能。建议错误等级:错误",+ "title": "强制自增列使用整数类型"+ },+ "COLUMN_AUTO_INCREMENT_MUST_UNSIGNED": {+ "description": "无符号类型不存储负数,同样的类型存放的数值范围增加一倍,可以避免自增列超出上限。建议错误等级:警告",+ "title": "强制自增列使用 \"UNSIGNED\" 类型"+ },+ "COLUMN_COMMENT": {+ "component": {+ "maxLength": {+ "title": "长度限制"+ },+ "required": {+ "title": "必须注释"+ }+ },+ "description": "对列添加注释是良好的开发习惯,但过长的注释将导致 Schema 易读性降低。建议错误等级:警告",+ "title": "列注释检查"+ },+ "COLUMN_CURRENT_TIME_COUNT_LIMIT": {+ "description": "列需要调用函数获取系统时间的情况一般只包括记录创建时间的 \"DEFAULT NOW()\" 与记录更新时间的 \"DEFAULT NOW() ON UPDATE NOW()\",额外的列记录系统时间没有意义且会增加资源开销。建议错误等级:错误",+ "title": "限制表中获取系统时间的列的数量"+ },+ "COLUMN_DEFAULT_DISALLOW_VOLATILE": {+ "description": "易变函数(例如,clock_timestamp())会在执行 ALTER TABLE ADD COLUMN 时更新每一行的值,可能导致更新操作时间过长。",+ "title": "禁止在列上设置易变的默认值"+ },+ "COLUMN_DISALLOW_CHANGE": {+ "description": "\"CHANGE COLUMN\" 是 MySQL 特有的语法,可以同时修改列名与其他属性,但可能导致修改属性时误改了列名,建议仍然使用标准的 \"RENAME\",\"MODIFY\" 语句区分两类变更。建议错误等级:错误",+ "title": "禁止使用 \"CHANGE COLUMN\" 语句"+ },+ "COLUMN_DISALLOW_CHANGE_TYPE": {+ "description": "修改列类型可能影响系统的性能、可维护性,甚至导致数据丢失。建议错误等级:警告",+ "title": "禁止修改列类型"+ },+ "COLUMN_DISALLOW_CHANGING_ORDER": {+ "description": "修改列顺序可能导致部分依赖原表默认顺序的应用或视图出现不符合预期的结果,例如 \"SELECT * \"。建议错误等级:警告",+ "title": "禁止修改表中的列顺序"+ },+ "COLUMN_DISALLOW_DROP": {+ "description": "禁止删除列。建议错误等级:警告",+ "title": "禁止删除列"+ },+ "COLUMN_DISALLOW_DROP_IN_INDEX": {+ "description": "禁止删除一个已经有索引的列。建议错误等级:错误",+ "title": "禁止删除有索引的列"+ },+ "COLUMN_DISALLOW_SET_CHARSET": {+ "description": "字符集一般建议在数据库级别或表级别设置,更细粒度的字符集设置极易造成开发管理混乱。建议错误等级:错误",+ "title": "禁止在列属性中定义字符集"+ },+ "COLUMN_MAXIMUM_CHARACTER_LENGTH": {+ "component": {+ "number": {+ "title": "最大长度"+ }+ },+ "description": "\"CHAR\" 是定长类型,例如 CHAR(20) 列即便只存放1个字符也将占用20个字符空间造成浪费,当字符串过长且长度不固定时,MySQL 可考虑用 VARCHAR 替代,PostgreSQL 可考虑用 TEXT 替代。建议错误等级:错误",+ "title": "限制 \"CHAR\" 类型长度"+ },+ "COLUMN_MAXIMUM_VARCHAR_LENGTH": {+ "component": {+ "number": {+ "title": "最大长度"+ }+ },+ "description": "",+ "title": "限制 \"VARCHAR\" 类型长度"+ },+ "COLUMN_NO_NULL": {+ "description": "表中的字段不允许存在 NULL 值。",+ "title": "强制非空约束"+ },+ "COLUMN_REQUIRED": {+ "component": {+ "list": {+ "title": "必须包含的字段名"+ }+ },+ "description": "部分通用列有助于更好的维护应用,例如增加 \"ID\" 作为业务无关的通用主键避免了业务变化(如业务合并)导致的主键冲突,部分场景还能带来更好的数据插入性能。建议错误等级:警告",+ "title": "强制表中包含特定列"+ },+ "COLUMN_REQUIRE_CHARSET": {+ "description": "必须指定字符数据类型的列的字符集。建议错误级别:警告",+ "title": "要求列设置字符集"+ },+ "COLUMN_REQUIRE_COLLATION": {+ "description": "必须指定字符数据类型的列的排序规则。建议错误级别:警告",+ "title": "要求对列设置排序规则"+ },+ "COLUMN_REQUIRE_DEFAULT": {+ "description": "设置符合业务特点的默认值可以有效提升下游统计分析业务的数据质量,此规范不检查 \"PRIMARY KEY\", \"JSON\", \"BLOB\", \"TEXT\", \"GEOMETRY\", \"AUTO_INCREMENT\", \"GENERATED\" 类型。建议错误等级:警告",+ "title": "强制列设置默认值"+ },+ "COLUMN_SET_DEFAULT_FOR_NOT_NULL": {+ "description": "对于 \"NOT NULL\" 列,在插入新行时如果不给该列赋值且该列没有默认值,数据库将会拒绝该行插入。对于新增列设置默认值也可以更好的兼容旧应用代码。建议错误等级:错误",+ "title": "强制 \"NOT NULL\" 列设置默认值"+ },+ "COLUMN_TYPE_DISALLOW_LIST": {+ "component": {+ "list": {+ "title": "禁止的类型"+ }+ },+ "description": "滥用列类型可能对系统可维护性与性能带来严重负面影响,例如使用 \"LOB\" 类列存放大量音视频数据可能导致数据库性能降低、备份恢复时间延长、数据同步工具不兼容等问题。建议错误等级:错误",+ "title": "禁止使用的列类型列表"+ },+ "DATABASE_DROP_EMPTY_DATABASE": {+ "description": "只有当数据库中不包含任何表时才允许被删除,这能最大程度避免误删除的发生。建议错误等级:错误",+ "title": "禁止删除非空数据库"+ },+ "ENGINE_MYSQL_USE_INNODB": {+ "description": "InnoDB 是 MySQL 默认的存储引擎,能够确保事务一致性,同时对高并发低延迟的场景有更好的性能表现,还可以支持在线数据备份与恢复,是 OLTP 业务的首选。建议错误等级:错误",+ "title": "强制使用 InnoDB 存储引擎"+ },+ "INDEX_CREATE_CONCURRENTLY": {+ "description": "在 PostgreSQL 11 及以上版本中,使用普通方式创建索引将导致表锁定无法写入数据,使用 \"CONCURRENTLY\" 模式可以实现无锁创建索引,不影响表的正常访问。建议错误等级:警告",+ "title": "强制并行索引创建"+ },+ "INDEX_KEY_NUMBER_LIMIT": {+ "component": {+ "number": {+ "title": "字段数量上限"+ }+ },+ "description": "组合索引列超过 5 个对查询性能的提升并不明显,但却占用大量空间并降低 DML 性能。建议错误等级:警告",+ "title": "限制单个索引中的列数量"+ },+ "INDEX_NOT_REDUNDANT": {+ "description": "冗余索引可能会导致性能损失并占用额外空间。例如,如果列(c1)上已经有一个索引,那么在列(c1,c2)上的索引将被视为冗余索引。建议的错误级别:警告",+ "title": "禁止冗余索引"+ },+ "INDEX_NO_DUPLICATE_COLUMN": {+ "description": "创建索引含重复列时语句将执行失败。建议错误等级:错误",+ "title": "禁止索引包含重复列"+ },+ "INDEX_PK_TYPE_LIMIT": {+ "description": "限制主键类型必须是 INT 或 BIGINT。",+ "title": "主键类型限制"+ },+ "INDEX_PRIMARY_KEY_TYPE_ALLOWLIST": {+ "component": {+ "list": {+ "title": "允许的主键列的类型"+ }+ },+ "description": "合适的主键类型可以优化存储结构,减少空间占用并带来更好的插入与查询性能。建议错误等级:警告",+ "title": "允许主键使用的类型列表"+ },+ "INDEX_TOTAL_NUMBER_LIMIT": {+ "component": {+ "number": {+ "title": "索引数量上限"+ }+ },+ "description": "索引虽然能提升查询性能,但却占用大量空间并降低 DML 性能,因此不建议单个表创建的索引数量超过5个。建议错误等级:警告",+ "title": "限制单表的索引数量"+ },+ "INDEX_TYPE_ALLOW_LIST": {+ "component": {+ "list": {+ "title": "允许的索引类型"+ }+ },+ "description": "不同的索引类型具有不同的性能特征。例如,B-tree 索引适用于范围查询,而哈希索引适用于相等查询。建议错误级别:警告",+ "title": "可允许的索引类型列表"+ },+ "INDEX_TYPE_NO_BLOB": {+ "description": "\"BLOB\" 等类型一般用于存放二进制数据,并不会作为查询条件,如果误在此类列上创建索引,将占用大量资源并产生严重的性能问题。建议错误等级:错误",+ "title": "禁止对 \"BLOB\" 与 \"TEXT\" 类型列创建索引"+ },+ "NAMING_COLUMN": {+ "component": {+ "format": {+ "title": "列命名规则(正则)"+ },+ "maxLength": {+ "title": "长度限制"+ }+ },+ "description": "默认格式为全小写字母,单词之间以下划线分割,长度不超过 63 个字符,例如 \"abc\",\"abc_def\"。建议错误等级:警告",+ "title": "强制列命名格式"+ },+ "NAMING_COLUMN_AUTO_INCREMENT": {+ "component": {+ "format": {+ "title": "自增列命名规则(正则)"+ },+ "maxLength": {+ "title": "长度限制"+ }+ },+ "description": "默认列名为 \"ID\",且不超过 63 个字符。",+ "title": "强制自增列命名格式"+ },+ "NAMING_FULLY_QUALIFIED": {+ "description": "强制使用完全限定的对象名称。例如 “schema.table”,建议错误级别:警告",+ "title": "完全限定对象名称"+ },+ "NAMING_IDENTIFIER_CASE": {+ "component": {+ "upper": {+ "title": "大写"+ }+ },+ "description": "",+ "title": "强制字段名大小写"+ },+ "NAMING_IDENTIFIER_NO_KEYWORD": {+ "description": "",+ "title": "禁止使用关键字作为字段名"+ },+ "NAMING_INDEX_FK": {+ "component": {+ "format": {+ "template": {+ "referenced_column": "被引用的字段名",+ "referenced_table": "被引用的表名",+ "referencing_column": "目标字段名",+ "referencing_table": "目标表名"+ },+ "title": "外键命名规则"+ },+ "maxLength": {+ "title": "长度限制"+ }+ },+ "description": "允许名字为空并由数据库自动命名,若非空则默认格式为 fk_<目标表名>_<目标列名>_<被引用表名>_<被引用列名>,且不超过 63 个字符,例如 \"fk_my_table_id_foreign_table_id\"。",+ "title": "强制外键命名格式"+ },+ "NAMING_INDEX_IDX": {+ "component": {+ "format": {+ "template": {+ "column_list": "索引包含的字段名,通过 _ 连接",+ "table": "表名"+ },+ "title": "索引命名规则"+ },+ "maxLength": {+ "title": "长度限制"+ }+ },+ "description": "允许名字为空并由数据库自动命名,若非空则默认格式为 idx_<表名>_<索引包含的列名组合> ,且不超过 63 个字符,例如 \"idx_my_table_id_name\"。建议错误等级:警告",+ "title": "强制索引命名格式"+ },+ "NAMING_INDEX_PK": {+ "component": {+ "format": {+ "template": {+ "column_list": "索引包含的字段名,通过 _ 连接",+ "table": "表名"+ },+ "title": "主键命名规则"+ },+ "maxLength": {+ "title": "长度限制"+ }+ },+ "description": "允许名字为空并由数据库自动命名,若非空则默认格式为 pk_<表名>_<主键包含的列名组合> ,且不超过 63 个字符,例如 \"pk_my_table_id_name\"。建议错误等级:警告",+ "title": "强制主键命名格式"+ },+ "NAMING_INDEX_UK": {+ "component": {+ "format": {+ "template": {+ "column_list": "索引包含的字段名,通过 _ 连接",+ "table": "表名"+ },+ "title": "唯一键命名规则"+ },+ "maxLength": {+ "title": "长度限制"+ }+ },+ "description": "允许名字为空并由数据库自动命名,若非空则默认格式为 uk_<表名>_<唯一键包含的列名组合> ,且不超过 63 个字符,例如 \"uk_my_table_id_name\"。建议错误等级:警告",+ "title": "强制唯一键命名格式"+ },+ "NAMING_TABLE": {+ "component": {+ "format": {+ "title": "表命名规则(正则)"+ },+ "maxLength": {+ "title": "长度限制"+ }+ },+ "description": "默认格式为全小写字母,单词之间以下划线分割,长度不超过 63 个字符,例如 \"abc\",\"abc_def\"。建议错误等级:警告",+ "title": "强制表命名格式"+ },+ "NAMING_TABLE_NO_KEYWORD": {+ "description": "",+ "title": "禁止使用关键字作为表名"+ },+ "SCHEMA_BACKWARD_COMPATIBILITY": {+ "description": "部分变更可能影响现有应用功能,例如修改数据库对象名,增加新的约束等,此规范可避免不谨慎变更导致现有应用运行失败。建议错误等级:警告",+ "title": "检查应用向后兼容性"+ },+ "STATEMENT_ADD_CHECK_NOT_VALID": {+ "description": "添加 CHECK 约束将对已有数据进行校验并要求 ACCESS EXCLUSIVE 表锁,阻塞读写,这可能导致业务中断。建议附带 \"NOT VALID\" 选项只对新数据进行校验,变更完成后再手动校验已有数据。建议错误等级:警告",+ "title": "强制添加 \"CHECK\" 约束时附带 \"NOT VALID\" 选项"+ },+ "STATEMENT_ADD_COLUMN_WITHOUT_POSITION": {+ "description": "部分情况下,使用 FIRST/AFTER 在指定位置加列将引起数据重整(把原来的数据重写一遍)。建议错误级别:警告",+ "title": "禁止在指定位置加列"+ },+ "STATEMENT_ADD_FOREIGN_KEY_NOT_VALID": {+ "description": "添加外键会校验已有数据并要求 SHARE ROW EXCLUSIVE 表锁,阻塞写入,这可能导致业务中断。建议附带 \"NOT VALID\" 选项只对新数据进行校验,变更完成后再校验已有数据。建议错误等级:警告",+ "title": "强制添加外键时附带 \"NOT VALID\" 选项"+ },+ "STATEMENT_AFFECTED_ROW_LIMIT": {+ "component": {+ "number": {+ "title": "最大影响行数"+ }+ },+ "description": "通过提示更新或删除的行数辅助判断语句是否符合业务预期。建议错误等级:警告",+ "title": "限制最大更新或删除行数(预估)"+ },+ "STATEMENT_CHECK_SET_ROLE_VARIABLE": {+ "description": "在会话开始时未正确设置角色语句可能导致未经授权的访问或权限分配不当,可能危及数据安全性和完整性。错误等级:警告",+ "title": "检查语句开头是否存在 SET ROLE 语句"+ },+ "STATEMENT_CREATE_SPECIFY_SCHEMA": {+ "description": "如果未指定 schema,对象将在默认模式中创建,可能导致意外结果。",+ "title": "禁止创建未指定 schema 的对象"+ },+ "STATEMENT_DISALLOW_ADD_COLUMN_WITH_DEFAULT": {+ "description": "在 PostgreSQL 11 之前的版本中,添加带有默认值的列将导致全表锁定无法读写,这可能导致业务中断。在 PostgreSQL 11 及以上版本中该问题已得到优化,无需关注此规范。建议错误等级:警告",+ "title": "限制向表中添加带默认值的列"+ },+ "STATEMENT_DISALLOW_ADD_NOT_NULL": {+ "description": "在 PostgreSQL 11 之前添加带默认值的 NOT NULL 约束或在所有 PostgreSQL 版本中添加不带默认值的 NOT NULL 约束需要验证现有数据。这会阻塞读写,可能会导致业务中断。建议错误等级:警告",+ "title": "限制向已有列添加 \"NOT NULL\" 约束"+ },+ "STATEMENT_DISALLOW_COMMIT": {+ "description": "部分情况要求多条语句包含在一个事务中由系统提交,只允许同时成功或同时失败,以便部分出错时快速重跑,因此不允许出现显式的 \"COMMIT\"。建议错误等级:警告",+ "title": "禁止显式 \"COMMIT\""+ },+ "STATEMENT_DISALLOW_CROSS_DB_QUERIES": {+ "description": "跨数据库查询会增加系统的耦合性,并可能导致效率问题。建议的错误级别:警告",+ "title": "禁止跨数据库查询"+ },+ "STATEMENT_DISALLOW_LIMIT": {+ "description": "如果 DML 语句中使用 LIMIT 不伴随 ORDER BY,影响的行是不确定的,在部分复制模式下可能导致主库与从库变更了不同的行,造成数据不一致。建议错误等级:错误",+ "title": "禁止在 DML 语句中使用 \"LIMIT\""+ },+ "STATEMENT_DISALLOW_OFFLINE_DDL": {+ "description": "为了防止数据库更改影响您的业务,请避免使用离线 DDL。",+ "title": "禁止离线 DDL"+ },+ "STATEMENT_DISALLOW_ON_DEL_CASCADE": {+ "description": "'ON DELETE'中的'CASCADE'选项可能导致大量依赖对象被删除或修改,这可能导致意外的结果。建议的错误级别:错误",+ "title": "禁止在ON DELETE子句中使用 CASCADE 选项"+ },+ "STATEMENT_DISALLOW_ORDER_BY": {+ "description": "排序操作是极为耗费资源的,对于更新与删除操作应该尽可能用确定的过滤条件,而不要使用 ORDER BY 加 LIMIT 的方式。建议错误等级:错误",+ "title": "禁止在 \"UPDATE\",\"DELETE\" 语句中使用 \"ORDER BY\""+ },+ "STATEMENT_DISALLOW_RM_TBL_CASCADE": {+ "description": "在删除表时使用'CASCADE'选项可能导致大量依赖对象被删除或修改,这可能导致意外的结果。建议的错误级别:错误",+ "title": "禁止在删除表时使用 CASCADE 选项"+ },+ "STATEMENT_DISALLOW_USING_FILESORT": {+ "description": "禁止 Using filesort 可以帮助优化查询性能,减少系统资源的消耗,提高系统的稳定性和可靠性。通常,通过合适的索引、查询优化和数据模型设计,可以避免或减少文件排序的需要。建议错误等级:警告",+ "title": "禁止 Using filesort"+ },+ "STATEMENT_DISALLOW_USING_TEMPORARY": {+ "description": "禁止 Using temporary 可以帮助优化查询性能,减少系统资源的消耗,提高系统的稳定性和可靠性。建议错误等级:警告",+ "title": "禁止 Using temporary"+ },+ "STATEMENT_DML_DRY_RUN": {+ "description": "当语法正确但表名错误或权限不足时,可以在正式运行前通过模拟运行发现。建议错误等级:警告",+ "title": "验证 DML 语句可执行性"+ },+ "STATEMENT_INSERT_DISALLOW_ORDER_BY_RAND": {+ "description": "对待插入的数据进行随机排序是没有意义的,只会无端消耗资源。建议错误等级:错误",+ "title": "禁止在 \"INSERT\" 语句中使用 \"ORDER BY RAND()\""+ },+ "STATEMENT_INSERT_MUST_SPECIFY_COLUMN": {+ "description": "\"INSERT INTO table VALUES (...)\" 语句没有显式列出列名,一旦发生列顺序变化或列增减,语句就可能失败或写入不符合预期的数据。建议错误等级:错误",+ "title": "强制 \"INSERT\" 语句显示指定列名"+ },+ "STATEMENT_INSERT_ROW_LIMIT": {+ "component": {+ "number": {+ "title": "最大插入行数"+ }+ },+ "description": "通过提示插入的行数辅助判断语句是否符合业务预期。建议错误等级:警告",+ "title": "限制最大插入行数"+ },+ "STATEMENT_JOIN_STRICT_COLUMN_ATTRS": {+ "description": "如果连接列的数据类型、字符集不一致,数据库可能无法正确识别匹配的行,从而导致结果不准确或不完整。",+ "title": "要进行连接的字段必须具有相同的数据类型和字符集。"+ },+ "STATEMENT_MAXIMUM_JOIN_TABLE_COUNT": {+ "component": {+ "number": {+ "title": "最大值"+ }+ },+ "description": "连接的表越多,查询就越复杂,执行时间也越长。 通常情况下,最好将连接数控制在最低限度。",+ "title": "限制语句中连接的表数量"+ },+ "STATEMENT_MAXIMUM_LIMIT_VALUE": {+ "component": {+ "number": {+ "title": "最大行数"+ }+ },+ "description": "通过 LIMIT 限制行数可以确保数据库处理可管理的大小块数据,从而提高查询执行速度。 限制 LIMIT 的值可以防止过度使用内存,从而保护系统整体稳定性和防止性能下降。",+ "title": "限制 LIMIT 子句的最大行数"+ },+ "STATEMENT_MAXIMUM_STATEMENTS_IN_TRANSACTION": {+ "component": {+ "number": {+ "title": "最大行数"+ }+ },+ "description": "巨大的事务会显著影响数据库性能。如果涉及大量语句并且其中一个语句失败,则回滚整个事务会变得复杂。限制语句数量可以最小化单个故障造成的潜在损害并简化回滚过程。",+ "title": "限制事务中的语句数量"+ },+ "STATEMENT_MAX_EXECUTION_TIME": {+ "description": "设置SQL语句的最大执行时间,如果执行时间超过限制,语句将被终止。建议错误级别:警告",+ "mariadb": {+ "description": "在变更脚本中设置 MAX_STATEMENT_TIME 参数以显式控制语句最长执行时间。建议错误级别:警告",+ "title": "强制明确设置 MAX_STATEMENT_TIME 参数"+ },+ "mysql": {+ "description": "在变更脚本中设置 MAX_EXECUTION_TIME 参数以显式控制语句最长执行时间。建议错误级别:警告",+ "title": "强制明确设置 MAX_EXECUTION_TIME 参数"+ },+ "title": "强制设置最大执行时间参数"+ },+ "STATEMENT_MERGE_ALTER_TABLE": {+ "description": "每一次对表的变更都可能造成锁表并且消耗大量资源,如果存在对同一张表的多次变更,应该合并为一个变更语句。建议错误等级:错误",+ "title": "禁止对同一张表发起多次独立变更"+ },+ "STATEMENT_NON_TRANSACTIONAL": {+ "description": "",+ "title": "检测并报告非事务性语句"+ },+ "STATEMENT_OBJECT_OWNER_CHECK": {+ "description": "此规则检查 DDL 的对象所有者是否与当前用户相同。",+ "title": "对象所有者检查"+ },+ "STATEMENT_QUERY_MINIMUM_PLAN_LEVEL": {+ "component": {+ "level": {+ "title": "最大级别"+ }+ },+ "description": "在 SQL 性能优化中,追求常量访问速度,以引用级别作为基线,区间级别的性能尚可接受。",+ "title": "限制查询访问方法的最大级别"+ },+ "STATEMENT_REQUIRE_ALGORITHM_OPTION": {+ "description": "在 ALTER TABLE 语句中指定 ALGORITHM 选项可确保更好地控制表更改的应用方式,通过避免全表复制或锁定来最大限度地减少潜在的中断。它有助于优化性能并减少 ALTER TABLE 操作的停机时间。建议的错误级别:警告。",+ "title": "需要在 ALTER TABLE 语句中指定 ALGORITHM 选项"+ },+ "STATEMENT_REQUIRE_LOCK_OPTION": {+ "description": "ALTER TABLE 语句中的 LOCK 选项允许您控制架构更改期间的锁定级别,有助于防止不必要的表锁定并确保更好的并发性。正确使用此选项可以显著减少 ALTER TABLE 操作对活动查询的影响。建议的错误级别:警告。",+ "title": "需要在 ALTER TABLE 语句中指定 LOCK 选项"+ },+ "STATEMENT_SELECT_FULL_TABLE_SCAN": {+ "description": "全表扫描是一种消耗大量资源的操作,可能导致严重的性能影响。建议错误等级:错误",+ "title": "检查查询是否存在全表扫描"+ },+ "STATEMENT_SELECT_NO_SELECT_ALL": {+ "description": "SELECT * 拉取整行数据可能造成不必要的资源开销,同时一旦表增减列,也可能造成应用出现不符合预期的结果。建议错误等级:错误",+ "title": "禁止使用 \"SELECT *\""+ },+ "STATEMENT_WHERE_DISALLOW_FUNCTIONS_AND_CALCULATIONS": {+ "description": "如果对索引字段应用函数或执行计算,则数据库无法使用索引,而必须扫描整个表。",+ "title": "在 WHERE 子句中避免对索引字段应用函数或执行计算"+ },+ "STATEMENT_WHERE_MAXIMUM_LOGICAL_OPERATOR_COUNT": {+ "component": {+ "number": {+ "title": "最大数量"+ }+ },+ "description": "这可以防止因频繁对比和资源限制导致性能下降。",+ "title": "限制 WHERE 子句中的 IN 或 OR 子句中的值的数量"+ },+ "STATEMENT_WHERE_NO_EQUAL_NULL": {+ "description": "NULL 等式比较的结果始终是 NULL,可能导致意外的结果。建议错误级别:警告",+ "title": "禁止在WHERE子句中使用NULL等式比较"+ },+ "STATEMENT_WHERE_NO_LEADING_WILDCARD_LIKE": {+ "description": "当使用左模糊匹配,例如 \"LIKE '%ABC'\",数据库优化器将无法进行快速索引扫描,而只能执行全表或全索引扫描,可能造成极为严重的性能问题。建议错误等级:错误",+ "title": "禁止过滤条件使用左模糊匹配"+ },+ "STATEMENT_WHERE_REQUIRE_SELECT": {+ "description": "没有 WHERE 子句的查询可能会造成巨大的不必要的资源开销。建议错误等级:错误",+ "title": "强制要求在 SELECT 语句中带有 \"WHERE\" 条件"+ },+ "STATEMENT_WHERE_REQUIRE_UPDATE_DELETE": {+ "description": "没有 WHERE 子句的 DML 可能会造成大规模数据丢失。建议错误等级:错误",+ "title": "强制要求在 DML 语句中带有 \"WHERE\" 条件"+ },+ "SYSTEM_CHARSET_ALLOWLIST": {+ "component": {+ "list": {+ "title": "允许的字符集"+ }+ },+ "description": "字符集决定了表中可以存储哪些字符,使用错误的字符集可能导致应用中的部分字符无法正确存储与显示,例如中文与 Emoji 表情。建议错误等级:错误",+ "title": "允许使用的字符集(Charset)列表"+ },+ "SYSTEM_COLLATION_ALLOWLIST": {+ "component": {+ "list": {+ "title": "允许的规则限制"+ }+ },+ "description": "字符序决定了字符比对与排序的规则,例如使用不区分大小写的字符序时 \"ABC\" 与 \"abc\" 在查询时将被视为相同字符串。建议错误等级:错误",+ "title": "允许使用的字符序(Collation)列表"+ },+ "SYSTEM_COMMENT_LENGTH": {+ "component": {+ "number": {+ "title": "注释长度上限"+ }+ },+ "description": "过长的注释将导致 Schema 易读性降低,并可能带来潜在的性能风险。建议错误等级:警告",+ "title": "限制注释长度"+ },+ "SYSTEM_EVENT_DISALLOW_CREATE": {+ "description": "该规则禁止在数据库中创建事件。系统事件通常执行可能影响数据库环境的自动化任务。通过禁止创建它们,有助于控制数据库操作并防止潜在的中断。建议的错误级别:警告",+ "title": "禁止创建事件"+ },+ "SYSTEM_FUNCTION_DISALLOWED_LIST": {+ "component": {+ "list": {+ "title": "禁止的函数"+ }+ },+ "description": "此规则限制数据库内特定函数的使用。通过禁止使用这些函数,有助于维护数据一致性和安全性。建议错误级别:警告",+ "title": "禁止使用的函数"+ },+ "SYSTEM_FUNCTION_DISALLOW_CREATE": {+ "description": "该规则禁止在数据库中创建函数。函数提供可重用的逻辑,可以简化查询并增强数据完整性。通过禁止创建它们,有助于保持对数据库架构的控制,并预防潜在的安全风险。建议的错误级别:警告",+ "title": "禁止创建函数"+ },+ "SYSTEM_PROCEDURE_DISALLOW_CREATE": {+ "description": "存储过程通常会执行可能影响数据库环境稳定性和安全性的关键操作。禁止创建存储过程有助于防止意外更改和潜在漏洞。建议错误等级:警告",+ "title": "禁止创建存储过程"+ },+ "SYSTEM_VIEW_DISALLOW_CREATE": {+ "description": "该规则禁止在数据库中创建视图。视图提供了数据的虚拟表示,可以简化查询并增强数据安全性。通过禁止创建它们,有助于维护对数据库模式的控制,并防止潜在的安全风险。建议的错误级别:警告",+ "title": "禁止创建视图"+ },+ "TABLE_COMMENT": {+ "component": {+ "maxLength": {+ "title": "长度限制"+ },+ "required": {+ "title": "必须注释"+ }+ },+ "description": "配置表是否需要注释和最大注释长度。",+ "title": "表注释检查"+ },+ "TABLE_DISALLOW_DDL": {+ "component": {+ "list": {+ "title": "表名"+ }+ },+ "description": "配置哪些表禁止执行 DDL。建议错误级别:警告",+ "title": "禁止DDL"+ },+ "TABLE_DISALLOW_DML": {+ "component": {+ "list": {+ "title": "表名"+ }+ },+ "description": "配置哪些表禁止执行 DML。建议错误级别:警告",+ "title": "禁止 DML"+ },+ "TABLE_DISALLOW_PARTITION": {+ "description": "在一些数据库引擎中,分区表技术并不成熟,使用与维护都较为不便,因此更倾向于通过分库分表等方式进行人工数据分区。建议错误等级:警告",+ "title": "禁止使用分区表"+ },+ "TABLE_DISALLOW_SET_CHARSET": {+ "description": "建议在数据库层面设置字符集。在更细粒度设置字符集会带来不必要的复杂性。建议错误等级:错误。",+ "title": "禁止在表格属性中定义字符集"+ },+ "TABLE_DISALLOW_TRIGGER": {+ "description": "触发器可能导致数据库的隐式行为,增加数据库的复杂性,降低可维护性。建议错误等级:警告",+ "title": "禁止使用触发器"+ },+ "TABLE_DROP_NAMING_CONVENTION": {+ "component": {+ "format": {+ "title": "命名规则(正则)"+ }+ },+ "description": "通过重命名待删除表,例如增加 _del 后缀,可以有效避免误操作发生。建议错误等级:错误",+ "title": "限制待删除表的命名格式"+ },+ "TABLE_LIMIT_SIZE": {+ "component": {+ "number": {+ "title": "最大行数"+ }+ },+ "description": "配置可以执行 DDL 的表的最大行数。推荐错误级别:警告",+ "title": "限制对多行数表的 DDL 操作"+ },+ "TABLE_NO_DUPLICATE_INDEX": {+ "description": "此规则要求表上没有重复索引。重复索引会占用额外的存储空间,并可能降低查询性能。建议错误等级:警告。",+ "title": "禁止表上重复索引"+ },+ "TABLE_NO_FOREIGN_KEY": {+ "description": "外键的优缺点争议较大,使用外键可能导致数据库变更、扩展(如分库)等工作的难度明显增加,甚至无法使用一些工具。因此可以考虑在应用层实现外键约束。建议错误等级:警告",+ "title": "禁止使用外键约束"+ },+ "TABLE_REQUIRE_CHARSET": {+ "description": "必须指定表格的字符集。建议错误级别:警告",+ "title": "需要指定字符集"+ },+ "TABLE_REQUIRE_COLLATION": {+ "description": "必须指定表的排序规则。建议错误级别:警告",+ "title": "需要指定排序规则"+ },+ "TABLE_REQUIRE_PK": {+ "description": "各种数据同步、比对、回滚的工具往往要求表有主键。建议错误等级:错误",+ "title": "强制表包含主键"+ },+ "TABLE_TEXT_FIELDS_TOTAL_LENGTH": {+ "component": {+ "number": {+ "title": "最大长度"+ }+ },+ "description": "该规则限制了表格所能容纳的数据量,防止存储空间的使用过量。",+ "title": "限制表格文本字段的总长度"+ },"self": "SQL 审核规则"},+ "select-all": "选择全部",+ "select-review-rules": "选择 SQL 审核规则",+ "template": {+ "bb-sql-review-dev": "基础模板",+ "bb-sql-review-dev-desc": "保证变更可正确地应用到数据库。",+ "bb-sql-review-empty": "白手起家",+ "bb-sql-review-empty-desc": "一个空的模板,需要您自行添加需要的规则。",+ "bb-sql-review-prod": "进阶模板",+ "bb-sql-review-prod-desc": "为您的数据库提供全面保护和最佳实践。",+ "bb-sql-review-sample": "样例模版",+ "bb-sql-review-sample-desc": "一个包括 DROP 保护和禁止列值为 NULL 的简易审核策略。"+ },"title": "SQL 审核策略"},"subscription": {diff --git a/frontend/src/react/pages/settings/general/GeneralPage.tsx b/frontend/src/react/pages/settings/general/GeneralPage.tsxindex 674c454c3d..9641726f3e 100644--- a/frontend/src/react/pages/settings/general/GeneralPage.tsx+++ b/frontend/src/react/pages/settings/general/GeneralPage.tsx@@ -1,6 +1,5 @@import { useCallback, useEffect, useRef, useState } from "react";import { useTranslation } from "react-i18next";-import { t as vueT } from "@/plugins/i18n";import { PermissionGuard } from "@/react/components/PermissionGuard";import { Button } from "@/react/components/ui/button";import { useVueState } from "@/react/hooks/useVueState";@@ -144,7 +143,7 @@ export function GeneralPage() {const removeGuard = router.beforeEach((_to, _from, next) => {if (allRefs.some((ref) => ref.current?.isDirty())) {- if (!window.confirm(vueT("common.leave-without-saving"))) {+ if (!window.confirm(t("common.leave-without-saving"))) {next(false);return;}diff --git a/frontend/src/react/pages/settings/profile/ProfilePage.tsx b/frontend/src/react/pages/settings/profile/ProfilePage.tsxindex d78390d738..04a438c3c4 100644--- a/frontend/src/react/pages/settings/profile/ProfilePage.tsx+++ b/frontend/src/react/pages/settings/profile/ProfilePage.tsx@@ -5,7 +5,6 @@ import { cloneDeep, isEqual } from "lodash-es";import { Ellipsis, ShieldAlert } from "lucide-react";import { useCallback, useEffect, useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";-import { t as vueT } from "@/plugins/i18n";import { FeatureBadge } from "@/react/components/FeatureBadge";import { getAvatarColor, getInitials } from "@/react/components/UserAvatar";import { Button } from "@/react/components/ui/button";@@ -204,7 +203,7 @@ export function ProfilePage({ principalEmail }: ProfilePageProps) {const removeGuard = router.beforeEach((_to, _from, next) => {if (shouldGuard) {- if (!window.confirm(vueT("common.leave-without-saving"))) {+ if (!window.confirm(t("common.leave-without-saving"))) {next(false);return;}