Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: masking exception user table (#14174)

ecmadaoa6f321a42622
diff --git a/frontend/src/components/ColumnDataTable/index.vue b/frontend/src/components/ColumnDataTable/index.vue
index 91b3b4ebba..3ae0637be0 100644
--- a/frontend/src/components/ColumnDataTable/index.vue
+++ b/frontend/src/components/ColumnDataTable/index.vue
@@ -113,6 +113,7 @@ const showSensitiveColumn = computed(() => {
engine.value === Engine.ORACLE ||
engine.value === Engine.SNOWFLAKE ||
engine.value === Engine.MSSQL ||
+ engine.value === Engine.BIGQUERY ||
engine.value === Engine.RISINGWAVE)
);
});
diff --git a/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue b/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue
new file mode 100644
index 0000000000..dc257c2773
--- /dev/null
+++ b/frontend/src/components/SensitiveData/MaskingExceptionUserTable.vue
@@ -0,0 +1,273 @@
+<template>
+ <NDataTable
+ :size="size"
+ :columns="accessTableColumns"
+ :data="accessList"
+ :row-key="(row: AccessUser) => row.key"
+ :bordered="true"
+ :striped="true"
+ :max-height="'calc(100vh - 15rem)'"
+ virtual-scroll
+ />
+</template>
+
+<script lang="tsx" setup>
+import { cloneDeep } from "lodash-es";
+import { TrashIcon } from "lucide-vue-next";
+import type { DataTableColumn } from "naive-ui";
+import { NCheckbox, NDatePicker, NPopconfirm, NDataTable } from "naive-ui";
+import { computed } from "vue";
+import { useI18n } from "vue-i18n";
+import { RouterLink } from "vue-router";
+import GroupNameCell from "@/components/User/Settings/UserDataTableByGroup/cells/GroupNameCell.vue";
+import { MiniActionButton } from "@/components/v2";
+import { WORKSPACE_ROUTE_USER_PROFILE } from "@/router/dashboard/workspaceRoutes";
+import { MaskingLevel } from "@/types/proto/v1/common";
+import { MaskingExceptionPolicy_MaskingException_Action } from "@/types/proto/v1/org_policy_service";
+import { hasWorkspacePermissionV2 } from "@/utils";
+import UserAvatar from "../User/UserAvatar.vue";
+import MaskingLevelDropdown from "./components/MaskingLevelDropdown.vue";
+import { type AccessUser } from "./types";
+
+const props = defineProps<{
+ size: "small" | "medium";
+ accessList: AccessUser[];
+ disabled: boolean;
+ showDatabaseColumn: boolean;
+}>();
+
+const emit = defineEmits<{
+ (event: "update:access", index: number, access: AccessUser): void;
+ (event: "remove:access", index: number): void;
+}>();
+
+const { t } = useI18n();
+const hasPermission = computed(() => {
+ return hasWorkspacePermissionV2("bb.policies.update");
+});
+
+const accessTableColumns = computed(
+ (): DataTableColumn<AccessUser & { hide?: boolean }>[] => {
+ return [
+ {
+ type: "expand",
+ expandable: (_: AccessUser) => true,
+ hide: props.showDatabaseColumn,
+ renderExpand: (item: AccessUser) => {
+ const expressions = item.rawExpression.split(" && ");
+ if (
+ expressions.length === 0 ||
+ (expressions.length === 1 &&
+ expressions[0].startsWith("request.time"))
+ ) {
+ expressions.push("all databases");
+ }
+
+ return (
+ <ul class="list-disc pl-6 textinfolabel">
+ {expressions.map((expression, i) => (
+ <li key={`${item.key}.${i}`}>{expression}</li>
+ ))}
+ </ul>
+ );
+ },
+ },
+ {
+ key: "member",
+ title: t("common.members"),
+ resizable: true,
+ render: (item: AccessUser) => {
+ if (item.type === "group") {
+ return <GroupNameCell group={item.group!} />;
+ }
+
+ return (
+ <div class="flex items-center gap-x-2">
+ <UserAvatar size="SMALL" user={item.user} />
+ <div class="flex flex-col">
+ <RouterLink
+ to={{
+ name: WORKSPACE_ROUTE_USER_PROFILE,
+ params: {
+ principalEmail: item.user!.email,
+ },
+ }}
+ class="normal-link"
+ >
+ {item.user!.title}
+ </RouterLink>
+ <span class="textinfolabel">{item.user!.email}</span>
+ </div>
+ </div>
+ );
+ },
+ },
+ {
+ key: "resource",
+ title: t("common.resource"),
+ hide: !props.showDatabaseColumn,
+ render: (item: AccessUser) => {
+ const expressions = item.rawExpression.split(" && ");
+ if (
+ expressions.length === 0 ||
+ (expressions.length === 1 &&
+ expressions[0].startsWith("request.time"))
+ ) {
+ expressions.push("all databases");
+ }
+
+ return (
+ <ul class="list-disc pl-6 textinfolabel">
+ {expressions.map((expression, i) => (
+ <li key={`${item.key}.${i}`}>{expression}</li>
+ ))}
+ </ul>
+ );
+ },
+ },
+ {
+ key: "export",
+ title: t("settings.sensitive-data.action.export"),
+ width: "5rem",
+ render: (item: AccessUser, row: number) => {
+ return (
+ <NCheckbox
+ checked={item.supportActions.has(
+ MaskingExceptionPolicy_MaskingException_Action.EXPORT
+ )}
+ disabled={!hasPermission.value || props.disabled}
+ onUpdateChecked={(e) =>
+ onAccessControlUpdate(row, (item) =>
+ toggleAction(
+ item,
+ MaskingExceptionPolicy_MaskingException_Action.EXPORT,
+ e
+ )
+ )
+ }
+ />
+ );
+ },
+ },
+ {
+ key: "query",
+ title: t("settings.sensitive-data.action.query"),
+ width: "5rem",
+ render: (item: AccessUser, row: number) => {
+ return (
+ <NCheckbox
+ checked={item.supportActions.has(
+ MaskingExceptionPolicy_MaskingException_Action.QUERY
+ )}
+ disabled={!hasPermission.value || props.disabled}
+ onUpdate:checked={(e) =>
+ onAccessControlUpdate(row, (item) =>
+ toggleAction(
+ item,
+ MaskingExceptionPolicy_MaskingException_Action.QUERY,
+ e
+ )
+ )
+ }
+ />
+ );
+ },
+ },
+ {
+ key: "level",
+ title: t("settings.sensitive-data.masking-level.self"),
+ render: (item: AccessUser, row: number) => {
+ return (
+ <MaskingLevelDropdown
+ disabled={!hasPermission.value || props.disabled}
+ level={item.maskingLevel}
+ levelList={[MaskingLevel.PARTIAL, MaskingLevel.NONE]}
+ onUpdate:level={(e) =>
+ onAccessControlUpdate(row, (item) => (item.maskingLevel = e))
+ }
+ />
+ );
+ },
+ },
+ {
+ key: "expire",
+ title: t("common.expiration"),
+ render: (item: AccessUser, row: number) => {
+ return (
+ <NDatePicker
+ value={item.expirationTimestamp}
+ style={"width: 100%"}
+ type={"datetime"}
+ isDateDisabled={(date: number) => date < Date.now()}
+ clearable={true}
+ disabled={!hasPermission.value || props.disabled}
+ onUpdate:value={(val: number | undefined) =>
+ onAccessControlUpdate(
+ row,
+ (item) => (item.expirationTimestamp = val)
+ )
+ }
+ />
+ );
+ },
+ },
+ {
+ key: "operation",
+ title: "",
+ hide: !hasPermission.value,
+ width: "4rem",
+ render: (_: AccessUser, row: number) => {
+ return (
+ <NPopconfirm onPositiveClick={() => emit("remove:access", row)}>
+ {{
+ trigger: () => {
+ return (
+ <MiniActionButton
+ disabled={!hasPermission.value || props.disabled}
+ >
+ {{
+ default: () => <TrashIcon class="w-4 h-4" />,
+ }}
+ </MiniActionButton>
+ );
+ },
+ default: () => (
+ <div class="whitespace-nowrap">
+ {t(
+ "settings.sensitive-data.column-detail.remove-user-permission"
+ )}
+ </div>
+ ),
+ }}
+ </NPopconfirm>
+ );
+ },
+ },
+ ].filter((column) => !column.hide) as DataTableColumn<AccessUser>[];
+ }
+);
+
+const toggleAction = (
+ item: AccessUser,
+ action: MaskingExceptionPolicy_MaskingException_Action,
+ checked: boolean
+) => {
+ if (checked) {
+ item.supportActions.add(action);
+ } else {
+ item.supportActions.delete(action);
+ }
+};
+
+const onAccessControlUpdate = async (
+ index: number,
+ callback: (item: AccessUser) => void
+) => {
+ const item = cloneDeep(props.accessList[index]);
+ if (!item) {
+ return;
+ }
+ callback(item);
+ emit("update:access", index, item);
+};
+</script>
diff --git a/frontend/src/components/SensitiveData/SensitiveColumnDrawer.vue b/frontend/src/components/SensitiveData/SensitiveColumnDrawer.vue
index 5b4511e76e..bd232b0aed 100644
--- a/frontend/src/components/SensitiveData/SensitiveColumnDrawer.vue
+++ b/frontend/src/components/SensitiveData/SensitiveColumnDrawer.vue
@@ -124,15 +124,13 @@
{{ $t("settings.sensitive-data.grant-access") }}
</NButton>
</div>
- <NDataTable
+ <MaskingExceptionUserTable
size="small"
- :columns="accessUserTableColumns"
- :data="accessUserList"
- :row-key="(row: AccessUser) => row.key"
- :bordered="true"
- :striped="true"
- :max-height="'calc(100vh - 15rem)'"
- virtual-scroll
+ :access-list="accessUserList"
+ :disabled="state.processing"
+ :show-database-column="true"
+ @remove:access="onRemove"
+ @update:access="onAccessControlUpdate"
/>
</div>
</div>
@@ -160,23 +158,12 @@
<script lang="tsx" setup>
import { computedAsync } from "@vueuse/core";
import { orderBy } from "lodash-es";
-import { TrashIcon } from "lucide-vue-next";
-import { NDataTable } from "naive-ui";
-import type { SelectOption, DataTableColumn } from "naive-ui";
-import {
- NSelect,
- NButton,
- NCheckbox,
- NDatePicker,
- NPopconfirm,
-} from "naive-ui";
+import type { SelectOption } from "naive-ui";
+import { NSelect, NButton } from "naive-ui";
import { computed, reactive, watch, ref } from "vue";
import { useI18n } from "vue-i18n";
-import { RouterLink } from "vue-router";
import { useSemanticType } from "@/components/SensitiveData/useSemanticType";
-import GroupNameCell from "@/components/User/Settings/UserDataTableByGroup/cells/GroupNameCell.vue";
-import { Drawer, DrawerContent, MiniActionButton } from "@/components/v2";
-import { WORKSPACE_ROUTE_USER_PROFILE } from "@/router/dashboard/workspaceRoutes";
+import { Drawer, DrawerContent } from "@/components/v2";
import {
useSettingV1Store,
usePolicyV1Store,
@@ -193,9 +180,7 @@ import {
groupBindingPrefix,
} from "@/types";
import { Expr } from "@/types/proto/google/type/expr";
-import { type User } from "@/types/proto/v1/auth_service";
import { MaskingLevel, maskingLevelToJSON } from "@/types/proto/v1/common";
-import type { Group } from "@/types/proto/v1/group";
import type {
Policy,
MaskData,
@@ -204,27 +189,14 @@ import type {
import {
PolicyType,
PolicyResourceType,
- MaskingExceptionPolicy_MaskingException_Action,
} from "@/types/proto/v1/org_policy_service";
import { hasWorkspacePermissionV2 } from "@/utils";
-import UserAvatar from "../User/UserAvatar.vue";
import GrantAccessDrawer from "./GrantAccessDrawer.vue";
-import MaskingLevelDropdown from "./components/MaskingLevelDropdown.vue";
+import MaskingExceptionUserTable from "./MaskingExceptionUserTable.vue";
import MaskingLevelRadioGroup from "./components/MaskingLevelRadioGroup.vue";
-import type { SensitiveColumn } from "./types";
+import type { SensitiveColumn, AccessUser } from "./types";
import { getMaskDataIdentifier, isCurrentColumnException } from "./utils";
-interface AccessUser {
- type: "user" | "group";
- key: string;
- group?: Group;
- user?: User;
- supportActions: Set<MaskingExceptionPolicy_MaskingException_Action>;
- maskingLevel: MaskingLevel;
- expirationTimestamp?: number;
- rawExpression: string;
-}
-
interface LocalState {
dirty: boolean;
processing: boolean;
@@ -307,7 +279,7 @@ const getAccessUsers = (
maskingLevel: exception.maskingLevel,
expirationTimestamp,
supportActions: new Set([exception.action]),
- rawExpression: exception.condition?.expression ?? "",
+ rawExpression: expression,
};
if (exception.member.startsWith(groupBindingPrefix)) {
@@ -398,183 +370,6 @@ const updateAccessUserList = (policy: Policy | undefined) => {
);
};
-const accessUserTableColumns = computed(
- (): DataTableColumn<AccessUser & { hide?: boolean }>[] => {
- return [
- {
- type: "expand",
- expandable: (_: AccessUser) => true,
- renderExpand: (item: AccessUser) => {
- const expressions = item.rawExpression.split(" && ");
- if (
- expressions.length === 0 ||
- (expressions.length === 1 &&
- expressions[0].startsWith("request.time"))
- ) {
- expressions.push("all databases");
- }
-
- return (
- <ul class="list-disc pl-6 textinfolabel">
- {expressions.map((expression, i) => (
- <li key={`${item.key}.${i}`}>{expression}</li>
- ))}
- </ul>
- );
- },
- },
- {
- key: "member",
- title: t("common.members"),
- resizable: true,
- render: (item: AccessUser) => {
- if (item.type === "group") {
- return <GroupNameCell group={item.group!} />;
- }
-
- return (
- <div class="flex items-center gap-x-2">
- <UserAvatar size="SMALL" user={item.user} />
- <div class="flex flex-col">
- <RouterLink
- to={{
- name: WORKSPACE_ROUTE_USER_PROFILE,
- params: {
- principalEmail: item.user!.email,
- },
- }}
- class="normal-link"
- >
- {item.user!.title}
- </RouterLink>
- <span class="textinfolabel">{item.user!.email}</span>
- </div>
- </div>
- );
- },
- },
- {
- key: "export",
- title: t("settings.sensitive-data.action.export"),
- width: "5rem",
- render: (item: AccessUser, row: number) => {
- return (
- <NCheckbox
- checked={item.supportActions.has(
- MaskingExceptionPolicy_MaskingException_Action.EXPORT
- )}
- disabled={!hasPermission.value || state.processing}
- onUpdateChecked={(e) =>
- onAccessControlUpdate(row, (item) =>
- toggleAction(
- item,
- MaskingExceptionPolicy_MaskingException_Action.EXPORT,
- e
- )
- )
- }
- />
- );
- },
- },
- {
- key: "query",
- title: t("settings.sensitive-data.action.query"),
- width: "5rem",
- render: (item: AccessUser, row: number) => {
- return (
- <NCheckbox
- checked={item.supportActions.has(
- MaskingExceptionPolicy_MaskingException_Action.QUERY
- )}
- disabled={!hasPermission.value || state.processing}
- onUpdate:checked={(e) =>
- onAccessControlUpdate(row, (item) =>
- toggleAction(
- item,
- MaskingExceptionPolicy_MaskingException_Action.QUERY,
- e
- )
- )
- }
- />
- );
- },
- },
- {
- key: "level",
- title: t("settings.sensitive-data.masking-level.self"),
- render: (item: AccessUser, row: number) => {
- return (
- <MaskingLevelDropdown
- disabled={!hasPermission.value || state.processing}
- level={item.maskingLevel}
- levelList={[MaskingLevel.PARTIAL, MaskingLevel.NONE]}
- onUpdate:level={(e) =>
- onAccessControlUpdate(row, (item) => (item.maskingLevel = e))
- }
- />
- );
- },
- },
- {
- key: "expire",
- title: t("common.expiration"),
- render: (item: AccessUser, row: number) => {
- return (
- <NDatePicker
- value={item.expirationTimestamp}
- style={"width: 100%"}
- type={"datetime"}
- isDateDisabled={(date: number) => date < Date.now()}
- clearable={true}
- disabled={!hasPermission.value || state.processing}
- onUpdate:value={(val: number | undefined) =>
- onAccessControlUpdate(
- row,
- (item) => (item.expirationTimestamp = val)
- )
- }
- />
- );
- },
- },
- {
- key: "operation",
- title: "",
- hide: !hasPermission.value,
- width: "4rem",
- render: (_: AccessUser, row: number) => {
- return (
- <NPopconfirm onPositiveClick={() => onRemove(row)}>
- {{
- trigger: () => {
- return (
- <MiniActionButton
- disabled={!hasPermission.value || state.processing}
- >
- {{
- default: () => <TrashIcon class="w-4 h-4" />,
- }}
- </MiniActionButton>
- );
- },
- default: () => (
- <div class="whitespace-nowrap">
- {t(
- "settings.sensitive-data.column-detail.remove-user-permission"
- )}
- </div>
- ),
- }}
- </NPopconfirm>
- );
- },
- },
- ].filter((column) => !column.hide) as DataTableColumn<AccessUser>[];
- }
-);
-
watch(
() => [props.show, policy.value],
() => {
@@ -601,27 +396,8 @@ const onRemove = async (index: number) => {
await onSubmit();
};
-const toggleAction = (
- item: AccessUser,
- action: MaskingExceptionPolicy_MaskingException_Action,
- checked: boolean
-) => {
- if (checked) {
- item.supportActions.add(action);
- } else {
- item.supportActions.delete(action);
- }
-};
-
-const onAccessControlUpdate = async (
- index: number,
- callback: (item: AccessUser) => void
-) => {
- const item = accessUserList.value[index];
- if (!item) {
- return;
- }
- callback(item);
+const onAccessControlUpdate = async (index: number, access: AccessUser) => {
+ accessUserList.value[index] = access;
state.dirty = true;
await onSubmit();
};
diff --git a/frontend/src/components/SensitiveData/types.ts b/frontend/src/components/SensitiveData/types.ts
index 4b71a506a0..ebeb70da1e 100644
--- a/frontend/src/components/SensitiveData/types.ts
+++ b/frontend/src/components/SensitiveData/types.ts
@@ -1,7 +1,24 @@
import type { ComposedDatabase } from "@/types";
-import type { MaskData } from "@/types/proto/v1/org_policy_service";
+import { type User } from "@/types/proto/v1/auth_service";
+import { MaskingLevel } from "@/types/proto/v1/common";
+import type { Group } from "@/types/proto/v1/group";
+import type {
+ MaskData,
+ MaskingExceptionPolicy_MaskingException_Action,
+} from "@/types/proto/v1/org_policy_service";
export interface SensitiveColumn {
database: ComposedDatabase;
maskData: MaskData;
}
+
+export interface AccessUser {
+ type: "user" | "group";
+ key: string;
+ group?: Group;
+ user?: User;
+ supportActions: Set<MaskingExceptionPolicy_MaskingException_Action>;
+ maskingLevel: MaskingLevel;
+ expirationTimestamp?: number;
+ rawExpression: string;
+}
diff --git a/frontend/src/types/member.ts b/frontend/src/types/member.ts
index 187eb44f57..4802af2729 100644
--- a/frontend/src/types/member.ts
+++ b/frontend/src/types/member.ts
@@ -1,5 +1,6 @@
// IAM related resource definition.
export interface DatabaseResource {
+ instanceResourceId?: string;
// the database full name
databaseName: string;
schema?: string;
diff --git a/frontend/src/utils/issue/cel.ts b/frontend/src/utils/issue/cel.ts
index 1958f81000..1565016aa8 100644
--- a/frontend/src/utils/issue/cel.ts
+++ b/frontend/src/utils/issue/cel.ts
@@ -1,6 +1,10 @@
import { cloneDeep, last } from "lodash-es";
import type { SimpleExpr } from "@/plugins/cel";
import { isRawStringExpr, resolveCELExpr } from "@/plugins/cel";
+import {
+ databaseNamePrefix,
+ instanceNamePrefix,
+} from "@/store/modules/v1/common";
import type { DatabaseResource } from "@/types";
import type { Expr } from "@/types/proto/google/api/expr/v1alpha1/syntax";
import { batchConvertCELStringToParsedExpr } from "@/utils";
@@ -170,94 +174,7 @@ export const convertFromCELString = async (
return {};
}
- const simpleExpr = resolveCELExpr(expr);
- const conditionExpression: ConditionExpression = {
- databaseResources: [],
- };
-
- async function processCondition(expr: SimpleExpr) {
- // Do not process raw string expression.
- if (isRawStringExpr(expr)) {
- return;
- }
-
- if (expr.operator === "_&&_" || expr.operator === "_||_") {
- for (const arg of expr.args) {
- await processCondition(arg);
- }
- } else if (expr.operator === "@in") {
- const [property, values] = expr.args;
- if (typeof property === "string" && Array.isArray(values)) {
- if (property === "resource.database") {
- for (const value of values) {
- const databaseResource: DatabaseResource = {
- databaseName: value as string,
- };
- conditionExpression.databaseResources!.push(databaseResource);
- }
- } else if (property === "resource.schema") {
- const databaseResource = conditionExpression.databaseResources?.pop();
- if (databaseResource) {
- for (const value of values) {
- const temp: DatabaseResource = cloneDeep(
- databaseResource
- ) as DatabaseResource;
- temp.schema = value as string;
- conditionExpression.databaseResources!.push(temp);
- }
- }
- } else if (property === "resource.table") {
- const databaseResource = conditionExpression.databaseResources?.pop();
- if (databaseResource) {
- for (const value of values) {
- const temp: DatabaseResource = cloneDeep(
- databaseResource
- ) as DatabaseResource;
- temp.table = value as string;
- conditionExpression.databaseResources!.push(temp);
- }
- }
- }
- }
- } else if (expr.operator === "_==_") {
- const [left, right] = expr.args;
- if (typeof left === "string") {
- if (typeof right === "string") {
- if (left === "resource.database") {
- const databaseResource: DatabaseResource = {
- databaseName: right,
- };
- conditionExpression.databaseResources!.push(databaseResource);
- } else if (left === "resource.schema") {
- const databaseResource = last(
- conditionExpression.databaseResources
- );
- if (databaseResource) {
- databaseResource.schema = right;
- }
- }
- } else if (typeof right === "number") {
- if (left === "request.row_limit") {
- conditionExpression.rowLimit = right;
- }
- }
- }
- } else if (expr.operator === "_<_") {
- const [left, right] = expr.args;
- if (left === "request.time") {
- conditionExpression.expiredTime = (right as Date).toISOString();
- }
- } else if (expr.operator === "_<=_") {
- const [left, right] = expr.args;
- if (typeof right === "number") {
- if (left === "request.row_limit") {
- conditionExpression.rowLimit = right;
- }
- }
- }
- }
- await processCondition(simpleExpr);
- return conditionExpression;
+ return convertFromExpr(expr);
};
export const convertFromExpr = (expr: Expr): ConditionExpression => {
@@ -314,17 +231,49 @@ export const convertFromExpr = (expr: Expr): ConditionExpression => {
const [left, right] = expr.args;
if (typeof left === "string") {
if (typeof right === "string") {
- if (left === "resource.database") {
- const databaseResource: DatabaseResource = {
- databaseName: right,
- };
- conditionExpression.databaseResources!.push(databaseResource);
- } else if (left === "resource.schema") {
- const databaseResource = last(
- conditionExpression.databaseResources
- );
- if (databaseResource) {
- databaseResource.schema = right;
+ const databaseResource = last(conditionExpression.databaseResources);
+ switch (left) {
+ case "resource.instance_id": {
+ const databaseResource: DatabaseResource = {
+ instanceResourceId: right,
+ databaseName: "",
+ };
+ conditionExpression.databaseResources!.push(databaseResource);
+ break;
+ }
+ case "resource.database_name": {
+ if (!databaseResource?.instanceResourceId) {
+ return;
+ }
+ databaseResource.databaseName = `${instanceNamePrefix}${databaseResource.instanceResourceId}/${databaseNamePrefix}${right}`;
+ break;
+ }
+ case "resource.database": {
+ const databaseResource: DatabaseResource = {
+ databaseName: right,
+ };
+ conditionExpression.databaseResources!.push(databaseResource);
+ break;
+ }
+ case "resource.schema":
+ case "resource.schema_name": {
+ if (databaseResource) {
+ databaseResource.schema = right;
+ }
+ break;
+ }
+ case "resource.table":
+ case "resource.table_name": {
+ if (databaseResource) {
+ databaseResource.table = right;
+ }
+ break;
+ }
+ case "resource.column_name": {
+ if (databaseResource) {
+ databaseResource.column = right;
+ }
+ break;
}
}
} else if (typeof right === "number") {