Skip to content

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

chore: implement part of changelog data table (#14783)

boojack143e86b1f4b5
diff --git a/backend/api/v1/database_service_changelog.go b/backend/api/v1/database_service_changelog.go
index b3529e28ba..057c4eb9a1 100644
--- a/backend/api/v1/database_service_changelog.go
+++ b/backend/api/v1/database_service_changelog.go
@@ -212,6 +212,7 @@ func (s *DatabaseService) convertToChangelog(ctx context.Context, d *store.Datab
Version: c.Payload.GetVersion(),
Revision: "",
ChangedResources: convertToChangedResources(c.Payload.GetChangedResources()),
+ Type: convertToChangelogType(c.Payload.GetType()),
}
if sheet := c.Payload.GetSheet(); sheet != "" {
@@ -277,3 +278,20 @@ func convertToChangelogStatus(s store.ChangelogStatus) v1pb.Changelog_Status {
return v1pb.Changelog_STATUS_UNSPECIFIED
}
}
+
+func convertToChangelogType(t storepb.ChangelogPayload_Type) v1pb.Changelog_Type {
+ switch t {
+ case storepb.ChangelogPayload_BASELINE:
+ return v1pb.Changelog_BASELINE
+ case storepb.ChangelogPayload_MIGRATE:
+ return v1pb.Changelog_MIGRATE
+ case storepb.ChangelogPayload_MIGRATE_SDL:
+ return v1pb.Changelog_MIGRATE_SDL
+ case storepb.ChangelogPayload_MIGRATE_GHOST:
+ return v1pb.Changelog_MIGRATE_GHOST
+ case storepb.ChangelogPayload_DATA:
+ return v1pb.Changelog_DATA
+ default:
+ return v1pb.Changelog_TYPE_UNSPECIFIED
+ }
+}
diff --git a/frontend/src/components/ChangeHistory/ChangeHistoryDetail.vue b/frontend/src/components/ChangeHistory/ChangeHistoryDetail.vue
index d9ebba6c76..63c4102802 100644
--- a/frontend/src/components/ChangeHistory/ChangeHistoryDetail.vue
+++ b/frontend/src/components/ChangeHistory/ChangeHistoryDetail.vue
@@ -288,8 +288,7 @@ import {
useSettingV1Store,
useDatabaseV1ByName,
} from "@/store";
-import { getDateForPbTimestamp } from "@/types";
-import type { AffectedTable } from "@/types/changeHistory";
+import { getDateForPbTimestamp, type AffectedTable } from "@/types";
import { Engine } from "@/types/proto/v1/common";
import type { ChangeHistory } from "@/types/proto/v1/database_service";
import {
diff --git a/frontend/src/components/Changelist/ChangelistDetail/AddChangePanel/form/ChangeHistoryForm.vue b/frontend/src/components/Changelist/ChangelistDetail/AddChangePanel/form/ChangeHistoryForm.vue
index 28bf24fb90..bf757ef5a2 100644
--- a/frontend/src/components/Changelist/ChangelistDetail/AddChangePanel/form/ChangeHistoryForm.vue
+++ b/frontend/src/components/Changelist/ChangelistDetail/AddChangePanel/form/ChangeHistoryForm.vue
@@ -69,10 +69,12 @@ import {
useDBSchemaV1Store,
useDatabaseV1Store,
} from "@/store";
-import { isValidDatabaseName } from "@/types";
+import {
+ isValidDatabaseName,
+ type AffectedTable,
+ EmptyAffectedTable,
+} from "@/types";
import { type ComposedChangeHistory } from "@/types";
-import type { AffectedTable } from "@/types/changeHistory";
-import { EmptyAffectedTable } from "@/types/changeHistory";
import type { Changelist_Change as Change } from "@/types/proto/v1/changelist_service";
import {
ChangeHistory_Status,
diff --git a/frontend/src/components/Changelist/ChangelistDetail/AddChangePanel/form/utils.ts b/frontend/src/components/Changelist/ChangelistDetail/AddChangePanel/form/utils.ts
index a9d7921106..59a1f2ac5a 100644
--- a/frontend/src/components/Changelist/ChangelistDetail/AddChangePanel/form/utils.ts
+++ b/frontend/src/components/Changelist/ChangelistDetail/AddChangePanel/form/utils.ts
@@ -1,5 +1,5 @@
import { orderBy, uniqBy } from "lodash-es";
-import { EmptyAffectedTable } from "@/types/changeHistory";
+import { EmptyAffectedTable } from "@/types";
import type { ChangeHistory } from "@/types/proto/v1/database_service";
import { ChangeHistory_Type } from "@/types/proto/v1/database_service";
import { getAffectedTablesOfChangeHistory } from "@/utils";
diff --git a/frontend/src/components/Changelog/AffectedTablesSelect.vue b/frontend/src/components/Changelog/AffectedTablesSelect.vue
new file mode 100644
index 0000000000..d3eb06ce3e
--- /dev/null
+++ b/frontend/src/components/Changelog/AffectedTablesSelect.vue
@@ -0,0 +1,99 @@
+<template>
+ <NSelect
+ :value="selectedKeys"
+ :options="affectedTableOptions"
+ filterable
+ multiple
+ tag
+ :placeholder="$t('change-history.select-affection-tables')"
+ :render-label="renderLabel"
+ @update:value="updateSelectedKey"
+ />
+</template>
+
+<script setup lang="tsx">
+import { NSelect } from "naive-ui";
+import type { SelectOption } from "naive-ui";
+import { computed } from "vue";
+import { useDBSchemaV1Store } from "@/store";
+import { type ComposedDatabase, type Table } from "@/types";
+
+type AffectedTablesSelectOption = SelectOption & {
+ table: Table;
+ value: string;
+};
+
+const props = defineProps<{
+ database: ComposedDatabase;
+ tables?: Table[];
+}>();
+
+const emit = defineEmits<{
+ (event: "update:tables", tables?: Table[]): void;
+}>();
+
+const dbSchemaStore = useDBSchemaV1Store();
+
+const metadata = computed(() => {
+ return dbSchemaStore.getDatabaseMetadata(props.database.name);
+});
+
+const affectedTables = computed((): Table[] => {
+ return metadata.value.schemas
+ .map((schema) =>
+ schema.tables.map((table) => ({
+ schema: schema.name,
+ table: table.name,
+ }))
+ )
+ .flat();
+});
+
+const affectedTableOptions = computed(() => {
+ return affectedTables.value.map<AffectedTablesSelectOption>((table) => {
+ return {
+ value: stringifyTable(table),
+ table: table,
+ };
+ });
+});
+
+const renderLabel = (option: SelectOption) => {
+ const { table, label } = option as AffectedTablesSelectOption;
+ if (!table) return String(label);
+ return <span class="truncate">{stringifyTable(table)}</span>;
+};
+
+const selectedKeys = computed(() => {
+ return props.tables?.map((table) => stringifyTable(table)) || [];
+});
+
+const updateSelectedKey = (
+ _: string,
+ options: AffectedTablesSelectOption[]
+) => {
+ emit(
+ "update:tables",
+ options.map((option) => {
+ const { table, label } = option;
+ if (table) return table;
+
+ let schema = "";
+ let tableName = String(label);
+ if (tableName.includes(".")) {
+ schema = tableName.split(".")[0];
+ tableName = tableName.split(".").slice(1).join(".");
+ }
+ return { schema, table: tableName };
+ })
+ );
+};
+
+const stringifyTable = (table: Table) => {
+ const { schema, table: tableName } = table;
+ if (schema !== "") {
+ return `${schema}.${tableName}`;
+ }
+ return tableName;
+};
+</script>
diff --git a/frontend/src/components/Changelog/ChangeTypeSelect.vue b/frontend/src/components/Changelog/ChangeTypeSelect.vue
new file mode 100644
index 0000000000..0f91057231
--- /dev/null
+++ b/frontend/src/components/Changelog/ChangeTypeSelect.vue
@@ -0,0 +1,40 @@
+<template>
+ <NSelect
+ clearable
+ :value="changeType"
+ :options="options"
+ :placeholder="$t('issue.advanced-search.scope.type.title')"
+ @update:value="updateSelectedKey"
+ />
+</template>
+
+<script setup lang="tsx">
+import { NSelect } from "naive-ui";
+import { computed } from "vue";
+import { Changelog_Type } from "@/types/proto/v1/database_service";
+
+defineProps<{
+ changeType?: Changelog_Type;
+}>();
+
+const emit = defineEmits<{
+ (event: "update:change-type", changeType?: Changelog_Type): void;
+}>();
+
+const options = computed(() => {
+ return [
+ {
+ value: Changelog_Type.MIGRATE,
+ label: "DDL",
+ },
+ {
+ value: Changelog_Type.DATA,
+ label: "DML",
+ },
+ ];
+});
+
+const updateSelectedKey = (value: Changelog_Type) => {
+ emit("update:change-type", value);
+};
+</script>
diff --git a/frontend/src/components/Changelog/ChangelogDataTable.vue b/frontend/src/components/Changelog/ChangelogDataTable.vue
new file mode 100644
index 0000000000..40b559eac9
--- /dev/null
+++ b/frontend/src/components/Changelog/ChangelogDataTable.vue
@@ -0,0 +1,225 @@
+<template>
+ <NDataTable
+ key="changelog-table"
+ size="small"
+ :columns="columnList"
+ :data="changelogs"
+ :row-key="(changelog: Changelog) => changelog.name"
+ :striped="true"
+ :row-props="rowProps"
+ :checked-row-keys="selectedChangelogs"
+ @update:checked-row-keys="(keys) => $emit('update:selected-changelogs', keys as string[])"
+ />
+</template>
+
+<script lang="tsx" setup>
+import { type DataTableColumn, NDataTable } from "naive-ui";
+import { computed } from "vue";
+import { useI18n } from "vue-i18n";
+import { useRouter } from "vue-router";
+import { RouterLink } from "vue-router";
+import { BBAvatar } from "@/bbkit";
+import { useUserStore } from "@/store";
+import { getDateForPbTimestamp } from "@/types";
+import type { Changelog } from "@/types/proto/v1/database_service";
+import {
+ Changelog_Status,
+ Changelog_Type,
+} from "@/types/proto/v1/database_service";
+import {
+ extractIssueUID,
+ getAffectedTableDisplayName,
+ extractUserResourceName,
+} from "@/utils";
+import {
+ changelogLink,
+ extractChangelogUID,
+ getAffectedTablesOfChangelog,
+ getChangelogChangeType,
+} from "@/utils/v1/changelog";
+import HumanizeDate from "../misc/HumanizeDate.vue";
+import ChangelogStatusIcon from "./ChangelogStatusIcon.vue";
+
+const props = defineProps<{
+ changelogs: Changelog[];
+ selectedChangelogs?: string[];
+ customClick?: boolean;
+ showSelection?: boolean;
+}>();
+
+const emit = defineEmits<{
+ (event: "update:selected-changelogs", value: string[]): void;
+ (event: "row-click", id: string): void;
+}>();
+
+const router = useRouter();
+const { t } = useI18n();
+
+const columnList = computed(() => {
+ const columns: (DataTableColumn<Changelog> & { hide?: boolean })[] = [
+ {
+ type: "selection",
+ hide: !props.showSelection,
+ width: "2rem",
+ disabled: (changelog) => {
+ return !allowToSelectChangelog(changelog);
+ },
+ cellProps: () => {
+ return {
+ onClick: (e: MouseEvent) => {
+ e.stopPropagation();
+ },
+ };
+ },
+ },
+ {
+ key: "status",
+ width: "2rem",
+ render: (changelog) => {
+ return (
+ <ChangelogStatusIcon class="mx-auto" status={changelog.status} />
+ );
+ },
+ },
+ {
+ key: "type",
+ title: t("change-history.change-type"),
+ width: "4rem",
+ render: (changelog) => {
+ return (
+ <div class="flex items-center gap-x-1">
+ {getChangelogChangeType(changelog.type)}
+ </div>
+ );
+ },
+ },
+ {
+ key: "issue",
+ title: t("common.issue"),
+ width: "6rem",
+ resizable: true,
+ render: (changelog) => {
+ const uid = extractIssueUID(changelog.issue);
+ if (!uid) return null;
+ return (
+ <RouterLink
+ to={{
+ path: `/${changelog.issue}`,
+ }}
+ custom={true}
+ >
+ {{
+ default: ({ href }: { href: string }) => (
+ <a
+ href={href}
+ class="normal-link"
+ onClick={(e: MouseEvent) => e.stopPropagation()}
+ >
+ #{uid}
+ </a>
+ ),
+ }}
+ </RouterLink>
+ );
+ },
+ },
+ {
+ key: "version",
+ title: t("common.version"),
+ width: "6rem",
+ resizable: true,
+ render: (changelog) => changelog.version || "-",
+ },
+ {
+ key: "tables",
+ title: t("db.tables"),
+ width: "15rem",
+ resizable: true,
+ ellipsis: true,
+ render: (changelog) => {
+ const tables = getAffectedTablesOfChangelog(changelog);
+ if (tables.length === 0) return "-";
+ return (
+ <p class="space-x-2 truncate">
+ {tables.map((table) => (
+ <span class={table.dropped ? "text-gray-400 italic" : ""}>
+ {getAffectedTableDisplayName(table)}
+ </span>
+ ))}
+ </p>
+ );
+ },
+ },
+ {
+ key: "SQL",
+ title: "SQL",
+ resizable: true,
+ minWidth: "13rem",
+ ellipsis: true,
+ render: (changelog) => {
+ return <p class="truncate whitespace-nowrap">{changelog.statement}</p>;
+ },
+ },
+ {
+ key: "created",
+ title: t("common.created-at"),
+ width: "7rem",
+ resizable: true,
+ ellipsis: true,
+ render: (changelog) => {
+ return (
+ <HumanizeDate date={getDateForPbTimestamp(changelog.createTime)} />
+ );
+ },
+ },
+ {
+ key: "creator",
+ title: t("common.creator"),
+ width: "8rem",
+ resizable: true,
+ ellipsis: true,
+ render: (changelog) => {
+ const creator = useUserStore().getUserByEmail(
+ extractUserResourceName(changelog.creator)
+ );
+ if (!creator) return null;
+ return (
+ <div class="flex flex-row items-center overflow-hidden gap-x-1">
+ <BBAvatar size="SMALL" username={creator.title} />
+ <span class="truncate">{creator.title}</span>
+ </div>
+ );
+ },
+ },
+ ];
+ return columns.filter((col) => !col.hide);
+});
+
+const rowProps = (changelog: Changelog) => {
+ return {
+ onClick: (e: MouseEvent) => {
+ if (props.customClick) {
+ emit("row-click", extractChangelogUID(changelog.name));
+ return;
+ }
+
+ const url = changelogLink(changelog);
+ if (e.ctrlKey || e.metaKey) {
+ window.open(url, "_blank");
+ } else {
+ router.push(url);
+ }
+ },
+ };
+};
+
+const allowToSelectChangelog = (changelog: Changelog) => {
+ return (
+ changelog.status === Changelog_Status.DONE &&
+ (changelog.type === Changelog_Type.BASELINE ||
+ changelog.type === Changelog_Type.MIGRATE ||
+ changelog.type === Changelog_Type.MIGRATE_SDL ||
+ changelog.type === Changelog_Type.DATA)
+ );
+};
+</script>
diff --git a/frontend/src/components/Changelog/ChangelogDetail.vue b/frontend/src/components/Changelog/ChangelogDetail.vue
new file mode 100644
index 0000000000..868f0f2eeb
--- /dev/null
+++ b/frontend/src/components/Changelog/ChangelogDetail.vue
@@ -0,0 +1,562 @@
+<template>
+ <div class="focus:outline-none" tabindex="0" v-bind="$attrs">
+ <NoPermissionPlaceholder v-if="!hasPermission" />
+ <main v-else-if="changelog" class="flex flex-col relative gap-y-6">
+ <!-- Highlight Panel -->
+ <div
+ class="pb-4 border-b border-block-border md:flex md:items-center md:justify-between"
+ >
+ <div class="flex-1 min-w-0 space-y-3">
+ <!-- Summary -->
+ <div class="flex items-center space-x-2">
+ <ChangelogStatusIcon :status="changelog.status" />
+ <h1 class="text-xl font-bold leading-6 text-main truncate">
+ {{ $t("common.version") }} {{ changelog.version }}
+ </h1>
+ <NTag round>
+ {{ changelog_TypeToJSON(changelog.type) }}
+ </NTag>
+ </div>
+ <dl
+ class="flex flex-col space-y-1 md:space-y-0 md:flex-row md:flex-wrap"
+ >
+ <dt class="sr-only">{{ $t("common.issue") }}</dt>
+ <dd class="flex items-center text-sm md:mr-4">
+ <span class="textlabel"
+ >{{ $t("common.issue") }}&nbsp;-&nbsp;</span
+ >
+ <router-link
+ :to="{
+ path: `/${changelog.issue}`,
+ }"
+ class="normal-link"
+ >
+ #{{ extractIssueUID(changelog.issue) }}
+ </router-link>
+ </dd>
+ <dt class="sr-only">{{ $t("common.creator") }}</dt>
+ <dd v-if="creator" class="flex items-center text-sm md:mr-4">
+ <span class="textlabel"
+ >{{ $t("common.creator") }}&nbsp;-&nbsp;</span
+ >
+ {{ creator.title }}
+ </dd>
+ <dt class="sr-only">{{ $t("common.created-at") }}</dt>
+ <dd class="flex items-center text-sm md:mr-4">
+ <span class="textlabel"
+ >{{ $t("common.created-at") }}&nbsp;-&nbsp;</span
+ >
+ {{ humanizeDate(getDateForPbTimestamp(changelog.createTime)) }}
+ </dd>
+ </dl>
+ </div>
+ </div>
+
+ <div v-if="affectedTables.length > 0">
+ <span class="flex items-center text-lg text-main capitalize">
+ {{ $t("change-history.affected-tables") }}
+ </span>
+ <div>
+ <span
+ v-for="(affectedTable, i) in affectedTables"
+ :key="`${i}.${affectedTable.schema}.${affectedTable.table}`"
+ :class="[
+ 'mr-3 mb-2',
+ !affectedTable.dropped
+ ? 'text-blue-600 cursor-pointer hover:opacity-80'
+ : 'mb-2 text-gray-400 italic',
+ ]"
+ @click="handleAffectedTableClick(affectedTable)"
+ >{{ getAffectedTableDisplayName(affectedTable) }}</span
+ >
+ </div>
+ </div>
+
+ <div class="flex flex-col gap-y-6">
+ <div class="flex flex-col gap-y-2">
+ <a
+ id="statement"
+ href="#statement"
+ class="w-auto flex items-center text-lg text-main mb-2 hover:underline"
+ >
+ {{ $t("common.statement") }}
+ <button
+ tabindex="-1"
+ class="btn-icon ml-1"
+ @click.prevent="copyStatement"
+ >
+ <heroicons-outline:clipboard class="w-6 h-6" />
+ </button>
+ </a>
+ <MonacoEditor
+ class="h-auto max-h-[480px] min-h-[120px] border rounded-[3px] text-sm overflow-clip relative"
+ :content="changelogStatement"
+ :readonly="true"
+ :auto-height="{ min: 120, max: 480 }"
+ />
+ <div v-if="guessedIsBasicView">
+ <NButton
+ quaternary
+ size="small"
+ :disabled="state.loading"
+ @click="fetchFullChangelogs"
+ >
+ <template #icon>
+ <BBSpin v-if="state.loading" />
+ <ChevronDownIcon v-else class="w-5" />
+ </template>
+ {{ $t("change-history.view-full") }}
+ </NButton>
+ </div>
+ </div>
+ <div v-if="showSchemaSnapshot" class="flex flex-col gap-y-2">
+ <a
+ id="schema"
+ href="#schema"
+ class="flex items-center text-lg text-main hover:underline capitalize"
+ >
+ Schema {{ $t("common.snapshot") }}
+ <button
+ tabindex="-1"
+ class="btn-icon ml-1"
+ @click.prevent="copySchema"
+ >
+ <heroicons-outline:clipboard class="w-6 h-6" />
+ </button>
+ </a>
+
+ <div v-if="hasDrift" class="flex items-center gap-x-2">
+ <div class="flex items-center text-sm font-normal">
+ <heroicons-outline:exclamation-circle
+ class="w-5 h-5 mr-0.5 text-error"
+ />
+ <span>{{ $t("change-history.schema-drift-detected") }}</span>
+ </div>
+ <div
+ class="normal-link text-sm"
+ data-label="bb-changelog-view-drift-button"
+ @click="state.viewDrift = true"
+ >
+ {{ $t("change-history.view-drift") }}
+ </div>
+ </div>
+
+ <div class="flex flex-row items-center gap-x-2">
+ <div v-if="allowShowDiff" class="flex space-x-1 items-center">
+ <NSwitch
+ :value="state.showDiff"
+ size="small"
+ :disabled="state.loading"
+ data-label="bb-changelog-diff-switch"
+ @update:value="switchShowDiff"
+ />
+ <span class="text-sm font-semibold">
+ {{ $t("change-history.show-diff") }}
+ </span>
+ </div>
+ <div class="textinfolabel">
+ <i18n-t
+ v-if="state.showDiff"
+ tag="span"
+ keypath="change-history.left-vs-right"
+ >
+ <template #prevLink>
+ <router-link
+ v-if="previousChangelog"
+ class="normal-link"
+ :to="previousChangelogLink"
+ >
+ ({{ previousChangelog.version }})
+ </router-link>
+ </template>
+ </i18n-t>
+ <template v-else>
+ {{ $t("change-history.schema-snapshot-after-change") }}
+ </template>
+ </div>
+ <div v-if="!allowShowDiff" class="text-sm font-normal text-accent">
+ ({{ $t("change-history.no-schema-change") }})
+ </div>
+ </div>
+
+ <DiffEditor
+ v-if="state.showDiff"
+ class="h-auto max-h-[600px] min-h-[120px] border rounded-md text-sm overflow-clip"
+ :original="changelog.prevSchema"
+ :modified="changelog.schema"
+ :readonly="true"
+ :auto-height="{ min: 120, max: 600 }"
+ />
+ <template v-else>
+ <div v-if="changelog.schema" class="space-y-2">
+ <MonacoEditor
+ class="h-auto max-h-[600px] min-h-[120px] border rounded-md text-sm overflow-clip relative"
+ :content="changelogSchema"
+ :readonly="true"
+ :auto-height="{ min: 120, max: 600 }"
+ />
+ <div
+ v-if="
+ getStatementSize(changelog.schema).ne(changelog.schemaSize)
+ "
+ >
+ <NButton
+ quaternary
+ size="small"
+ :disabled="state.loading"
+ @click="fetchFullChangelogs"
+ >
+ <template #icon>
+ <BBSpin v-if="state.loading" />
+ <ChevronDownIcon v-else class="w-5" />
+ </template>
+ {{ $t("change-history.view-full") }}
+ </NButton>
+ </div>
+ </div>
+ <div v-else>
+ {{ $t("change-history.current-schema-empty") }}
+ </div>
+ </template>
+ </div>
+ </div>
+ </main>
+
+ <BBModal
+ v-if="changelog && previousChangelog && state.viewDrift"
+ @close="state.viewDrift = false"
+ >
+ <template #title>
+ <span>{{ $t("change-history.schema-drift") }}</span>
+ <span class="mx-2">-</span>
+ <i18n-t tag="span" keypath="change-history.left-vs-right">
+ <template #prevLink>
+ <router-link class="normal-link" :to="previousChangelogLink">
+ ({{ previousChangelog.version }})
+ </router-link>
+ </template>
+ </i18n-t>
+ </template>
+
+ <div
+ class="space-y-4 flex flex-col overflow-hidden"
+ style="width: calc(100vw - 10rem); height: calc(100vh - 12rem)"
+ >
+ <DiffEditor
+ class="flex-1 w-full border rounded-md overflow-clip"
+ :original="previousChangelog.schema"
+ :modified="changelog.schema"
+ :readonly="true"
+ />
+ <div class="flex justify-end">
+ <NButton type="primary" @click.prevent="state.viewDrift = false">
+ {{ $t("common.close") }}
+ </NButton>
+ </div>
+ </div>
+ </BBModal>
+ </div>
+
+ <TableDetailDrawer
+ :show="!!selectedAffectedTable"
+ :database-name="database.name"
+ :schema-name="selectedAffectedTable?.schema ?? ''"
+ :table-name="selectedAffectedTable?.table ?? ''"
+ :classification-config="classificationConfig"
+ @dismiss="selectedAffectedTable = undefined"
+ />
+</template>
+
+<script lang="ts" setup>
+import { useTitle } from "@vueuse/core";
+import { ChevronDownIcon } from "lucide-vue-next";
+import { NButton, NSwitch, NTag } from "naive-ui";
+import { computed, reactive, watch, ref, unref } from "vue";
+import { BBModal, BBSpin } from "@/bbkit";
+import { DiffEditor, MonacoEditor } from "@/components/MonacoEditor";
+import TableDetailDrawer from "@/components/TableDetailDrawer.vue";
+import {
+ pushNotification,
+ useChangelogStore,
+ useDBSchemaV1Store,
+ useUserStore,
+ useSettingV1Store,
+ useDatabaseV1ByName,
+} from "@/store";
+import { getDateForPbTimestamp, type AffectedTable } from "@/types";
+import { Engine } from "@/types/proto/v1/common";
+import type { Changelog } from "@/types/proto/v1/database_service";
+import {
+ Changelog_Type,
+ changelog_TypeToJSON,
+ ChangelogView,
+} from "@/types/proto/v1/database_service";
+import {
+ extractIssueUID,
+ extractUserResourceName,
+ toClipboard,
+ getStatementSize,
+ hasProjectPermissionV2,
+ getAffectedTableDisplayName,
+} from "@/utils";
+import {
+ changelogLink,
+ extractChangelogUID,
+ getAffectedTablesOfChangelog,
+} from "@/utils/v1/changelog";
+import NoPermissionPlaceholder from "../misc/NoPermissionPlaceholder.vue";
+import ChangelogStatusIcon from "./ChangelogStatusIcon.vue";
+
+interface LocalState {
+ showDiff: boolean;
+ viewDrift: boolean;
+ loading: boolean;
+}
+
+const props = defineProps<{
+ instance: string;
+ database: string;
+ changelogId: string;
+}>();
+
+const state = reactive<LocalState>({
+ showDiff: false,
+ viewDrift: false,
+ loading: false,
+});
+
+const dbSchemaStore = useDBSchemaV1Store();
+const settingStore = useSettingV1Store();
+const changelogStore = useChangelogStore();
+const selectedAffectedTable = ref<AffectedTable | undefined>();
+
+const { database } = useDatabaseV1ByName(props.database);
+
+const hasPermission = computed(() =>
+ hasProjectPermissionV2(database.value.projectEntity, "bb.changeHistories.get")
+);
+
+const classificationConfig = computed(() => {
+ return settingStore.getProjectClassification(
+ database.value.projectEntity.dataClassificationConfigId
+ );
+});
+
+const changelogName = computed(() => {
+ return `${props.database}/changelogs/${props.changelogId}`;
+});
+
+const affectedTables = computed(() => {
+ if (changelog.value === undefined) {
+ return [];
+ }
+ return getAffectedTablesOfChangelog(changelog.value);
+});
+
+const showSchemaSnapshot = computed(() => {
+ return database.value.instanceResource.engine !== Engine.RISINGWAVE;
+});
+
+watch(
+ [database.value.name, changelogName],
+ async ([_, name]) => {
+ await Promise.all([
+ dbSchemaStore.getOrFetchDatabaseMetadata({
+ database: database.value.name,
+ skipCache: false,
+ }),
+ changelogStore.getOrFetchChangelogByName(
+ unref(name),
+ ChangelogView.CHANGELOG_VIEW_FULL
+ ),
+ ]);
+ },
+ { immediate: true }
+);
+
+const switchShowDiff = async (showDiff: boolean) => {
+ await fetchFullChangelogs();
+ state.showDiff = showDiff;
+};
+
+const handleAffectedTableClick = (affectedTable: AffectedTable): void => {
+ if (affectedTable.dropped) {
+ return;
+ }
+ selectedAffectedTable.value = affectedTable;
+};
+
+// get all change histories before (include) the one of given id, ordered by descending version.
+const prevChangelogList = computed(() => {
+ const changelogList = changelogStore.changelogListByDatabase(
+ database.value.name
+ );
+
+ // The returned changelog list has been ordered by `id` DESC or (`namespace` ASC, `sequence` DESC) .
+ // We can obtain prevChangelogList by cutting up the array by the `changeHistoryId`.
+ const idx = changelogList.findIndex(
+ (changelog) => extractChangelogUID(changelog.name) === props.changelogId
+ );
+ if (idx === -1) {
+ return [];
+ }
+ return changelogList.slice(idx);
+});
+
+const changelog = computed((): Changelog | undefined => {
+ return changelogStore.getChangelogByName(changelogName.value);
+});
+
+const changelogSchema = computed(() => {
+ if (!changelog.value) {
+ return "";
+ }
+ let schema = changelog.value.schema;
+ if (guessedIsBasicView.value) {
+ schema = `${schema}${schema.endsWith("\n") ? "" : "\n"}...`;
+ }
+ return schema;
+});
+
+const changelogStatement = computed(() => {
+ if (!changelog.value) {
+ return "";
+ }
+ let statement = changelog.value.statement;
+ if (
+ getStatementSize(changelog.value.statement).lt(
+ changelog.value.statementSize
+ )
+ ) {
+ statement = `${statement}${statement.endsWith("\n") ? "" : "\n"}...`;
+ }
+ return statement;
+});
+
+// previousChangelog is the last changelog before the one of given id.
+// Only referenced if hasDrift is true.
+const previousChangelog = computed((): Changelog | undefined => {
+ const prev = prevChangelogList.value[1];
+ if (!prev) return undefined;
+ return changelogStore.getChangelogByName(prev.name) ?? prev;
+});
+
+const fetchFullPreviousChangelog = async () => {
+ const prev = previousChangelog.value;
+ if (!prev) return;
+ await changelogStore.getOrFetchChangelogByName(
+ prev.name,
+ ChangelogView.CHANGELOG_VIEW_FULL
+ );
+};
+
+const fetchFullChangelogs = async () => {
+ if (state.loading) {
+ return;
+ }
+ state.loading = true;
+ try {
+ await Promise.all([
+ changelogStore.getOrFetchChangelogByName(
+ changelogName.value,
+ ChangelogView.CHANGELOG_VIEW_FULL
+ ),
+ fetchFullPreviousChangelog(),
+ ]);
+ } finally {
+ state.loading = false;
+ }
+};
+
+const guessedIsBasicView = computed(() => {
+ if (!changelog.value) return true;
+ return getStatementSize(changelog.value.statement).ne(
+ changelog.value.statementSize
+ );
+});
+
+// "Show diff" feature is enabled when current migration has changed the schema.
+const allowShowDiff = computed((): boolean => {
+ if (!changelog.value) {
+ return false;
+ }
+ return true;
+});
+
+// A schema drift is detected when the schema AFTER previousChangelog has been
+// changed unexpectedly BEFORE current changelog.
+const hasDrift = computed((): boolean => {
+ if (!changelog.value) {
+ return false;
+ }
+ if (changelog.value.type === Changelog_Type.BASELINE) {
+ return false;
+ }
+ if (guessedIsBasicView.value) {
+ return false;
+ }
+
+ return (
+ prevChangelogList.value.length > 1 && // no drift if no previous changelog
+ previousChangelog.value?.schema !== changelog.value.prevSchema
+ );
+});
+
+const creator = computed(() => {
+ if (!changelog.value) {
+ return undefined;
+ }
+ const email = extractUserResourceName(changelog.value.creator);
+ return useUserStore().getUserByEmail(email);
+});
+
+const previousChangelogLink = computed(() => {
+ const previous = previousChangelog.value;
+ if (!previous) return "";
+ return changelogLink(previous);
+});
+
+const copyStatement = async () => {
+ await fetchFullChangelogs();
+
+ if (!changelogStatement.value) {
+ return false;
+ }
+ toClipboard(changelogStatement.value).then(() => {
+ pushNotification({
+ module: "bytebase",
+ style: "INFO",
+ title: `Statement copied to clipboard.`,
+ });
+ });
+};
+
+const copySchema = async () => {
+ await fetchFullChangelogs();
+
+ if (!changelogSchema.value) {
+ return false;
+ }
+ toClipboard(changelogSchema.value).then(() => {
+ pushNotification({
+ module: "bytebase",
+ style: "INFO",
+ title: `Schema copied to clipboard.`,
+ });
+ });
+};
+
+watch(
+ guessedIsBasicView,
+ (basic) => {
+ if (!basic) {
+ fetchFullPreviousChangelog();
+ }
+ },
+ {
+ immediate: true,
+ }
+);
+
+useTitle(changelog.value?.version || "Changelog");
+</script>
diff --git a/frontend/src/components/Changelog/ChangelogStatusIcon.vue b/frontend/src/components/Changelog/ChangelogStatusIcon.vue
new file mode 100644
index 0000000000..815d4bbf5c
--- /dev/null
+++ b/frontend/src/components/Changelog/ChangelogStatusIcon.vue
@@ -0,0 +1,48 @@
+<template>
+ <span
+ class="flex items-center justify-center rounded-full select-none"
+ :class="iconClass()"
+ >
+ <template v-if="status === Changelog_Status.PENDING">
+ <span
+ class="h-2 w-2 bg-info rounded-full"
+ style="animation: pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite"
+ aria-hidden="true"
+ ></span>
+ </template>
+ <template v-else-if="status === Changelog_Status.DONE">
+ <heroicons-solid:check class="w-4 h-4" />
+ </template>
+ <template v-else-if="status === Changelog_Status.FAILED">
+ <span
+ class="h-2 w-2 rounded-full text-center pb-6 font-normal text-base"
+ aria-hidden="true"
+ >!</span
+ >
+ </template>
+ </span>
+</template>
+
+<script lang="ts" setup>
+import type { PropType } from "vue";
+import { Changelog_Status } from "@/types/proto/v1/database_service";
+
+const props = defineProps({
+ status: {
+ required: true,
+ type: String as PropType<Changelog_Status>,
+ },
+});
+
+const iconClass = () => {
+ const iconClass = "w-5 h-5";
+ switch (props.status) {
+ case Changelog_Status.PENDING:
+ return iconClass + " bg-white border-2 border-info text-info";
+ case Changelog_Status.DONE:
+ return iconClass + " bg-success text-white";
+ case Changelog_Status.FAILED:
+ return iconClass + " bg-error text-white";
+ }
+};
+</script>
diff --git a/frontend/src/components/Changelog/PagedChangelogTable.vue b/frontend/src/components/Changelog/PagedChangelogTable.vue
new file mode 100644
index 0000000000..2e71380154
--- /dev/null
+++ b/frontend/src/components/Changelog/PagedChangelogTable.vue
@@ -0,0 +1,195 @@
+<template>
+ <slot name="table" :list="state.changelogList" :loading="state.loading" />
+
+ <div
+ v-if="state.loading"
+ class="flex items-center justify-center py-2 text-gray-400 text-sm"
+ >
+ <BBSpin />
+ </div>
+
+ <slot
+ v-if="!state.loading"
+ name="more"
+ :has-more="!!state.paginationToken"
+ :fetch-next-page="fetchNextPage"
+ >
+ <div
+ v-if="!hideLoadMore && pageSize > 0 && state.paginationToken"
+ class="flex items-center justify-center py-2 text-gray-400 text-sm hover:bg-gray-200 cursor-pointer"
+ @click="fetchNextPage"
+ >
+ {{ $t("common.load-more") }}
+ </div>
+ </slot>
+</template>
+
+<script lang="ts" setup>
+import { useSessionStorage } from "@vueuse/core";
+import { stringify } from "qs";
+import type { PropType } from "vue";
+import { computed, reactive, watch } from "vue";
+import { BBSpin } from "@/bbkit";
+import { databaseServiceClient } from "@/grpcweb";
+import { useIsLoggedIn } from "@/store";
+import type { ComposedDatabase, SearchChangeLogParams } from "@/types";
+import type { Changelog } from "@/types/proto/v1/database_service";
+
+type LocalState = {
+ loading: boolean;
+ changelogList: Changelog[];
+ paginationToken: string;
+};
+
+type SessionState = {
+ // How many times the user clicks the "load more" button.
+ page: number;
+ // Help us to check if the session is outdated.
+ updatedTs: number;
+};
+
+const MAX_PAGE_SIZE = 1000;
+const SESSION_LIFE = 1 * 60 * 1000; // 1 minute
+
+const props = defineProps({
+ // A unique key to identify the session state.
+ sessionKey: {
+ type: String,
+ required: true,
+ },
+ database: {
+ type: Object as PropType<ComposedDatabase>,
+ required: true,
+ },
+ searchChangelogs: {
+ type: Object as PropType<SearchChangeLogParams>,
+ default: () => ({}),
+ },
+ pageSize: {
+ type: Number,
+ default: 20, // Default to 20.
+ },
+ hideLoadMore: {
+ type: Boolean,
+ default: false,
+ },
+});
+
+const emit = defineEmits<{
+ (event: "list:update", list: Changelog[]): void;
+}>();
+
+const state = reactive<LocalState>({
+ loading: false,
+ changelogList: [],
+ paginationToken: "",
+});
+
+const sessionState = useSessionStorage<SessionState>(props.sessionKey, {
+ page: 1,
+ updatedTs: 0,
+});
+
+const isLoggedIn = useIsLoggedIn();
+
+const limit = computed(() => {
+ if (props.pageSize <= 0) return MAX_PAGE_SIZE;
+ return props.pageSize;
+});
+
+const condition = computed(() => {
+ const searchChangelogs = {
+ ...props.searchChangelogs,
+ limit: limit.value,
+ };
+ return stringify(searchChangelogs, {
+ arrayFormat: "repeat",
+ });
+});
+
+const buildFilter = (search: SearchChangeLogParams): string => {
+ const filter: string[] = [];
+ if (search.types && search.types.length > 0) {
+ filter.push(`type = "${search.types.join(" | ")}"`);
+ }
+ if (search.tables && search.tables.length > 0) {
+ filter.push(
+ `table = "${search.tables.map((table) => `tableExists('${props.database.databaseName}', '${table.schema}', '${table.table}')`).join(" || ")}"`
+ );
+ }
+ return filter.join(" && ");
+};
+
+const fetchData = async (refresh = false) => {
+ state.loading = true;
+
+ const isFirstFetch = state.paginationToken === "";
+ const expectedRowCount = isFirstFetch
+ ? // Load one or more page for the first fetch to restore the session
+ limit.value * sessionState.value.page
+ : // Always load one page if NOT the first fetch
+ limit.value;
+
+ try {
+ const { nextPageToken, changelogs } =
+ await databaseServiceClient.listChangelogs({
+ parent: props.database.name,
+ filter: buildFilter(props.searchChangelogs),
+ pageSize: expectedRowCount,
+ pageToken: state.paginationToken,
+ });
+ if (refresh) {
+ state.changelogList = changelogs;
+ } else {
+ state.changelogList.push(...changelogs);
+ }
+
+ if (!isFirstFetch && changelogs.length === expectedRowCount) {
+ // If we didn't reach the end, memorize we've clicked the "load more" button.
+ sessionState.value.page++;
+ }
+
+ sessionState.value.updatedTs = Date.now();
+ state.paginationToken = nextPageToken;
+ } catch (e) {
+ console.error(e);
+ } finally {
+ state.loading = false;
+ }
+};
+
+const resetSession = () => {
+ sessionState.value = {
+ page: 1,
+ updatedTs: 0,
+ };
+};
+
+const refresh = () => {
+ state.paginationToken = "";
+ resetSession();
+ fetchData(true);
+};
+
+const fetchNextPage = () => {
+ fetchData(false);
+};
+
+if (Date.now() - sessionState.value.updatedTs > SESSION_LIFE) {
+ // Reset session if it's outdated.
+ resetSession();
+}
+fetchData(true);
+watch(condition, refresh);
+watch(isLoggedIn, () => {
+ // Reset session when logged out.
+ if (!isLoggedIn.value) {
+ resetSession();
+ }
+});
+
+watch(
+ () => state.changelogList,
+ (list) => emit("list:update", list)
+);
+</script>
diff --git a/frontend/src/components/Changelog/index.ts b/frontend/src/components/Changelog/index.ts
new file mode 100644
index 0000000000..136254831b
--- /dev/null
+++ b/frontend/src/components/Changelog/index.ts
@@ -0,0 +1,15 @@
+import AffectedTablesSelect from "./AffectedTablesSelect.vue";
+import ChangeTypeSelect from "./ChangeTypeSelect.vue";
+import ChangelogDataTable from "./ChangelogDataTable.vue";
+import ChangelogDetail from "./ChangelogDetail.vue";
+import ChangelogStatusIcon from "./ChangelogStatusIcon.vue";
+import PagedChangelogTable from "./PagedChangelogTable.vue";
+
+export {
+ ChangelogDetail,
+ ChangeTypeSelect,
+ ChangelogStatusIcon,
+ ChangelogDataTable,
+ PagedChangelogTable,
+ AffectedTablesSelect,
+};
diff --git a/frontend/src/components/Database/DatabaseChangeHistoryPanel.vue b/frontend/src/components/Database/DatabaseChangeHistoryPanel.vue
index 9d1e9e0245..2be28e480e 100644
--- a/frontend/src/components/Database/DatabaseChangeHistoryPanel.vue
+++ b/frontend/src/components/Database/DatabaseChangeHistoryPanel.vue
@@ -144,9 +144,8 @@ import {
} from "@/router/dashboard/projectV1";
import { useChangeHistoryStore, useDBSchemaV1Store } from "@/store";
import { DEFAULT_PAGE_SIZE } from "@/store/modules/common";
-import type { ComposedDatabase } from "@/types";
+import type { ComposedDatabase, Table } from "@/types";
import { DEFAULT_PROJECT_NAME } from "@/types";
-import type { Table } from "@/types/changeHistory";
import {
ChangeHistory_Status,
ChangeHistory_Type,
diff --git a/frontend/src/components/Database/DatabaseChangelogPanel.vue b/frontend/src/components/Database/DatabaseChangelogPanel.vue
new file mode 100644
index 0000000000..339828551c
--- /dev/null
+++ b/frontend/src/components/Database/DatabaseChangelogPanel.vue
@@ -0,0 +1,296 @@
+<template>
+ <div class="flex flex-col space-y-4" v-bind="$attrs">
+ <div class="w-full flex flex-row justify-between items-center space-x-2">
+ <div class="flex flex-row justify-start items-center space-x-4">
+ <div class="w-52">
+ <AffectedTablesSelect
+ v-model:tables="state.selectedAffectedTables"
+ :database="database"
+ />
+ </div>
+ <div class="w-40">
+ <ChangeTypeSelect
+ v-model:change-type="state.selectedChangeType"
+ :changelogs="changelogs"
+ />
+ </div>
+ </div>
+ <div class="flex flex-row justify-end items-center grow space-x-2">
+ <BBSpin
+ v-if="state.loading"
+ :size="20"
+ :title="$t('change-history.refreshing-history')"
+ />
+ <TooltipButton
+ tooltip-mode="DISABLED-ONLY"
+ :disabled="!allowExportChangelog"
+ :loading="state.isExporting"
+ @click="handleExportChangelogs"
+ >
+ <template #default>
+ {{ $t("change-history.export") }}
+ </template>
+ <template #tooltip>
+ <div class="whitespace-pre-line">
+ {{ $t("change-history.need-to-select-first") }}
+ </div>
+ </template>
+ </TooltipButton>
+ <TooltipButton
+ v-if="allowAlterSchema"
+ tooltip-mode="DISABLED-ONLY"
+ :disabled="
+ !selectedChangelogForRollback ||
+ getChangelogChangeType(selectedChangelogForRollback.type) !== 'DDL'
+ "
+ @click="rollback"
+ >
+ <template #default>
+ {{ $t("common.rollback") }}
+ </template>
+ <template #tooltip>
+ <div class="whitespace-pre-line">
+ {{ $t("change-history.rollback-tip") }}
+ </div>
+ </template>
+ </TooltipButton>
+ <TooltipButton
+ v-if="allowEstablishBaseline"
+ tooltip-mode="DISABLED-ONLY"
+ :disabled="false"
+ type="primary"
+ @click="state.showBaselineModal = true"
+ >
+ <template #default>
+ {{ $t("change-history.establish-baseline") }}
+ </template>
+ <template v-if="database.project === DEFAULT_PROJECT_NAME" #tooltip>
+ <div class="whitespace-pre-line">
+ {{
+ $t("issue.not-allowed-to-operate-unassigned-database", {
+ operation: $t(
+ "change-history.establish-baseline"
+ ).toLowerCase(),
+ })
+ }}
+ </div>
+ </template>
+ </TooltipButton>
+ </div>
+ </div>
+
+ <PagedChangelogTable
+ :database="database"
+ :search-changelogs="{
+ tables: state.selectedAffectedTables,
+ types: state.selectedChangeType
+ ? [state.selectedChangeType]
+ : undefined,
+ }"
+ session-key="bb.paged-changelog-table"
+ >
+ <template #table="{ list, loading }">
+ <ChangelogDataTable
+ :key="`changelog-table.${database.name}`"
+ v-model:selected-changelogs="state.selectedChangelogNames"
+ :loading="loading"
+ :changelogs="list"
+ :show-selection="true"
+ />
+ </template>
+ </PagedChangelogTable>
+ </div>
+
+ <BBAlert
+ v-model:show="state.showBaselineModal"
+ data-label="bb-change-history-establish-baseline-alert"
+ type="info"
+ :ok-text="$t('change-history.establish-baseline')"
+ :cancel-text="$t('common.cancel')"
+ :title="
+ $t('change-history.establish-database-baseline', {
+ name: database.databaseName,
+ })
+ "
+ :description="$t('change-history.establish-baseline-description')"
+ @ok="doCreateBaseline"
+ @cancel="state.showBaselineModal = false"
+ />
+</template>
+
+<script lang="ts" setup>
+import dayjs from "dayjs";
+import saveAs from "file-saver";
+import JSZip from "jszip";
+import { computed, onBeforeMount, reactive } from "vue";
+import { useI18n } from "vue-i18n";
+import { useRouter } from "vue-router";
+import { BBAlert, BBSpin } from "@/bbkit";
+import {
+ AffectedTablesSelect,
+ ChangeTypeSelect,
+ ChangelogDataTable,
+ PagedChangelogTable,
+} from "@/components/Changelog";
+import { useDatabaseDetailContext } from "@/components/Database/context";
+import { TooltipButton } from "@/components/v2";
+import {
+ PROJECT_V1_ROUTE_ISSUE_DETAIL,
+ PROJECT_V1_ROUTE_SYNC_SCHEMA,
+} from "@/router/dashboard/projectV1";
+import { useChangelogStore, useDBSchemaV1Store } from "@/store";
+import { DEFAULT_PAGE_SIZE } from "@/store/modules/common";
+import type { ComposedDatabase, Table } from "@/types";
+import { DEFAULT_PROJECT_NAME } from "@/types";
+import {
+ Changelog_Status,
+ Changelog_Type,
+ ChangelogView,
+} from "@/types/proto/v1/database_service";
+import { extractProjectResourceName } from "@/utils";
+import { getChangelogChangeType } from "@/utils/v1/changelog";
+
+interface LocalState {
+ showBaselineModal: boolean;
+ loading: boolean;
+ selectedChangelogNames: string[];
+ isExporting: boolean;
+ selectedAffectedTables: Table[];
+ selectedChangeType?: Changelog_Type;
+}
+
+const props = defineProps<{
+ database: ComposedDatabase;
+}>();
+
+const { t } = useI18n();
+const router = useRouter();
+const changelogStore = useChangelogStore();
+
+const state = reactive<LocalState>({
+ showBaselineModal: false,
+ loading: false,
+ selectedChangelogNames: [],
+ isExporting: false,
+ selectedAffectedTables: [],
+});
+
+const { allowAlterSchema } = useDatabaseDetailContext();
+
+const prepareChangelogList = async () => {
+ state.loading = true;
+ await changelogStore.fetchChangelogList({
+ parent: props.database.name,
+ pageSize: DEFAULT_PAGE_SIZE,
+ });
+ // prepare database metadata for getting affected tables.
+ await useDBSchemaV1Store().getOrFetchDatabaseMetadata({
+ database: props.database.name,
+ skipCache: true, // Skip cache to get the latest metadata.
+ });
+ state.loading = false;
+};
+
+onBeforeMount(prepareChangelogList);
+
+const allowExportChangelog = computed(() => {
+ return state.selectedChangelogNames.length > 0;
+});
+
+const allowEstablishBaseline = computed(() => {
+ return allowAlterSchema.value;
+});
+
+const changelogs = computed(() => {
+ return changelogStore.changelogListByDatabase(props.database.name);
+});
+
+const selectedChangelogForRollback = computed(() => {
+ if (state.selectedChangelogNames.length !== 1) {
+ return;
+ }
+ return changelogStore.getChangelogByName(state.selectedChangelogNames[0]);
+});
+
+const rollback = () => {
+ if (!selectedChangelogForRollback.value) {
+ return;
+ }
+
+ router.push({
+ name: PROJECT_V1_ROUTE_SYNC_SCHEMA,
+ params: {
+ projectId: extractProjectResourceName(props.database.project),
+ },
+ query: {
+ version: selectedChangelogForRollback.value.name,
+ target: props.database.name,
+ },
+ });
+};
+
+const handleExportChangelogs = async () => {
+ if (state.isExporting) {
+ return;
+ }
+
+ state.isExporting = true;
+ const zip = new JSZip();
+ for (const name of state.selectedChangelogNames) {
+ const changelog = await changelogStore.fetchChangelog({
+ name,
+ view: ChangelogView.CHANGELOG_VIEW_FULL,
+ });
+
+ if (changelog) {
+ if (changelog.status !== Changelog_Status.DONE) {
+ continue;
+ }
+
+ if (
+ changelog.type === Changelog_Type.MIGRATE ||
+ changelog.type === Changelog_Type.MIGRATE_SDL ||
+ changelog.type === Changelog_Type.DATA
+ ) {
+ zip.file(`${changelog.version}.sql`, changelog.statement);
+ } else if (changelog.type === Changelog_Type.BASELINE) {
+ zip.file(`${changelog.version}_baseline.sql`, changelog.schema);
+ } else {
+ // NOT SUPPORTED.
+ }
+ }
+ }
+
+ try {
+ const content = await zip.generateAsync({ type: "blob" });
+ const fileName = `${props.database.databaseName}_${dayjs().format(
+ "YYYYMMDD"
+ )}.zip`;
+ saveAs(content, fileName);
+ } catch (error) {
+ console.error(error);
+ }
+
+ state.selectedChangelogNames = [];
+ state.isExporting = false;
+};
+
+const doCreateBaseline = () => {
+ state.showBaselineModal = false;
+
+ router.push({
+ name: PROJECT_V1_ROUTE_ISSUE_DETAIL,
+ params: {
+ projectId: extractProjectResourceName(props.database.project),
+ issueSlug: "create",
+ },
+ query: {
+ template: "bb.issue.database.schema.baseline",
+ name: t("change-history.establish-database-baseline", {
+ name: props.database.databaseName,
+ }),
+ databaseList: props.database.name,
+ },
+ });
+};
+</script>
diff --git a/frontend/src/router/dashboard/projectV1.ts b/frontend/src/router/dashboard/projectV1.ts
index 2d810b31f9..8ee990170f 100644
--- a/frontend/src/router/dashboard/projectV1.ts
+++ b/frontend/src/router/dashboard/projectV1.ts
@@ -9,6 +9,7 @@ export const PROJECT_V1_ROUTE_MASKING_ACCESS = `${PROJECT_V1_ROUTE_DASHBOARD}.ma
export const PROJECT_V1_ROUTE_MASKING_ACCESS_CREATE = `${PROJECT_V1_ROUTE_DASHBOARD}.masking-access.create`;
export const PROJECT_V1_ROUTE_DATABASE_DETAIL = `${PROJECT_V1_ROUTE_DASHBOARD}.database.detail`;
export const PROJECT_V1_ROUTE_DATABASE_CHANGE_HISTORY_DETAIL = `${PROJECT_V1_ROUTE_DASHBOARD}.database.change-history.detail`;
+export const PROJECT_V1_ROUTE_DATABASE_CHANGELOG_DETAIL = `${PROJECT_V1_ROUTE_DASHBOARD}.database.changelog.detail`;
export const PROJECT_V1_ROUTE_DATABASE_REVISION_DETAIL = `${PROJECT_V1_ROUTE_DASHBOARD}.database.revision.detail`;
export const PROJECT_V1_ROUTE_DATABASE_GROUPS = `${PROJECT_V1_ROUTE_DASHBOARD}.database-group`;
export const PROJECT_V1_ROUTE_DATABASE_GROUPS_CREATE = `${PROJECT_V1_ROUTE_DASHBOARD}.database-group.create`;
@@ -503,6 +504,27 @@ const projectV1Routes: RouteRecordRaw[] = [
changeHistoryId: route.params.changeHistoryId,
}),
},
+ {
+ path: "changelogs/:changelogId",
+ name: PROJECT_V1_ROUTE_DATABASE_CHANGELOG_DETAIL,
+ meta: {
+ overrideTitle: true,
+ requiredProjectPermissionList: () => [
+ "bb.projects.get",
+ "bb.databases.get",
+ // TODO: add changelogs related permission.
+ ],
+ },
+ component: () =>
+ import("@/views/DatabaseDetail/ChangelogDetail.vue"),
+ props: (route) => ({
+ ...route.params,
+ project: `projects/${route.params.projectId}`,
+ instance: `instances/${route.params.instanceId}`,
+ database: `instances/${route.params.instanceId}/databases/${route.params.databaseName}`,
+ changelogId: route.params.changelogId,
+ }),
+ },
{
path: "revisions/:revisionId",
name: PROJECT_V1_ROUTE_DATABASE_REVISION_DETAIL,
diff --git a/frontend/src/store/modules/v1/changelog.ts b/frontend/src/store/modules/v1/changelog.ts
new file mode 100644
index 0000000000..ba574133af
--- /dev/null
+++ b/frontend/src/store/modules/v1/changelog.ts
@@ -0,0 +1,113 @@
+import { defineStore } from "pinia";
+import { reactive } from "vue";
+import { databaseServiceClient } from "@/grpcweb";
+import { useCache } from "@/store/cache";
+import { UNKNOWN_ID } from "@/types";
+import {
+ ChangelogView,
+ GetChangelogRequest,
+ ListChangelogsRequest,
+ type Changelog,
+} from "@/types/proto/v1/database_service";
+import { extractChangelogUID } from "@/utils/v1/changelog";
+import { DEFAULT_PAGE_SIZE } from "../common";
+
+type CacheKeyType = [string /* name */, ChangelogView];
+
+export const useChangelogStore = defineStore("changelog", () => {
+ const cache = useCache<CacheKeyType, Changelog>("bb.changelog.by-name");
+ const changelogsMapByDatabase = reactive(new Map<string, Changelog[]>());
+
+ const upsertChangelogsMap = async (
+ parent: string,
+ changelogs: Changelog[]
+ ) => {
+ changelogsMapByDatabase.set(parent, changelogs);
+ changelogs.forEach((changelog) => {
+ cache.setEntity(
+ [changelog.name, ChangelogView.CHANGELOG_VIEW_BASIC],
+ changelog
+ );
+ });
+ };
+
+ const clearCache = (parent: string) => {
+ changelogsMapByDatabase.delete(parent);
+ };
+
+ const fetchChangelogList = async (params: Partial<ListChangelogsRequest>) => {
+ const { parent } = params;
+ if (!parent) throw new Error('"parent" field is required');
+ const { changelogs } = await databaseServiceClient.listChangelogs(params);
+ await upsertChangelogsMap(parent, changelogs);
+ return changelogs;
+ };
+ const getOrFetchChangelogListOfDatabase = async (databaseName: string) => {
+ if (changelogsMapByDatabase.has(databaseName)) {
+ return changelogsMapByDatabase.get(databaseName) ?? [];
+ }
+ return fetchChangelogList({
+ parent: databaseName,
+ pageSize: DEFAULT_PAGE_SIZE,
+ });
+ };
+ const changelogListByDatabase = (name: string) => {
+ return changelogsMapByDatabase.get(name) ?? [];
+ };
+ const fetchChangelog = async (params: Partial<GetChangelogRequest>) => {
+ const changelog = await databaseServiceClient.getChangelog(params);
+ cache.setEntity(
+ [changelog.name, params.view ?? ChangelogView.CHANGELOG_VIEW_BASIC],
+ changelog
+ );
+ return changelog;
+ };
+ const getOrFetchChangelogByName = async (
+ name: string,
+ view: ChangelogView
+ ) => {
+ const uid = extractChangelogUID(name);
+ if (!uid || uid === String(UNKNOWN_ID)) {
+ return undefined;
+ }
+ const entity = cache.getEntity([name, view]);
+ if (entity) {
+ return entity;
+ }
+ const request = cache.getRequest([name, view]);
+ if (request) {
+ return request;
+ }
+ const promise = fetchChangelog({ name, view });
+ cache.setRequest([name, view], promise);
+ return promise;
+ };
+ /**
+ *
+ * @param name
+ * @param view default undefined to any view (full -> basic)
+ * @returns
+ */
+ const getChangelogByName = (
+ name: string,
+ view: ChangelogView | undefined = undefined
+ ) => {
+ if (view === undefined) {
+ return (
+ cache.getEntity([name, ChangelogView.CHANGELOG_VIEW_FULL]) ??
+ cache.getEntity([name, ChangelogView.CHANGELOG_VIEW_BASIC])
+ );
+ }
+ return cache.getEntity([name, view]);
+ };
+
+ return {
+ clearCache,
+ fetchChangelogList,
+ getOrFetchChangelogListOfDatabase,
+ changelogListByDatabase,
+ fetchChangelog,
+ getOrFetchChangelogByName,
+ getChangelogByName,
+ };
+});
diff --git a/frontend/src/store/modules/v1/index.ts b/frontend/src/store/modules/v1/index.ts
index db2114c2dd..2d8b417abb 100644
--- a/frontend/src/store/modules/v1/index.ts
+++ b/frontend/src/store/modules/v1/index.ts
@@ -30,3 +30,4 @@ export * from "./permission";
export * from "./workspace";
export * from "./instanceResource";
export * from "./storage";
+export * from "./changelog";
diff --git a/frontend/src/types/changeHistory.ts b/frontend/src/types/changeHistory.ts
index c09bb46460..1ee136931e 100644
--- a/frontend/src/types/changeHistory.ts
+++ b/frontend/src/types/changeHistory.ts
@@ -1,24 +1,4 @@
-import { ChangeHistory } from "@/types/proto/v1/database_service";
-import { Issue } from "@/types/proto/v1/issue_service";
-
-export interface Table {
- schema: string;
- table: string;
-}
-
-export interface AffectedTable extends Table {
- dropped: boolean;
-}
-
-export const EmptyAffectedTable: AffectedTable = {
- schema: "",
- table: "",
- dropped: false,
-};
-
-export interface ComposedChangeHistory extends ChangeHistory {
- issueEntity?: Issue;
-}
+import type { Table } from "./changelog";
export interface SearchChangeHistoriesParams {
tables?: Table[];
diff --git a/frontend/src/types/changelog.ts b/frontend/src/types/changelog.ts
new file mode 100644
index 0000000000..61972cdcac
--- /dev/null
+++ b/frontend/src/types/changelog.ts
@@ -0,0 +1,26 @@
+import { ChangeHistory } from "@/types/proto/v1/database_service";
+import { Issue } from "@/types/proto/v1/issue_service";
+
+export interface Table {
+ schema: string;
+ table: string;
+}
+
+export interface AffectedTable extends Table {
+ dropped: boolean;
+}
+
+export const EmptyAffectedTable: AffectedTable = {
+ schema: "",
+ table: "",
+ dropped: false,
+};
+
+export interface ComposedChangeHistory extends ChangeHistory {
+ issueEntity?: Issue;
+}
+
+export interface SearchChangeLogParams {
+ tables?: Table[];
+ types?: string[];
+}
diff --git a/frontend/src/types/index.ts b/frontend/src/types/index.ts
index a7808a4299..61c8772932 100644
--- a/frontend/src/types/index.ts
+++ b/frontend/src/types/index.ts
@@ -25,6 +25,7 @@ export * from "./slowQuery";
export * from "./dbGroup";
export * from "./setting";
export * from "./changeHistory";
+export * from "./changelog";
export * from "./semanticTypes";
export * from "./iam";
export * from "./misc";
diff --git a/frontend/src/types/proto/v1/database_service.ts b/frontend/src/types/proto/v1/database_service.ts
index 92483a6e27..56b0b6a280 100644
--- a/frontend/src/types/proto/v1/database_service.ts
+++ b/frontend/src/types/proto/v1/database_service.ts
@@ -2155,6 +2155,7 @@ export interface Changelog {
*/
revision: string;
changedResources: ChangedResources | undefined;
+ type: Changelog_Type;
}
export enum Changelog_Status {
@@ -2218,6 +2219,83 @@ export function changelog_StatusToNumber(object: Changelog_Status): number {
}
}
+export enum Changelog_Type {
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
+ BASELINE = "BASELINE",
+ MIGRATE = "MIGRATE",
+ MIGRATE_SDL = "MIGRATE_SDL",
+ MIGRATE_GHOST = "MIGRATE_GHOST",
+ DATA = "DATA",
+ UNRECOGNIZED = "UNRECOGNIZED",
+}
+
+export function changelog_TypeFromJSON(object: any): Changelog_Type {
+ switch (object) {
+ case 0:
+ case "TYPE_UNSPECIFIED":
+ return Changelog_Type.TYPE_UNSPECIFIED;
+ case 1:
+ case "BASELINE":
+ return Changelog_Type.BASELINE;
+ case 2:
+ case "MIGRATE":
+ return Changelog_Type.MIGRATE;
+ case 3:
+ case "MIGRATE_SDL":
+ return Changelog_Type.MIGRATE_SDL;
+ case 4:
+ case "MIGRATE_GHOST":
+ return Changelog_Type.MIGRATE_GHOST;
+ case 6:
+ case "DATA":
+ return Changelog_Type.DATA;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return Changelog_Type.UNRECOGNIZED;
+ }
+}
+
+export function changelog_TypeToJSON(object: Changelog_Type): string {
+ switch (object) {
+ case Changelog_Type.TYPE_UNSPECIFIED:
+ return "TYPE_UNSPECIFIED";
+ case Changelog_Type.BASELINE:
+ return "BASELINE";
+ case Changelog_Type.MIGRATE:
+ return "MIGRATE";
+ case Changelog_Type.MIGRATE_SDL:
+ return "MIGRATE_SDL";
+ case Changelog_Type.MIGRATE_GHOST:
+ return "MIGRATE_GHOST";
+ case Changelog_Type.DATA:
+ return "DATA";
+ case Changelog_Type.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
+}
+
+export function changelog_TypeToNumber(object: Changelog_Type): number {
+ switch (object) {
+ case Changelog_Type.TYPE_UNSPECIFIED:
+ return 0;
+ case Changelog_Type.BASELINE:
+ return 1;
+ case Changelog_Type.MIGRATE:
+ return 2;
+ case Changelog_Type.MIGRATE_SDL:
+ return 3;
+ case Changelog_Type.MIGRATE_GHOST:
+ return 4;
+ case Changelog_Type.DATA:
+ return 6;
+ case Changelog_Type.UNRECOGNIZED:
+ default:
+ return -1;
+ }
+}
+
function createBaseGetDatabaseRequest(): GetDatabaseRequest {
return { name: "" };
}
@@ -12152,6 +12230,7 @@ function createBaseChangelog(): Changelog {
version: "",
revision: "",
changedResources: undefined,
+ type: Changelog_Type.TYPE_UNSPECIFIED,
};
}
@@ -12205,6 +12284,9 @@ export const Changelog: MessageFns<Changelog> = {
if (message.changedResources !== undefined) {
ChangedResources.encode(message.changedResources, writer.uint32(130).fork()).join();
}
+ if (message.type !== Changelog_Type.TYPE_UNSPECIFIED) {
+ writer.uint32(136).int32(changelog_TypeToNumber(message.type));
+ }
return writer;
},
@@ -12343,6 +12425,14 @@ export const Changelog: MessageFns<Changelog> = {
message.changedResources = ChangedResources.decode(reader, reader.uint32());
continue;
}
+ case 17: {
+ if (tag !== 136) {
+ break;
+ }
+
+ message.type = changelog_TypeFromJSON(reader.int32());
+ continue;
+ }
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -12370,6 +12460,7 @@ export const Changelog: MessageFns<Changelog> = {
version: isSet(object.version) ? globalThis.String(object.version) : "",
revision: isSet(object.revision) ? globalThis.String(object.revision) : "",
changedResources: isSet(object.changedResources) ? ChangedResources.fromJSON(object.changedResources) : undefined,
+ type: isSet(object.type) ? changelog_TypeFromJSON(object.type) : Changelog_Type.TYPE_UNSPECIFIED,
};
},
@@ -12423,6 +12514,9 @@ export const Changelog: MessageFns<Changelog> = {
if (message.changedResources !== undefined) {
obj.changedResources = ChangedResources.toJSON(message.changedResources);
}
+ if (message.type !== Changelog_Type.TYPE_UNSPECIFIED) {
+ obj.type = changelog_TypeToJSON(message.type);
+ }
return obj;
},
@@ -12457,6 +12551,7 @@ export const Changelog: MessageFns<Changelog> = {
message.changedResources = (object.changedResources !== undefined && object.changedResources !== null)
? ChangedResources.fromPartial(object.changedResources)
: undefined;
+ message.type = object.type ?? Changelog_Type.TYPE_UNSPECIFIED;
return message;
},
};
diff --git a/frontend/src/utils/v1/changeHistory.ts b/frontend/src/utils/v1/changeHistory.ts
index df5f8bd56e..405de32857 100644
--- a/frontend/src/utils/v1/changeHistory.ts
+++ b/frontend/src/utils/v1/changeHistory.ts
@@ -3,9 +3,12 @@ import Long from "long";
import { t } from "@/plugins/i18n";
import { useDBSchemaV1Store, useDatabaseV1Store, useUserStore } from "@/store";
import type { ComposedDatabase } from "@/types";
-import { EMPTY_ID, UNKNOWN_ID } from "@/types";
-import type { AffectedTable } from "@/types/changeHistory";
-import { EmptyAffectedTable } from "@/types/changeHistory";
+import {
+ EMPTY_ID,
+ UNKNOWN_ID,
+ EmptyAffectedTable,
+ type AffectedTable,
+} from "@/types";
import type { DatabaseSchema } from "@/types/proto/v1/database_service";
import {
ChangeHistory,
diff --git a/frontend/src/utils/v1/changelog.ts b/frontend/src/utils/v1/changelog.ts
new file mode 100644
index 0000000000..5c247d1e4b
--- /dev/null
+++ b/frontend/src/utils/v1/changelog.ts
@@ -0,0 +1,126 @@
+import { isEqual, isUndefined, orderBy, uniqBy } from "lodash-es";
+import Long from "long";
+import { t } from "@/plugins/i18n";
+import { useDBSchemaV1Store, useDatabaseV1Store } from "@/store";
+import type { ComposedDatabase } from "@/types";
+import { EMPTY_ID, UNKNOWN_ID } from "@/types";
+import { type AffectedTable, EmptyAffectedTable } from "@/types";
+import {
+ Changelog_Type,
+ type DatabaseSchema,
+} from "@/types/proto/v1/database_service";
+import { Changelog } from "@/types/proto/v1/database_service";
+import { databaseV1Url, extractDatabaseResourceName } from "./database";
+
+export const extractChangelogUID = (name: string) => {
+ const pattern = /(?:^|\/)changelogs\/([^/]+)(?:$|\/)/;
+ const matches = name.match(pattern);
+ return matches?.[1] ?? "";
+};
+
+export const extractDatabaseNameAndChangelogUID = (changelogName: string) => {
+ const parts = changelogName.split("/changelogs/");
+ if (parts.length !== 2) {
+ throw new Error("Invalid changelog name");
+ }
+ return {
+ databaseName: parts[0],
+ changelogUID: extractChangelogUID(changelogName),
+ };
+};
+
+export const isValidChangelogName = (name: string | undefined) => {
+ if (!name) {
+ return false;
+ }
+ const uid = extractChangelogUID(name);
+ return uid && uid !== String(EMPTY_ID) && uid !== String(UNKNOWN_ID);
+};
+
+export const changelogLink = (changelog: Changelog): string => {
+ const { changelogUID } = extractDatabaseNameAndChangelogUID(changelog.name);
+ const { database } = extractDatabaseResourceName(changelog.name);
+ const composedDatabase = useDatabaseV1Store().getDatabaseByName(database);
+ return [databaseV1Url(composedDatabase), "changelogs", changelogUID].join(
+ "/"
+ );
+};
+
+export const getAffectedTablesOfChangelog = (
+ changelog: Changelog
+): AffectedTable[] => {
+ const { databaseName } = extractDatabaseNameAndChangelogUID(changelog.name);
+ const database = useDatabaseV1Store().getDatabaseByName(databaseName);
+ const metadata = useDBSchemaV1Store().getDatabaseMetadata(database.name);
+ return uniqBy(
+ orderBy(
+ changelog.changedResources?.databases
+ .find((db) => db.name === database.databaseName)
+ ?.schemas.map((schema) => {
+ return schema.tables.map((table) => {
+ const dropped = isUndefined(
+ metadata.schemas
+ .find((s) => s.name === schema.name)
+ ?.tables.find((t) => t.name === table.name)
+ );
+ return {
+ schema: schema.name,
+ table: table.name,
+ dropped,
+ };
+ });
+ })
+ .flat() || [],
+ ["dropped"]
+ ),
+ (affectedTable) => `${affectedTable.schema}.${affectedTable.table}`
+ );
+};
+
+export const stringifyAffectedTable = (affectedTable: AffectedTable) => {
+ const { schema, table } = affectedTable;
+ if (schema !== "") {
+ return `${schema}.${table}`;
+ }
+ return table;
+};
+
+export const getAffectedTableDisplayName = (affectedTable: AffectedTable) => {
+ if (isEqual(affectedTable, EmptyAffectedTable)) {
+ return t("change-history.all-tables");
+ }
+
+ let name = stringifyAffectedTable(affectedTable);
+ if (affectedTable.dropped) {
+ name = `${name}(deleted)`;
+ }
+ return name;
+};
+
+export const mockLatestChangelog = (
+ database: ComposedDatabase,
+ schema: DatabaseSchema | undefined = undefined
+) => {
+ return Changelog.fromPartial({
+ name: `${database.name}/changelogs/${UNKNOWN_ID}`,
+ schema: schema?.schema,
+ schemaSize: Long.fromNumber(
+ new TextEncoder().encode(schema?.schema).length
+ ),
+ version: "Latest version",
+ });
+};
+
+export const getChangelogChangeType = (type: Changelog_Type) => {
+ switch (type) {
+ case Changelog_Type.BASELINE:
+ case Changelog_Type.MIGRATE:
+ case Changelog_Type.MIGRATE_SDL:
+ case Changelog_Type.MIGRATE_GHOST:
+ return "DDL";
+ case Changelog_Type.DATA:
+ return "DML";
+ default:
+ return "-";
+ }
+};
diff --git a/frontend/src/views/DatabaseDetail/ChangeHistoryDetail.vue b/frontend/src/views/DatabaseDetail/ChangeHistoryDetail.vue
index a031802979..ec36bdf244 100644
--- a/frontend/src/views/DatabaseDetail/ChangeHistoryDetail.vue
+++ b/frontend/src/views/DatabaseDetail/ChangeHistoryDetail.vue
@@ -15,7 +15,7 @@
{{ changeHistoryId }}
</NBreadcrumbItem>
</NBreadcrumb>
- <ChangeHistoryDetail
+ <ChangeHistoryDetailView
:instance="instance"
:database="database.name"
:change-history-id="changeHistoryId"
@@ -25,7 +25,7 @@
<script lang="ts" setup>
import { NBreadcrumb, NBreadcrumbItem } from "naive-ui";
import { useRouter } from "vue-router";
-import { ChangeHistoryDetail } from "@/components/ChangeHistory";
+import { ChangeHistoryDetail as ChangeHistoryDetailView } from "@/components/ChangeHistory";
import { useDatabaseV1ByName } from "@/store";
import { databaseV1Url } from "@/utils";
diff --git a/frontend/src/views/DatabaseDetail/ChangelogDetail.vue b/frontend/src/views/DatabaseDetail/ChangelogDetail.vue
new file mode 100644
index 0000000000..4441a6445e
--- /dev/null
+++ b/frontend/src/views/DatabaseDetail/ChangelogDetail.vue
@@ -0,0 +1,42 @@
+<template>
+ <NBreadcrumb class="mb-4">
+ <NBreadcrumbItem @click="router.push(`/${props.project}/databases`)">
+ {{ $t("common.databases") }}
+ </NBreadcrumbItem>
+ <NBreadcrumbItem @click="router.push(databaseV1Url(database))">
+ {{ database.databaseName }}
+ </NBreadcrumbItem>
+ <NBreadcrumbItem
+ @click="router.push(`${databaseV1Url(database)}#changelog`)"
+ >
+ {{ $t("change-history.self") }}
+ </NBreadcrumbItem>
+ <NBreadcrumbItem :clickable="false">
+ {{ changelogId }}
+ </NBreadcrumbItem>
+ </NBreadcrumb>
+ <ChangelogDetailView
+ :instance="instance"
+ :database="database.name"
+ :changelog-id="changelogId"
+ />
+</template>
+
+<script lang="ts" setup>
+import { NBreadcrumb, NBreadcrumbItem } from "naive-ui";
+import { useRouter } from "vue-router";
+import { ChangelogDetail as ChangelogDetailView } from "@/components/Changelog";
+import { useDatabaseV1ByName } from "@/store";
+import { databaseV1Url } from "@/utils";
+
+const props = defineProps<{
+ project: string;
+ instance: string;
+ database: string;
+ changelogId: string;
+}>();
+
+const router = useRouter();
+
+const { database } = useDatabaseV1ByName(props.database);
+</script>
diff --git a/frontend/src/views/DatabaseDetail/DatabaseDetail.vue b/frontend/src/views/DatabaseDetail/DatabaseDetail.vue
index cabce0ffed..faff999e5b 100644
--- a/frontend/src/views/DatabaseDetail/DatabaseDetail.vue
+++ b/frontend/src/views/DatabaseDetail/DatabaseDetail.vue
@@ -125,6 +125,18 @@
>
<DatabaseChangeHistoryPanel class="mt-2" :database="database" />
</NTabPane>
+ <NTabPane
+ v-if="
+ // TODO: Remove me please.
+ isDev() &&
+ databaseChangeMode === DatabaseChangeMode.PIPELINE &&
+ allowListChangeHistories
+ "
+ name="changelog"
+ :tab="'Changelog'"
+ >
+ <DatabaseChangelogPanel class="mt-2" :database="database" />
+ </NTabPane>
<NTabPane
v-if="isDev() && databaseChangeMode === DatabaseChangeMode.PIPELINE"
name="revision"
@@ -209,6 +221,7 @@ import { useRouter, useRoute } from "vue-router";
import { BBModal } from "@/bbkit";
import SchemaEditorModal from "@/components/AlterSchemaPrepForm/SchemaEditorModal.vue";
import DatabaseChangeHistoryPanel from "@/components/Database/DatabaseChangeHistoryPanel.vue";
+import DatabaseChangelogPanel from "@/components/Database/DatabaseChangelogPanel.vue";
import DatabaseOverviewPanel from "@/components/Database/DatabaseOverviewPanel.vue";
import DatabaseRevisionPanel from "@/components/Database/DatabaseRevisionPanel.vue";
import DatabaseSensitiveDataPanel from "@/components/Database/DatabaseSensitiveDataPanel.vue";
@@ -254,6 +267,7 @@ import {
const databaseHashList = [
"overview",
"change-history",
+ "changelog",
"revision",
"slow-query",
"setting",
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index e9bc633642..f869150652 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -9663,6 +9663,16 @@ components:
Or present but not found if deleted
changedResources:
$ref: '#/components/schemas/ChangedResources'
+ type:
+ enum:
+ - TYPE_UNSPECIFIED
+ - BASELINE
+ - MIGRATE
+ - MIGRATE_SDL
+ - MIGRATE_GHOST
+ - DATA
+ type: string
+ format: enum
CheckConstraintMetadata:
type: object
properties:
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index b5fc46f58b..256f746239 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -170,6 +170,7 @@
- [ChangeHistory.Type](#bytebase-v1-ChangeHistory-Type)
- [ChangeHistoryView](#bytebase-v1-ChangeHistoryView)
- [Changelog.Status](#bytebase-v1-Changelog-Status)
+ - [Changelog.Type](#bytebase-v1-Changelog-Type)
- [ChangelogView](#bytebase-v1-ChangelogView)
- [DatabaseMetadataView](#bytebase-v1-DatabaseMetadataView)
- [GenerationMetadata.Type](#bytebase-v1-GenerationMetadata-Type)
@@ -2109,6 +2110,7 @@ AdviseIndexResponse is the response of advising index.
| version | [string](#string) | | Could be empty |
| revision | [string](#string) | | Could be empty Or present but not found if deleted |
| changed_resources | [ChangedResources](#bytebase-v1-ChangedResources) | | |
+| type | [Changelog.Type](#bytebase-v1-Changelog-Type) | | |
@@ -3492,6 +3494,22 @@ ViewMetadata is the metadata for views.
+<a name="bytebase-v1-Changelog-Type"></a>
+
+### Changelog.Type
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| TYPE_UNSPECIFIED | 0 | |
+| BASELINE | 1 | |
+| MIGRATE | 2 | |
+| MIGRATE_SDL | 3 | |
+| MIGRATE_GHOST | 4 | |
+| DATA | 6 | |
+
+
+
<a name="bytebase-v1-ChangelogView"></a>
### ChangelogView
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 962dccb98c..ac9b120b18 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -826,6 +826,10 @@
<a href="#bytebase.v1.Changelog.Status"><span class="badge">E</span>Changelog.Status</a>
</li>
+ <li>
+ <a href="#bytebase.v1.Changelog.Type"><span class="badge">E</span>Changelog.Type</a>
+ </li>
+
<li>
<a href="#bytebase.v1.ChangelogView"><span class="badge">E</span>ChangelogView</a>
</li>
@@ -6700,6 +6704,13 @@ Or present but not found if deleted </p></td>
<td><p> </p></td>
</tr>
+ <tr>
+ <td>type</td>
+ <td><a href="#bytebase.v1.Changelog.Type">Changelog.Type</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
</tbody>
</table>
@@ -10553,6 +10564,53 @@ The API will default to the BASIC view.</p></td>
</tbody>
</table>
+ <h3 id="bytebase.v1.Changelog.Type">Changelog.Type</h3>
+ <p></p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>TYPE_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>BASELINE</td>
+ <td>1</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>MIGRATE</td>
+ <td>2</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>MIGRATE_SDL</td>
+ <td>3</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>MIGRATE_GHOST</td>
+ <td>4</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>DATA</td>
+ <td>6</td>
+ <td><p></p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
<h3 id="bytebase.v1.ChangelogView">ChangelogView</h3>
<p></p>
<table class="enum-table">
diff --git a/proto/generated-go/v1/database_service.pb.go b/proto/generated-go/v1/database_service.pb.go
index 055cb5451c..a6e357d020 100644
--- a/proto/generated-go/v1/database_service.pb.go
+++ b/proto/generated-go/v1/database_service.pb.go
@@ -665,6 +665,64 @@ func (Changelog_Status) EnumDescriptor() ([]byte, []int) {
return file_v1_database_service_proto_rawDescGZIP(), []int{78, 0}
}
+type Changelog_Type int32
+
+const (
+ Changelog_TYPE_UNSPECIFIED Changelog_Type = 0
+ Changelog_BASELINE Changelog_Type = 1
+ Changelog_MIGRATE Changelog_Type = 2
+ Changelog_MIGRATE_SDL Changelog_Type = 3
+ Changelog_MIGRATE_GHOST Changelog_Type = 4
+ Changelog_DATA Changelog_Type = 6
+)
+
+// Enum value maps for Changelog_Type.
+var (
+ Changelog_Type_name = map[int32]string{
+ 0: "TYPE_UNSPECIFIED",
+ 1: "BASELINE",
+ 2: "MIGRATE",
+ 3: "MIGRATE_SDL",
+ 4: "MIGRATE_GHOST",
+ 6: "DATA",
+ }
+ Changelog_Type_value = map[string]int32{
+ "TYPE_UNSPECIFIED": 0,
+ "BASELINE": 1,
+ "MIGRATE": 2,
+ "MIGRATE_SDL": 3,
+ "MIGRATE_GHOST": 4,
+ "DATA": 6,
+ }
+)
+
+func (x Changelog_Type) Enum() *Changelog_Type {
+ p := new(Changelog_Type)
+ *p = x
+ return p
+}
+
+func (x Changelog_Type) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (Changelog_Type) Descriptor() protoreflect.EnumDescriptor {
+ return file_v1_database_service_proto_enumTypes[12].Descriptor()
+}
+
+func (Changelog_Type) Type() protoreflect.EnumType {
+ return &file_v1_database_service_proto_enumTypes[12]
+}
+
+func (x Changelog_Type) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use Changelog_Type.Descriptor instead.
+func (Changelog_Type) EnumDescriptor() ([]byte, []int) {
+ return file_v1_database_service_proto_rawDescGZIP(), []int{78, 1}
+}
+
type GetDatabaseRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The name of the database to retrieve.
@@ -7087,6 +7145,7 @@ type Changelog struct {
// Or present but not found if deleted
Revision string `protobuf:"bytes,15,opt,name=revision,proto3" json:"revision,omitempty"`
ChangedResources *ChangedResources `protobuf:"bytes,16,opt,name=changed_resources,json=changedResources,proto3" json:"changed_resources,omitempty"`
+ Type Changelog_Type `protobuf:"varint,17,opt,name=type,proto3,enum=bytebase.v1.Changelog_Type" json:"type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -7233,6 +7292,13 @@ func (x *Changelog) GetChangedResources() *ChangedResources {
return nil
}
+func (x *Changelog) GetType() Changelog_Type {
+ if x != nil {
+ return x.Type
+ }
+ return Changelog_TYPE_UNSPECIFIED
+}
+
var File_v1_database_service_proto protoreflect.FileDescriptor
var file_v1_database_service_proto_rawDesc = []byte{
@@ -8388,7 +8454,7 @@ var file_v1_database_service_proto_rawDesc = []byte{
0x1d, 0x0a, 0x0a, 0x73, 0x64, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20,
0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x64, 0x6c, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x18,
0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
- 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x73, 0x65, 0x22, 0xfe, 0x05, 0x0a, 0x09, 0x43, 0x68, 0x61,
+ 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x73, 0x65, 0x22, 0x96, 0x07, 0x0a, 0x09, 0x43, 0x68, 0x61,
0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72,
0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65,
@@ -8425,281 +8491,291 @@ var file_v1_database_service_proto_rawDesc = []byte{
0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62,
0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67,
0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x10, 0x63, 0x68, 0x61,
- 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0x43, 0x0a,
- 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55,
- 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
- 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04,
- 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44,
- 0x10, 0x03, 0x3a, 0x65, 0xea, 0x41, 0x62, 0x0a, 0x1e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x68,
- 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x12, 0x40, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x64, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
- 0x65, 0x7d, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x7b, 0x63,
- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x7d, 0x2a, 0x81, 0x01, 0x0a, 0x14, 0x44, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x56, 0x69,
- 0x65, 0x77, 0x12, 0x26, 0x0a, 0x22, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d,
- 0x45, 0x54, 0x41, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53,
- 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x41,
+ 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x2f, 0x0a,
+ 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
+ 0x6c, 0x6f, 0x67, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x43,
+ 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54,
+ 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
+ 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a,
+ 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45,
+ 0x44, 0x10, 0x03, 0x22, 0x65, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54,
+ 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
+ 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12,
+ 0x0b, 0x0a, 0x07, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b,
+ 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10, 0x03, 0x12, 0x11, 0x0a,
+ 0x0d, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x04,
+ 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x41, 0x10, 0x06, 0x3a, 0x65, 0xea, 0x41, 0x62, 0x0a,
+ 0x1e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x12,
+ 0x40, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74,
+ 0x61, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f,
+ 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x7d, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67,
+ 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x7b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67,
+ 0x7d, 0x2a, 0x81, 0x01, 0x0a, 0x14, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x56, 0x69, 0x65, 0x77, 0x12, 0x26, 0x0a, 0x22, 0x44, 0x41,
0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, 0x41, 0x54, 0x41, 0x5f,
- 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b,
- 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, 0x41, 0x54,
- 0x41, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x75, 0x0a,
- 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69,
- 0x65, 0x77, 0x12, 0x23, 0x0a, 0x1f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x48, 0x49, 0x53,
- 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
- 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x48, 0x41, 0x4e, 0x47,
- 0x45, 0x5f, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42,
- 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45,
- 0x5f, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55,
- 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x62, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f,
- 0x67, 0x56, 0x69, 0x65, 0x77, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x4c,
- 0x4f, 0x47, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
- 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x4c,
- 0x4f, 0x47, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12,
- 0x17, 0x0a, 0x13, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x4c, 0x4f, 0x47, 0x5f, 0x56, 0x49, 0x45,
- 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x32, 0xfa, 0x1d, 0x0a, 0x0f, 0x44, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x90, 0x01, 0x0a,
- 0x0b, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1f, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x22, 0x49, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30,
- 0x10, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x67, 0x65,
- 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31,
- 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
- 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12,
- 0xb5, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74,
- 0x61, 0x6e, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x44,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x22, 0x45, 0xda, 0x41, 0x00, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x69, 0x6e, 0x73, 0x74,
- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4,
- 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
- 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0xc4, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74,
- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x22, 0x6c, 0xda, 0x41, 0x00, 0x8a, 0xea, 0x30, 0x11, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x4a, 0x5a, 0x25, 0x12, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,
- 0x65, 0x6e, 0x74, 0x3d, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x2a,
- 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x21, 0x2f, 0x76, 0x31,
- 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
- 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0xc0,
- 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
- 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65,
+ 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
+ 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4d,
+ 0x45, 0x54, 0x41, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53,
+ 0x49, 0x43, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45,
+ 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46,
+ 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x75, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48,
+ 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x12, 0x23, 0x0a, 0x1f, 0x43, 0x48,
+ 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45,
+ 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
+ 0x1d, 0x0a, 0x19, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x52,
+ 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x1c,
+ 0x0a, 0x18, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59,
+ 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x62, 0x0a, 0x0d,
+ 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x56, 0x69, 0x65, 0x77, 0x12, 0x1e, 0x0a,
+ 0x1a, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x4c, 0x4f, 0x47, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f,
+ 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a,
+ 0x14, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x4c, 0x4f, 0x47, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f,
+ 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x48, 0x41, 0x4e, 0x47,
+ 0x45, 0x4c, 0x4f, 0x47, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02,
+ 0x32, 0xfa, 0x1d, 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x12, 0x90, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x73, 0xda, 0x41,
- 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
- 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x13, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01,
- 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x3a, 0x08, 0x64, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a,
- 0x7d, 0x12, 0xc5, 0x01, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74,
- 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70,
- 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
- 0x58, 0x8a, 0xea, 0x30, 0x13, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01,
- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x3a, 0x01, 0x2a, 0x22, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
- 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x3a, 0x62, 0x61,
- 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0xa0, 0x01, 0x0a, 0x0c, 0x53, 0x79,
- 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x44,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
- 0x4b, 0x8a, 0xea, 0x30, 0x11, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x73, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c,
- 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,
+ 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x49, 0xda, 0x41,
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4,
+ 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,
0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x12, 0xb0, 0x01, 0x0a,
- 0x13, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61,
- 0x64, 0x61, 0x74, 0x61, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65,
- 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e,
+ 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb5, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74,
+ 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x73, 0x12, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49,
+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0xda, 0x41, 0x00, 0x8a, 0xea, 0x30,
+ 0x10, 0x62, 0x62, 0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x65,
+ 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12,
+ 0xc4, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6c, 0xda, 0x41, 0x00, 0x8a, 0xea, 0x30,
+ 0x11, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x6c, 0x69,
+ 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4a, 0x5a, 0x25, 0x12, 0x23,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x77, 0x6f, 0x72, 0x6b,
+ 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x73, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
+ 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0xc0, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e,
0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x51, 0x8a, 0xea,
- 0x30, 0x16, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x67,
- 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93,
- 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e,
- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
- 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12,
- 0xa8, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53,
- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53,
- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x4f, 0x8a, 0xea, 0x30, 0x16, 0x62,
- 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x53,
- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12,
- 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
- 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x7d, 0x12, 0xe6, 0x01, 0x0a, 0x0a, 0x44,
- 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65,
- 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65,
- 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x96, 0x01, 0x8a, 0xea, 0x30,
- 0x10, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x67, 0x65,
- 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x78, 0x3a, 0x01, 0x2a, 0x5a, 0x44,
- 0x3a, 0x01, 0x2a, 0x22, 0x3f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,
- 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73,
- 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x53, 0x63,
- 0x68, 0x65, 0x6d, 0x61, 0x22, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68,
- 0x65, 0x6d, 0x61, 0x12, 0xad, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77,
- 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75,
- 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53,
- 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
- 0x73, 0x65, 0x22, 0x4f, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x8a, 0xea, 0x30,
- 0x13, 0x62, 0x62, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2e,
- 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23,
- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,
- 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72,
- 0x69, 0x65, 0x73, 0x12, 0xae, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72,
- 0x65, 0x74, 0x73, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
- 0x74, 0x8a, 0xea, 0x30, 0x17, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01,
- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,
- 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f,
- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x65, 0x63,
- 0x72, 0x65, 0x74, 0x73, 0x12, 0xaf, 0x01, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53,
- 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x68, 0x8a, 0xea,
- 0x30, 0x19, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x63,
- 0x72, 0x65, 0x74, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98,
- 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x3a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65,
- 0x74, 0x32, 0x33, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x6e,
- 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f,
- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x63, 0x72,
- 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa3, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74,
- 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72,
- 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
- 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
- 0x79, 0x22, 0x59, 0x8a, 0xea, 0x30, 0x19, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
- 0x73, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65,
- 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x2a, 0x2c,
- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
- 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f,
- 0x2a, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb3, 0x01, 0x0a,
- 0x0b, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1f, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x73,
- 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69,
- 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
- 0x61, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x8a, 0xea, 0x30, 0x18, 0x62, 0x62,
- 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x61, 0x64, 0x76, 0x69, 0x73,
- 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32,
- 0x22, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e,
- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
- 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64,
- 0x65, 0x78, 0x12, 0xce, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67,
- 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61,
- 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74,
- 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x64, 0xda,
- 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x8a, 0xea, 0x30, 0x17, 0x62, 0x62, 0x2e, 0x63,
- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x2e, 0x6c,
- 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f,
- 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
- 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72,
- 0x69, 0x65, 0x73, 0x12, 0xb7, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67,
- 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
- 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61,
- 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x61, 0xda, 0x41, 0x04, 0x6e,
- 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x16, 0x62, 0x62, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65,
- 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30,
- 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x22, 0x73, 0xda, 0x41, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30,
+ 0x13, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x75, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x37, 0x3a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x32, 0x2b, 0x2f, 0x76,
+ 0x31, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65,
+ 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xc5, 0x01, 0x0a, 0x14, 0x42, 0x61,
+ 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x73, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0x8a, 0xea, 0x30, 0x13, 0x62, 0x62, 0x2e,
+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x3a, 0x01,
+ 0x2a, 0x22, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69,
+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x12, 0xa0, 0x01, 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0x8a, 0xea, 0x30, 0x11, 0x62, 0x62, 0x2e,
+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x90, 0xea,
+ 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,
+ 0x73, 0x79, 0x6e, 0x63, 0x12, 0xb0, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x27, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61,
+ 0x64, 0x61, 0x74, 0x61, 0x22, 0x51, 0x8a, 0xea, 0x30, 0x16, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
+ 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x76, 0x31, 0x2f,
+ 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,
+ 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12, 0xa8, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x44,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x25, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x22, 0x4f, 0x8a, 0xea, 0x30, 0x16, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x90, 0xea, 0x30,
+ 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67,
- 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x97, 0x01,
- 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12,
- 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,
- 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3f, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
- 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,
- 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65,
- 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x84, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52,
- 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f,
- 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22,
- 0x3d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e,
- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
- 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f,
- 0x2a, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8d,
- 0x01, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f,
- 0x6e, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x40, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x3a, 0x3a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x2e,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x7d, 0x12, 0xe6, 0x01, 0x0a, 0x0a, 0x44, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x44, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x44, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x22, 0x96, 0x01, 0x8a, 0xea, 0x30, 0x10, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4,
+ 0x93, 0x02, 0x78, 0x3a, 0x01, 0x2a, 0x5a, 0x44, 0x3a, 0x01, 0x2a, 0x22, 0x3f, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63,
+ 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a,
+ 0x7d, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x2d, 0x2f, 0x76,
+ 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d,
+ 0x3a, 0x64, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0xad, 0x01, 0x0a, 0x0f,
+ 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12,
+ 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,
+ 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69,
+ 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0xda, 0x41, 0x06, 0x70,
+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x8a, 0xea, 0x30, 0x13, 0x62, 0x62, 0x2e, 0x73, 0x6c, 0x6f, 0x77,
+ 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01,
+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,
+ 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,
+ 0x73, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0xae, 0x01, 0x0a, 0x0b,
+ 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x1f, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65,
+ 0x63, 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53,
+ 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c,
+ 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x8a, 0xea, 0x30, 0x17, 0x62, 0x62, 0x2e,
+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e,
+ 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c,
0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74,
0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x8b,
- 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f,
- 0x6e, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x3d, 0xda,
- 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x2a, 0x2e, 0x2f, 0x76,
+ 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0xaf, 0x01, 0x0a,
+ 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65,
+ 0x63, 0x72, 0x65, 0x74, 0x22, 0x68, 0x8a, 0xea, 0x30, 0x19, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x75, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+ 0x3d, 0x3a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x32, 0x33, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
+ 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,
+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa3,
+ 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12,
+ 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65,
+ 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x59, 0x8a, 0xea, 0x30, 0x19, 0x62,
+ 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74,
+ 0x73, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01,
+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x2a, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74,
+ 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb3, 0x01, 0x0a, 0x0b, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49,
+ 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x61, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65,
+ 0x6e, 0x74, 0x8a, 0xea, 0x30, 0x18, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x73, 0x2e, 0x61, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x90, 0xea,
+ 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x22, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,
+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,
+ 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61,
+ 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0xce, 0x01, 0x0a, 0x13, 0x4c,
+ 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69,
+ 0x65, 0x73, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f,
+ 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68,
+ 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73,
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x64, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
+ 0x8a, 0xea, 0x30, 0x17, 0x62, 0x62, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73,
+ 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82,
+ 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,
+ 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x68, 0x61, 0x6e,
+ 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0xb7, 0x01, 0x0a, 0x10,
+ 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79,
+ 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47,
+ 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f,
+ 0x72, 0x79, 0x22, 0x61, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x16, 0x62,
+ 0x62, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65,
+ 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12,
+ 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
+ 0x2f, 0x2a, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69,
+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x97, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
+ 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69,
+ 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x76,
+ 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3f,
+ 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12,
+ 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12,
+ 0x84, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12,
+ 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
+ 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52,
+ 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x3d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65,
+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69,
+ 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8d, 0x01, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74,
+ 0x65, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65,
+ 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69,
+ 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x3a, 0x08, 0x72, 0x65,
+ 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,
+ 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f,
+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x76,
+ 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x8b, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74,
+ 0x65, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65,
+ 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
+ 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x3d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3,
+ 0xe4, 0x93, 0x02, 0x30, 0x2a, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e,
+ 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x9b, 0x01, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61,
+ 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
+ 0x6c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68,
+ 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
+ 0x22, 0x40, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+ 0x31, 0x12, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69,
+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f,
+ 0x67, 0x73, 0x12, 0x88, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
+ 0x6c, 0x6f, 0x67, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x22, 0x3e, 0xda,
+ 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x76,
0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f,
- 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x9b, 0x01, 0x0a,
- 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x12,
- 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,
- 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73,
- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72,
- 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
- 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,
- 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x88, 0x01, 0x0a, 0x0c, 0x47,
- 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x12, 0x20, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61,
- 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e,
- 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x22, 0x3e, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f,
- 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74,
- 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a,
+ 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31,
+ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -8714,7 +8790,7 @@ func file_v1_database_service_proto_rawDescGZIP() []byte {
return file_v1_database_service_proto_rawDescData
}
-var file_v1_database_service_proto_enumTypes = make([]protoimpl.EnumInfo, 12)
+var file_v1_database_service_proto_enumTypes = make([]protoimpl.EnumInfo, 13)
var file_v1_database_service_proto_msgTypes = make([]protoimpl.MessageInfo, 81)
var file_v1_database_service_proto_goTypes = []any{
(DatabaseMetadataView)(0), // 0: bytebase.v1.DatabaseMetadataView
@@ -8729,249 +8805,251 @@ var file_v1_database_service_proto_goTypes = []any{
(ChangeHistory_Type)(0), // 9: bytebase.v1.ChangeHistory.Type
(ChangeHistory_Status)(0), // 10: bytebase.v1.ChangeHistory.Status
(Changelog_Status)(0), // 11: bytebase.v1.Changelog.Status
- (*GetDatabaseRequest)(nil), // 12: bytebase.v1.GetDatabaseRequest
- (*ListInstanceDatabasesRequest)(nil), // 13: bytebase.v1.ListInstanceDatabasesRequest
- (*ListInstanceDatabasesResponse)(nil), // 14: bytebase.v1.ListInstanceDatabasesResponse
- (*ListDatabasesRequest)(nil), // 15: bytebase.v1.ListDatabasesRequest
- (*ListDatabasesResponse)(nil), // 16: bytebase.v1.ListDatabasesResponse
- (*UpdateDatabaseRequest)(nil), // 17: bytebase.v1.UpdateDatabaseRequest
- (*BatchUpdateDatabasesRequest)(nil), // 18: bytebase.v1.BatchUpdateDatabasesRequest
- (*BatchUpdateDatabasesResponse)(nil), // 19: bytebase.v1.BatchUpdateDatabasesResponse
- (*SyncDatabaseRequest)(nil), // 20: bytebase.v1.SyncDatabaseRequest
- (*SyncDatabaseResponse)(nil), // 21: bytebase.v1.SyncDatabaseResponse
- (*GetDatabaseMetadataRequest)(nil), // 22: bytebase.v1.GetDatabaseMetadataRequest
- (*GetDatabaseSchemaRequest)(nil), // 23: bytebase.v1.GetDatabaseSchemaRequest
- (*DiffSchemaRequest)(nil), // 24: bytebase.v1.DiffSchemaRequest
- (*DiffSchemaResponse)(nil), // 25: bytebase.v1.DiffSchemaResponse
- (*Database)(nil), // 26: bytebase.v1.Database
- (*DatabaseMetadata)(nil), // 27: bytebase.v1.DatabaseMetadata
- (*SchemaMetadata)(nil), // 28: bytebase.v1.SchemaMetadata
- (*EnumTypeMetadata)(nil), // 29: bytebase.v1.EnumTypeMetadata
- (*EventMetadata)(nil), // 30: bytebase.v1.EventMetadata
- (*SequenceMetadata)(nil), // 31: bytebase.v1.SequenceMetadata
- (*TriggerMetadata)(nil), // 32: bytebase.v1.TriggerMetadata
- (*ExternalTableMetadata)(nil), // 33: bytebase.v1.ExternalTableMetadata
- (*TableMetadata)(nil), // 34: bytebase.v1.TableMetadata
- (*CheckConstraintMetadata)(nil), // 35: bytebase.v1.CheckConstraintMetadata
- (*TablePartitionMetadata)(nil), // 36: bytebase.v1.TablePartitionMetadata
- (*ColumnMetadata)(nil), // 37: bytebase.v1.ColumnMetadata
- (*GenerationMetadata)(nil), // 38: bytebase.v1.GenerationMetadata
- (*ViewMetadata)(nil), // 39: bytebase.v1.ViewMetadata
- (*DependentColumn)(nil), // 40: bytebase.v1.DependentColumn
- (*MaterializedViewMetadata)(nil), // 41: bytebase.v1.MaterializedViewMetadata
- (*FunctionMetadata)(nil), // 42: bytebase.v1.FunctionMetadata
- (*ProcedureMetadata)(nil), // 43: bytebase.v1.ProcedureMetadata
- (*PackageMetadata)(nil), // 44: bytebase.v1.PackageMetadata
- (*TaskMetadata)(nil), // 45: bytebase.v1.TaskMetadata
- (*StreamMetadata)(nil), // 46: bytebase.v1.StreamMetadata
- (*IndexMetadata)(nil), // 47: bytebase.v1.IndexMetadata
- (*ExtensionMetadata)(nil), // 48: bytebase.v1.ExtensionMetadata
- (*ForeignKeyMetadata)(nil), // 49: bytebase.v1.ForeignKeyMetadata
- (*DatabaseConfig)(nil), // 50: bytebase.v1.DatabaseConfig
- (*SchemaConfig)(nil), // 51: bytebase.v1.SchemaConfig
- (*TableConfig)(nil), // 52: bytebase.v1.TableConfig
- (*FunctionConfig)(nil), // 53: bytebase.v1.FunctionConfig
- (*ProcedureConfig)(nil), // 54: bytebase.v1.ProcedureConfig
- (*ViewConfig)(nil), // 55: bytebase.v1.ViewConfig
- (*ColumnConfig)(nil), // 56: bytebase.v1.ColumnConfig
- (*DatabaseSchema)(nil), // 57: bytebase.v1.DatabaseSchema
- (*ListSlowQueriesRequest)(nil), // 58: bytebase.v1.ListSlowQueriesRequest
- (*ListSlowQueriesResponse)(nil), // 59: bytebase.v1.ListSlowQueriesResponse
- (*SlowQueryLog)(nil), // 60: bytebase.v1.SlowQueryLog
- (*SlowQueryStatistics)(nil), // 61: bytebase.v1.SlowQueryStatistics
- (*SlowQueryDetails)(nil), // 62: bytebase.v1.SlowQueryDetails
- (*ListSecretsRequest)(nil), // 63: bytebase.v1.ListSecretsRequest
- (*ListSecretsResponse)(nil), // 64: bytebase.v1.ListSecretsResponse
- (*UpdateSecretRequest)(nil), // 65: bytebase.v1.UpdateSecretRequest
- (*DeleteSecretRequest)(nil), // 66: bytebase.v1.DeleteSecretRequest
- (*Secret)(nil), // 67: bytebase.v1.Secret
- (*AdviseIndexRequest)(nil), // 68: bytebase.v1.AdviseIndexRequest
- (*AdviseIndexResponse)(nil), // 69: bytebase.v1.AdviseIndexResponse
- (*ChangeHistory)(nil), // 70: bytebase.v1.ChangeHistory
- (*ChangedResources)(nil), // 71: bytebase.v1.ChangedResources
- (*ChangedResourceDatabase)(nil), // 72: bytebase.v1.ChangedResourceDatabase
- (*ChangedResourceSchema)(nil), // 73: bytebase.v1.ChangedResourceSchema
- (*ChangedResourceTable)(nil), // 74: bytebase.v1.ChangedResourceTable
- (*ChangedResourceView)(nil), // 75: bytebase.v1.ChangedResourceView
- (*ChangedResourceFunction)(nil), // 76: bytebase.v1.ChangedResourceFunction
- (*ChangedResourceProcedure)(nil), // 77: bytebase.v1.ChangedResourceProcedure
- (*ListChangeHistoriesRequest)(nil), // 78: bytebase.v1.ListChangeHistoriesRequest
- (*ListChangeHistoriesResponse)(nil), // 79: bytebase.v1.ListChangeHistoriesResponse
- (*GetChangeHistoryRequest)(nil), // 80: bytebase.v1.GetChangeHistoryRequest
- (*ListRevisionsRequest)(nil), // 81: bytebase.v1.ListRevisionsRequest
- (*ListRevisionsResponse)(nil), // 82: bytebase.v1.ListRevisionsResponse
- (*CreateRevisionRequest)(nil), // 83: bytebase.v1.CreateRevisionRequest
- (*GetRevisionRequest)(nil), // 84: bytebase.v1.GetRevisionRequest
- (*DeleteRevisionRequest)(nil), // 85: bytebase.v1.DeleteRevisionRequest
- (*Revision)(nil), // 86: bytebase.v1.Revision
- (*ListChangelogsRequest)(nil), // 87: bytebase.v1.ListChangelogsRequest
- (*ListChangelogsResponse)(nil), // 88: bytebase.v1.ListChangelogsResponse
- (*GetChangelogRequest)(nil), // 89: bytebase.v1.GetChangelogRequest
- (*Changelog)(nil), // 90: bytebase.v1.Changelog
- nil, // 91: bytebase.v1.Database.LabelsEntry
- nil, // 92: bytebase.v1.ColumnConfig.LabelsEntry
- (*fieldmaskpb.FieldMask)(nil), // 93: google.protobuf.FieldMask
- (State)(0), // 94: bytebase.v1.State
- (*timestamppb.Timestamp)(nil), // 95: google.protobuf.Timestamp
- (*InstanceResource)(nil), // 96: bytebase.v1.InstanceResource
- (MaskingLevel)(0), // 97: bytebase.v1.MaskingLevel
- (*durationpb.Duration)(nil), // 98: google.protobuf.Duration
- (*Range)(nil), // 99: bytebase.v1.Range
- (*emptypb.Empty)(nil), // 100: google.protobuf.Empty
+ (Changelog_Type)(0), // 12: bytebase.v1.Changelog.Type
+ (*GetDatabaseRequest)(nil), // 13: bytebase.v1.GetDatabaseRequest
+ (*ListInstanceDatabasesRequest)(nil), // 14: bytebase.v1.ListInstanceDatabasesRequest
+ (*ListInstanceDatabasesResponse)(nil), // 15: bytebase.v1.ListInstanceDatabasesResponse
+ (*ListDatabasesRequest)(nil), // 16: bytebase.v1.ListDatabasesRequest
+ (*ListDatabasesResponse)(nil), // 17: bytebase.v1.ListDatabasesResponse
+ (*UpdateDatabaseRequest)(nil), // 18: bytebase.v1.UpdateDatabaseRequest
+ (*BatchUpdateDatabasesRequest)(nil), // 19: bytebase.v1.BatchUpdateDatabasesRequest
+ (*BatchUpdateDatabasesResponse)(nil), // 20: bytebase.v1.BatchUpdateDatabasesResponse
+ (*SyncDatabaseRequest)(nil), // 21: bytebase.v1.SyncDatabaseRequest
+ (*SyncDatabaseResponse)(nil), // 22: bytebase.v1.SyncDatabaseResponse
+ (*GetDatabaseMetadataRequest)(nil), // 23: bytebase.v1.GetDatabaseMetadataRequest
+ (*GetDatabaseSchemaRequest)(nil), // 24: bytebase.v1.GetDatabaseSchemaRequest
+ (*DiffSchemaRequest)(nil), // 25: bytebase.v1.DiffSchemaRequest
+ (*DiffSchemaResponse)(nil), // 26: bytebase.v1.DiffSchemaResponse
+ (*Database)(nil), // 27: bytebase.v1.Database
+ (*DatabaseMetadata)(nil), // 28: bytebase.v1.DatabaseMetadata
+ (*SchemaMetadata)(nil), // 29: bytebase.v1.SchemaMetadata
+ (*EnumTypeMetadata)(nil), // 30: bytebase.v1.EnumTypeMetadata
+ (*EventMetadata)(nil), // 31: bytebase.v1.EventMetadata
+ (*SequenceMetadata)(nil), // 32: bytebase.v1.SequenceMetadata
+ (*TriggerMetadata)(nil), // 33: bytebase.v1.TriggerMetadata
+ (*ExternalTableMetadata)(nil), // 34: bytebase.v1.ExternalTableMetadata
+ (*TableMetadata)(nil), // 35: bytebase.v1.TableMetadata
+ (*CheckConstraintMetadata)(nil), // 36: bytebase.v1.CheckConstraintMetadata
+ (*TablePartitionMetadata)(nil), // 37: bytebase.v1.TablePartitionMetadata
+ (*ColumnMetadata)(nil), // 38: bytebase.v1.ColumnMetadata
+ (*GenerationMetadata)(nil), // 39: bytebase.v1.GenerationMetadata
+ (*ViewMetadata)(nil), // 40: bytebase.v1.ViewMetadata
+ (*DependentColumn)(nil), // 41: bytebase.v1.DependentColumn
+ (*MaterializedViewMetadata)(nil), // 42: bytebase.v1.MaterializedViewMetadata
+ (*FunctionMetadata)(nil), // 43: bytebase.v1.FunctionMetadata
+ (*ProcedureMetadata)(nil), // 44: bytebase.v1.ProcedureMetadata
+ (*PackageMetadata)(nil), // 45: bytebase.v1.PackageMetadata
+ (*TaskMetadata)(nil), // 46: bytebase.v1.TaskMetadata
+ (*StreamMetadata)(nil), // 47: bytebase.v1.StreamMetadata
+ (*IndexMetadata)(nil), // 48: bytebase.v1.IndexMetadata
+ (*ExtensionMetadata)(nil), // 49: bytebase.v1.ExtensionMetadata
+ (*ForeignKeyMetadata)(nil), // 50: bytebase.v1.ForeignKeyMetadata
+ (*DatabaseConfig)(nil), // 51: bytebase.v1.DatabaseConfig
+ (*SchemaConfig)(nil), // 52: bytebase.v1.SchemaConfig
+ (*TableConfig)(nil), // 53: bytebase.v1.TableConfig
+ (*FunctionConfig)(nil), // 54: bytebase.v1.FunctionConfig
+ (*ProcedureConfig)(nil), // 55: bytebase.v1.ProcedureConfig
+ (*ViewConfig)(nil), // 56: bytebase.v1.ViewConfig
+ (*ColumnConfig)(nil), // 57: bytebase.v1.ColumnConfig
+ (*DatabaseSchema)(nil), // 58: bytebase.v1.DatabaseSchema
+ (*ListSlowQueriesRequest)(nil), // 59: bytebase.v1.ListSlowQueriesRequest
+ (*ListSlowQueriesResponse)(nil), // 60: bytebase.v1.ListSlowQueriesResponse
+ (*SlowQueryLog)(nil), // 61: bytebase.v1.SlowQueryLog
+ (*SlowQueryStatistics)(nil), // 62: bytebase.v1.SlowQueryStatistics
+ (*SlowQueryDetails)(nil), // 63: bytebase.v1.SlowQueryDetails
+ (*ListSecretsRequest)(nil), // 64: bytebase.v1.ListSecretsRequest
+ (*ListSecretsResponse)(nil), // 65: bytebase.v1.ListSecretsResponse
+ (*UpdateSecretRequest)(nil), // 66: bytebase.v1.UpdateSecretRequest
+ (*DeleteSecretRequest)(nil), // 67: bytebase.v1.DeleteSecretRequest
+ (*Secret)(nil), // 68: bytebase.v1.Secret
+ (*AdviseIndexRequest)(nil), // 69: bytebase.v1.AdviseIndexRequest
+ (*AdviseIndexResponse)(nil), // 70: bytebase.v1.AdviseIndexResponse
+ (*ChangeHistory)(nil), // 71: bytebase.v1.ChangeHistory
+ (*ChangedResources)(nil), // 72: bytebase.v1.ChangedResources
+ (*ChangedResourceDatabase)(nil), // 73: bytebase.v1.ChangedResourceDatabase
+ (*ChangedResourceSchema)(nil), // 74: bytebase.v1.ChangedResourceSchema
+ (*ChangedResourceTable)(nil), // 75: bytebase.v1.ChangedResourceTable
+ (*ChangedResourceView)(nil), // 76: bytebase.v1.ChangedResourceView
+ (*ChangedResourceFunction)(nil), // 77: bytebase.v1.ChangedResourceFunction
+ (*ChangedResourceProcedure)(nil), // 78: bytebase.v1.ChangedResourceProcedure
+ (*ListChangeHistoriesRequest)(nil), // 79: bytebase.v1.ListChangeHistoriesRequest
+ (*ListChangeHistoriesResponse)(nil), // 80: bytebase.v1.ListChangeHistoriesResponse
+ (*GetChangeHistoryRequest)(nil), // 81: bytebase.v1.GetChangeHistoryRequest
+ (*ListRevisionsRequest)(nil), // 82: bytebase.v1.ListRevisionsRequest
+ (*ListRevisionsResponse)(nil), // 83: bytebase.v1.ListRevisionsResponse
+ (*CreateRevisionRequest)(nil), // 84: bytebase.v1.CreateRevisionRequest
+ (*GetRevisionRequest)(nil), // 85: bytebase.v1.GetRevisionRequest
+ (*DeleteRevisionRequest)(nil), // 86: bytebase.v1.DeleteRevisionRequest
+ (*Revision)(nil), // 87: bytebase.v1.Revision
+ (*ListChangelogsRequest)(nil), // 88: bytebase.v1.ListChangelogsRequest
+ (*ListChangelogsResponse)(nil), // 89: bytebase.v1.ListChangelogsResponse
+ (*GetChangelogRequest)(nil), // 90: bytebase.v1.GetChangelogRequest
+ (*Changelog)(nil), // 91: bytebase.v1.Changelog
+ nil, // 92: bytebase.v1.Database.LabelsEntry
+ nil, // 93: bytebase.v1.ColumnConfig.LabelsEntry
+ (*fieldmaskpb.FieldMask)(nil), // 94: google.protobuf.FieldMask
+ (State)(0), // 95: bytebase.v1.State
+ (*timestamppb.Timestamp)(nil), // 96: google.protobuf.Timestamp
+ (*InstanceResource)(nil), // 97: bytebase.v1.InstanceResource
+ (MaskingLevel)(0), // 98: bytebase.v1.MaskingLevel
+ (*durationpb.Duration)(nil), // 99: google.protobuf.Duration
+ (*Range)(nil), // 100: bytebase.v1.Range
+ (*emptypb.Empty)(nil), // 101: google.protobuf.Empty
}
var file_v1_database_service_proto_depIdxs = []int32{
- 26, // 0: bytebase.v1.ListInstanceDatabasesResponse.databases:type_name -> bytebase.v1.Database
- 26, // 1: bytebase.v1.ListDatabasesResponse.databases:type_name -> bytebase.v1.Database
- 26, // 2: bytebase.v1.UpdateDatabaseRequest.database:type_name -> bytebase.v1.Database
- 93, // 3: bytebase.v1.UpdateDatabaseRequest.update_mask:type_name -> google.protobuf.FieldMask
- 17, // 4: bytebase.v1.BatchUpdateDatabasesRequest.requests:type_name -> bytebase.v1.UpdateDatabaseRequest
- 26, // 5: bytebase.v1.BatchUpdateDatabasesResponse.databases:type_name -> bytebase.v1.Database
+ 27, // 0: bytebase.v1.ListInstanceDatabasesResponse.databases:type_name -> bytebase.v1.Database
+ 27, // 1: bytebase.v1.ListDatabasesResponse.databases:type_name -> bytebase.v1.Database
+ 27, // 2: bytebase.v1.UpdateDatabaseRequest.database:type_name -> bytebase.v1.Database
+ 94, // 3: bytebase.v1.UpdateDatabaseRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 18, // 4: bytebase.v1.BatchUpdateDatabasesRequest.requests:type_name -> bytebase.v1.UpdateDatabaseRequest
+ 27, // 5: bytebase.v1.BatchUpdateDatabasesResponse.databases:type_name -> bytebase.v1.Database
0, // 6: bytebase.v1.GetDatabaseMetadataRequest.view:type_name -> bytebase.v1.DatabaseMetadataView
- 94, // 7: bytebase.v1.Database.sync_state:type_name -> bytebase.v1.State
- 95, // 8: bytebase.v1.Database.successful_sync_time:type_name -> google.protobuf.Timestamp
- 91, // 9: bytebase.v1.Database.labels:type_name -> bytebase.v1.Database.LabelsEntry
- 96, // 10: bytebase.v1.Database.instance_resource:type_name -> bytebase.v1.InstanceResource
- 28, // 11: bytebase.v1.DatabaseMetadata.schemas:type_name -> bytebase.v1.SchemaMetadata
- 48, // 12: bytebase.v1.DatabaseMetadata.extensions:type_name -> bytebase.v1.ExtensionMetadata
- 51, // 13: bytebase.v1.DatabaseMetadata.schema_configs:type_name -> bytebase.v1.SchemaConfig
- 34, // 14: bytebase.v1.SchemaMetadata.tables:type_name -> bytebase.v1.TableMetadata
- 33, // 15: bytebase.v1.SchemaMetadata.external_tables:type_name -> bytebase.v1.ExternalTableMetadata
- 39, // 16: bytebase.v1.SchemaMetadata.views:type_name -> bytebase.v1.ViewMetadata
- 42, // 17: bytebase.v1.SchemaMetadata.functions:type_name -> bytebase.v1.FunctionMetadata
- 43, // 18: bytebase.v1.SchemaMetadata.procedures:type_name -> bytebase.v1.ProcedureMetadata
- 46, // 19: bytebase.v1.SchemaMetadata.streams:type_name -> bytebase.v1.StreamMetadata
- 45, // 20: bytebase.v1.SchemaMetadata.tasks:type_name -> bytebase.v1.TaskMetadata
- 41, // 21: bytebase.v1.SchemaMetadata.materialized_views:type_name -> bytebase.v1.MaterializedViewMetadata
- 44, // 22: bytebase.v1.SchemaMetadata.packages:type_name -> bytebase.v1.PackageMetadata
- 31, // 23: bytebase.v1.SchemaMetadata.sequences:type_name -> bytebase.v1.SequenceMetadata
- 30, // 24: bytebase.v1.SchemaMetadata.events:type_name -> bytebase.v1.EventMetadata
- 29, // 25: bytebase.v1.SchemaMetadata.enum_types:type_name -> bytebase.v1.EnumTypeMetadata
- 37, // 26: bytebase.v1.ExternalTableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata
- 37, // 27: bytebase.v1.TableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata
- 47, // 28: bytebase.v1.TableMetadata.indexes:type_name -> bytebase.v1.IndexMetadata
- 49, // 29: bytebase.v1.TableMetadata.foreign_keys:type_name -> bytebase.v1.ForeignKeyMetadata
- 36, // 30: bytebase.v1.TableMetadata.partitions:type_name -> bytebase.v1.TablePartitionMetadata
- 35, // 31: bytebase.v1.TableMetadata.check_constraints:type_name -> bytebase.v1.CheckConstraintMetadata
- 32, // 32: bytebase.v1.TableMetadata.triggers:type_name -> bytebase.v1.TriggerMetadata
+ 95, // 7: bytebase.v1.Database.sync_state:type_name -> bytebase.v1.State
+ 96, // 8: bytebase.v1.Database.successful_sync_time:type_name -> google.protobuf.Timestamp
+ 92, // 9: bytebase.v1.Database.labels:type_name -> bytebase.v1.Database.LabelsEntry
+ 97, // 10: bytebase.v1.Database.instance_resource:type_name -> bytebase.v1.InstanceResource
+ 29, // 11: bytebase.v1.DatabaseMetadata.schemas:type_name -> bytebase.v1.SchemaMetadata
+ 49, // 12: bytebase.v1.DatabaseMetadata.extensions:type_name -> bytebase.v1.ExtensionMetadata
+ 52, // 13: bytebase.v1.DatabaseMetadata.schema_configs:type_name -> bytebase.v1.SchemaConfig
+ 35, // 14: bytebase.v1.SchemaMetadata.tables:type_name -> bytebase.v1.TableMetadata
+ 34, // 15: bytebase.v1.SchemaMetadata.external_tables:type_name -> bytebase.v1.ExternalTableMetadata
+ 40, // 16: bytebase.v1.SchemaMetadata.views:type_name -> bytebase.v1.ViewMetadata
+ 43, // 17: bytebase.v1.SchemaMetadata.functions:type_name -> bytebase.v1.FunctionMetadata
+ 44, // 18: bytebase.v1.SchemaMetadata.procedures:type_name -> bytebase.v1.ProcedureMetadata
+ 47, // 19: bytebase.v1.SchemaMetadata.streams:type_name -> bytebase.v1.StreamMetadata
+ 46, // 20: bytebase.v1.SchemaMetadata.tasks:type_name -> bytebase.v1.TaskMetadata
+ 42, // 21: bytebase.v1.SchemaMetadata.materialized_views:type_name -> bytebase.v1.MaterializedViewMetadata
+ 45, // 22: bytebase.v1.SchemaMetadata.packages:type_name -> bytebase.v1.PackageMetadata
+ 32, // 23: bytebase.v1.SchemaMetadata.sequences:type_name -> bytebase.v1.SequenceMetadata
+ 31, // 24: bytebase.v1.SchemaMetadata.events:type_name -> bytebase.v1.EventMetadata
+ 30, // 25: bytebase.v1.SchemaMetadata.enum_types:type_name -> bytebase.v1.EnumTypeMetadata
+ 38, // 26: bytebase.v1.ExternalTableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata
+ 38, // 27: bytebase.v1.TableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata
+ 48, // 28: bytebase.v1.TableMetadata.indexes:type_name -> bytebase.v1.IndexMetadata
+ 50, // 29: bytebase.v1.TableMetadata.foreign_keys:type_name -> bytebase.v1.ForeignKeyMetadata
+ 37, // 30: bytebase.v1.TableMetadata.partitions:type_name -> bytebase.v1.TablePartitionMetadata
+ 36, // 31: bytebase.v1.TableMetadata.check_constraints:type_name -> bytebase.v1.CheckConstraintMetadata
+ 33, // 32: bytebase.v1.TableMetadata.triggers:type_name -> bytebase.v1.TriggerMetadata
3, // 33: bytebase.v1.TablePartitionMetadata.type:type_name -> bytebase.v1.TablePartitionMetadata.Type
- 36, // 34: bytebase.v1.TablePartitionMetadata.subpartitions:type_name -> bytebase.v1.TablePartitionMetadata
- 47, // 35: bytebase.v1.TablePartitionMetadata.indexes:type_name -> bytebase.v1.IndexMetadata
- 97, // 36: bytebase.v1.ColumnMetadata.effective_masking_level:type_name -> bytebase.v1.MaskingLevel
- 38, // 37: bytebase.v1.ColumnMetadata.generation:type_name -> bytebase.v1.GenerationMetadata
+ 37, // 34: bytebase.v1.TablePartitionMetadata.subpartitions:type_name -> bytebase.v1.TablePartitionMetadata
+ 48, // 35: bytebase.v1.TablePartitionMetadata.indexes:type_name -> bytebase.v1.IndexMetadata
+ 98, // 36: bytebase.v1.ColumnMetadata.effective_masking_level:type_name -> bytebase.v1.MaskingLevel
+ 39, // 37: bytebase.v1.ColumnMetadata.generation:type_name -> bytebase.v1.GenerationMetadata
4, // 38: bytebase.v1.GenerationMetadata.type:type_name -> bytebase.v1.GenerationMetadata.Type
- 40, // 39: bytebase.v1.ViewMetadata.dependent_columns:type_name -> bytebase.v1.DependentColumn
- 37, // 40: bytebase.v1.ViewMetadata.columns:type_name -> bytebase.v1.ColumnMetadata
- 32, // 41: bytebase.v1.ViewMetadata.triggers:type_name -> bytebase.v1.TriggerMetadata
- 40, // 42: bytebase.v1.MaterializedViewMetadata.dependent_columns:type_name -> bytebase.v1.DependentColumn
- 32, // 43: bytebase.v1.MaterializedViewMetadata.triggers:type_name -> bytebase.v1.TriggerMetadata
+ 41, // 39: bytebase.v1.ViewMetadata.dependent_columns:type_name -> bytebase.v1.DependentColumn
+ 38, // 40: bytebase.v1.ViewMetadata.columns:type_name -> bytebase.v1.ColumnMetadata
+ 33, // 41: bytebase.v1.ViewMetadata.triggers:type_name -> bytebase.v1.TriggerMetadata
+ 41, // 42: bytebase.v1.MaterializedViewMetadata.dependent_columns:type_name -> bytebase.v1.DependentColumn
+ 33, // 43: bytebase.v1.MaterializedViewMetadata.triggers:type_name -> bytebase.v1.TriggerMetadata
5, // 44: bytebase.v1.TaskMetadata.state:type_name -> bytebase.v1.TaskMetadata.State
6, // 45: bytebase.v1.StreamMetadata.type:type_name -> bytebase.v1.StreamMetadata.Type
7, // 46: bytebase.v1.StreamMetadata.mode:type_name -> bytebase.v1.StreamMetadata.Mode
- 51, // 47: bytebase.v1.DatabaseConfig.schema_configs:type_name -> bytebase.v1.SchemaConfig
- 52, // 48: bytebase.v1.SchemaConfig.table_configs:type_name -> bytebase.v1.TableConfig
- 53, // 49: bytebase.v1.SchemaConfig.function_configs:type_name -> bytebase.v1.FunctionConfig
- 54, // 50: bytebase.v1.SchemaConfig.procedure_configs:type_name -> bytebase.v1.ProcedureConfig
- 55, // 51: bytebase.v1.SchemaConfig.view_configs:type_name -> bytebase.v1.ViewConfig
- 56, // 52: bytebase.v1.TableConfig.column_configs:type_name -> bytebase.v1.ColumnConfig
- 95, // 53: bytebase.v1.TableConfig.update_time:type_name -> google.protobuf.Timestamp
- 95, // 54: bytebase.v1.FunctionConfig.update_time:type_name -> google.protobuf.Timestamp
- 95, // 55: bytebase.v1.ProcedureConfig.update_time:type_name -> google.protobuf.Timestamp
- 95, // 56: bytebase.v1.ViewConfig.update_time:type_name -> google.protobuf.Timestamp
- 92, // 57: bytebase.v1.ColumnConfig.labels:type_name -> bytebase.v1.ColumnConfig.LabelsEntry
- 97, // 58: bytebase.v1.ColumnConfig.masking_level:type_name -> bytebase.v1.MaskingLevel
- 60, // 59: bytebase.v1.ListSlowQueriesResponse.slow_query_logs:type_name -> bytebase.v1.SlowQueryLog
- 61, // 60: bytebase.v1.SlowQueryLog.statistics:type_name -> bytebase.v1.SlowQueryStatistics
- 95, // 61: bytebase.v1.SlowQueryStatistics.latest_log_time:type_name -> google.protobuf.Timestamp
- 98, // 62: bytebase.v1.SlowQueryStatistics.average_query_time:type_name -> google.protobuf.Duration
- 98, // 63: bytebase.v1.SlowQueryStatistics.maximum_query_time:type_name -> google.protobuf.Duration
- 62, // 64: bytebase.v1.SlowQueryStatistics.samples:type_name -> bytebase.v1.SlowQueryDetails
- 95, // 65: bytebase.v1.SlowQueryDetails.start_time:type_name -> google.protobuf.Timestamp
- 98, // 66: bytebase.v1.SlowQueryDetails.query_time:type_name -> google.protobuf.Duration
- 98, // 67: bytebase.v1.SlowQueryDetails.lock_time:type_name -> google.protobuf.Duration
- 67, // 68: bytebase.v1.ListSecretsResponse.secrets:type_name -> bytebase.v1.Secret
- 67, // 69: bytebase.v1.UpdateSecretRequest.secret:type_name -> bytebase.v1.Secret
- 93, // 70: bytebase.v1.UpdateSecretRequest.update_mask:type_name -> google.protobuf.FieldMask
- 95, // 71: bytebase.v1.Secret.created_time:type_name -> google.protobuf.Timestamp
- 95, // 72: bytebase.v1.Secret.updated_time:type_name -> google.protobuf.Timestamp
- 95, // 73: bytebase.v1.ChangeHistory.create_time:type_name -> google.protobuf.Timestamp
- 95, // 74: bytebase.v1.ChangeHistory.update_time:type_name -> google.protobuf.Timestamp
+ 52, // 47: bytebase.v1.DatabaseConfig.schema_configs:type_name -> bytebase.v1.SchemaConfig
+ 53, // 48: bytebase.v1.SchemaConfig.table_configs:type_name -> bytebase.v1.TableConfig
+ 54, // 49: bytebase.v1.SchemaConfig.function_configs:type_name -> bytebase.v1.FunctionConfig
+ 55, // 50: bytebase.v1.SchemaConfig.procedure_configs:type_name -> bytebase.v1.ProcedureConfig
+ 56, // 51: bytebase.v1.SchemaConfig.view_configs:type_name -> bytebase.v1.ViewConfig
+ 57, // 52: bytebase.v1.TableConfig.column_configs:type_name -> bytebase.v1.ColumnConfig
+ 96, // 53: bytebase.v1.TableConfig.update_time:type_name -> google.protobuf.Timestamp
+ 96, // 54: bytebase.v1.FunctionConfig.update_time:type_name -> google.protobuf.Timestamp
+ 96, // 55: bytebase.v1.ProcedureConfig.update_time:type_name -> google.protobuf.Timestamp
+ 96, // 56: bytebase.v1.ViewConfig.update_time:type_name -> google.protobuf.Timestamp
+ 93, // 57: bytebase.v1.ColumnConfig.labels:type_name -> bytebase.v1.ColumnConfig.LabelsEntry
+ 98, // 58: bytebase.v1.ColumnConfig.masking_level:type_name -> bytebase.v1.MaskingLevel
+ 61, // 59: bytebase.v1.ListSlowQueriesResponse.slow_query_logs:type_name -> bytebase.v1.SlowQueryLog
+ 62, // 60: bytebase.v1.SlowQueryLog.statistics:type_name -> bytebase.v1.SlowQueryStatistics
+ 96, // 61: bytebase.v1.SlowQueryStatistics.latest_log_time:type_name -> google.protobuf.Timestamp
+ 99, // 62: bytebase.v1.SlowQueryStatistics.average_query_time:type_name -> google.protobuf.Duration
+ 99, // 63: bytebase.v1.SlowQueryStatistics.maximum_query_time:type_name -> google.protobuf.Duration
+ 63, // 64: bytebase.v1.SlowQueryStatistics.samples:type_name -> bytebase.v1.SlowQueryDetails
+ 96, // 65: bytebase.v1.SlowQueryDetails.start_time:type_name -> google.protobuf.Timestamp
+ 99, // 66: bytebase.v1.SlowQueryDetails.query_time:type_name -> google.protobuf.Duration
+ 99, // 67: bytebase.v1.SlowQueryDetails.lock_time:type_name -> google.protobuf.Duration
+ 68, // 68: bytebase.v1.ListSecretsResponse.secrets:type_name -> bytebase.v1.Secret
+ 68, // 69: bytebase.v1.UpdateSecretRequest.secret:type_name -> bytebase.v1.Secret
+ 94, // 70: bytebase.v1.UpdateSecretRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 96, // 71: bytebase.v1.Secret.created_time:type_name -> google.protobuf.Timestamp
+ 96, // 72: bytebase.v1.Secret.updated_time:type_name -> google.protobuf.Timestamp
+ 96, // 73: bytebase.v1.ChangeHistory.create_time:type_name -> google.protobuf.Timestamp
+ 96, // 74: bytebase.v1.ChangeHistory.update_time:type_name -> google.protobuf.Timestamp
8, // 75: bytebase.v1.ChangeHistory.source:type_name -> bytebase.v1.ChangeHistory.Source
9, // 76: bytebase.v1.ChangeHistory.type:type_name -> bytebase.v1.ChangeHistory.Type
10, // 77: bytebase.v1.ChangeHistory.status:type_name -> bytebase.v1.ChangeHistory.Status
- 98, // 78: bytebase.v1.ChangeHistory.execution_duration:type_name -> google.protobuf.Duration
- 71, // 79: bytebase.v1.ChangeHistory.changed_resources:type_name -> bytebase.v1.ChangedResources
- 72, // 80: bytebase.v1.ChangedResources.databases:type_name -> bytebase.v1.ChangedResourceDatabase
- 73, // 81: bytebase.v1.ChangedResourceDatabase.schemas:type_name -> bytebase.v1.ChangedResourceSchema
- 74, // 82: bytebase.v1.ChangedResourceSchema.tables:type_name -> bytebase.v1.ChangedResourceTable
- 75, // 83: bytebase.v1.ChangedResourceSchema.views:type_name -> bytebase.v1.ChangedResourceView
- 76, // 84: bytebase.v1.ChangedResourceSchema.functions:type_name -> bytebase.v1.ChangedResourceFunction
- 77, // 85: bytebase.v1.ChangedResourceSchema.procedures:type_name -> bytebase.v1.ChangedResourceProcedure
- 99, // 86: bytebase.v1.ChangedResourceTable.ranges:type_name -> bytebase.v1.Range
- 99, // 87: bytebase.v1.ChangedResourceView.ranges:type_name -> bytebase.v1.Range
- 99, // 88: bytebase.v1.ChangedResourceFunction.ranges:type_name -> bytebase.v1.Range
- 99, // 89: bytebase.v1.ChangedResourceProcedure.ranges:type_name -> bytebase.v1.Range
+ 99, // 78: bytebase.v1.ChangeHistory.execution_duration:type_name -> google.protobuf.Duration
+ 72, // 79: bytebase.v1.ChangeHistory.changed_resources:type_name -> bytebase.v1.ChangedResources
+ 73, // 80: bytebase.v1.ChangedResources.databases:type_name -> bytebase.v1.ChangedResourceDatabase
+ 74, // 81: bytebase.v1.ChangedResourceDatabase.schemas:type_name -> bytebase.v1.ChangedResourceSchema
+ 75, // 82: bytebase.v1.ChangedResourceSchema.tables:type_name -> bytebase.v1.ChangedResourceTable
+ 76, // 83: bytebase.v1.ChangedResourceSchema.views:type_name -> bytebase.v1.ChangedResourceView
+ 77, // 84: bytebase.v1.ChangedResourceSchema.functions:type_name -> bytebase.v1.ChangedResourceFunction
+ 78, // 85: bytebase.v1.ChangedResourceSchema.procedures:type_name -> bytebase.v1.ChangedResourceProcedure
+ 100, // 86: bytebase.v1.ChangedResourceTable.ranges:type_name -> bytebase.v1.Range
+ 100, // 87: bytebase.v1.ChangedResourceView.ranges:type_name -> bytebase.v1.Range
+ 100, // 88: bytebase.v1.ChangedResourceFunction.ranges:type_name -> bytebase.v1.Range
+ 100, // 89: bytebase.v1.ChangedResourceProcedure.ranges:type_name -> bytebase.v1.Range
1, // 90: bytebase.v1.ListChangeHistoriesRequest.view:type_name -> bytebase.v1.ChangeHistoryView
- 70, // 91: bytebase.v1.ListChangeHistoriesResponse.change_histories:type_name -> bytebase.v1.ChangeHistory
+ 71, // 91: bytebase.v1.ListChangeHistoriesResponse.change_histories:type_name -> bytebase.v1.ChangeHistory
1, // 92: bytebase.v1.GetChangeHistoryRequest.view:type_name -> bytebase.v1.ChangeHistoryView
- 86, // 93: bytebase.v1.ListRevisionsResponse.revisions:type_name -> bytebase.v1.Revision
- 86, // 94: bytebase.v1.CreateRevisionRequest.revision:type_name -> bytebase.v1.Revision
- 95, // 95: bytebase.v1.Revision.create_time:type_name -> google.protobuf.Timestamp
- 95, // 96: bytebase.v1.Revision.delete_time:type_name -> google.protobuf.Timestamp
+ 87, // 93: bytebase.v1.ListRevisionsResponse.revisions:type_name -> bytebase.v1.Revision
+ 87, // 94: bytebase.v1.CreateRevisionRequest.revision:type_name -> bytebase.v1.Revision
+ 96, // 95: bytebase.v1.Revision.create_time:type_name -> google.protobuf.Timestamp
+ 96, // 96: bytebase.v1.Revision.delete_time:type_name -> google.protobuf.Timestamp
2, // 97: bytebase.v1.ListChangelogsRequest.view:type_name -> bytebase.v1.ChangelogView
- 90, // 98: bytebase.v1.ListChangelogsResponse.changelogs:type_name -> bytebase.v1.Changelog
+ 91, // 98: bytebase.v1.ListChangelogsResponse.changelogs:type_name -> bytebase.v1.Changelog
2, // 99: bytebase.v1.GetChangelogRequest.view:type_name -> bytebase.v1.ChangelogView
- 95, // 100: bytebase.v1.Changelog.create_time:type_name -> google.protobuf.Timestamp
+ 96, // 100: bytebase.v1.Changelog.create_time:type_name -> google.protobuf.Timestamp
11, // 101: bytebase.v1.Changelog.status:type_name -> bytebase.v1.Changelog.Status
- 71, // 102: bytebase.v1.Changelog.changed_resources:type_name -> bytebase.v1.ChangedResources
- 12, // 103: bytebase.v1.DatabaseService.GetDatabase:input_type -> bytebase.v1.GetDatabaseRequest
- 13, // 104: bytebase.v1.DatabaseService.ListInstanceDatabases:input_type -> bytebase.v1.ListInstanceDatabasesRequest
- 15, // 105: bytebase.v1.DatabaseService.ListDatabases:input_type -> bytebase.v1.ListDatabasesRequest
- 17, // 106: bytebase.v1.DatabaseService.UpdateDatabase:input_type -> bytebase.v1.UpdateDatabaseRequest
- 18, // 107: bytebase.v1.DatabaseService.BatchUpdateDatabases:input_type -> bytebase.v1.BatchUpdateDatabasesRequest
- 20, // 108: bytebase.v1.DatabaseService.SyncDatabase:input_type -> bytebase.v1.SyncDatabaseRequest
- 22, // 109: bytebase.v1.DatabaseService.GetDatabaseMetadata:input_type -> bytebase.v1.GetDatabaseMetadataRequest
- 23, // 110: bytebase.v1.DatabaseService.GetDatabaseSchema:input_type -> bytebase.v1.GetDatabaseSchemaRequest
- 24, // 111: bytebase.v1.DatabaseService.DiffSchema:input_type -> bytebase.v1.DiffSchemaRequest
- 58, // 112: bytebase.v1.DatabaseService.ListSlowQueries:input_type -> bytebase.v1.ListSlowQueriesRequest
- 63, // 113: bytebase.v1.DatabaseService.ListSecrets:input_type -> bytebase.v1.ListSecretsRequest
- 65, // 114: bytebase.v1.DatabaseService.UpdateSecret:input_type -> bytebase.v1.UpdateSecretRequest
- 66, // 115: bytebase.v1.DatabaseService.DeleteSecret:input_type -> bytebase.v1.DeleteSecretRequest
- 68, // 116: bytebase.v1.DatabaseService.AdviseIndex:input_type -> bytebase.v1.AdviseIndexRequest
- 78, // 117: bytebase.v1.DatabaseService.ListChangeHistories:input_type -> bytebase.v1.ListChangeHistoriesRequest
- 80, // 118: bytebase.v1.DatabaseService.GetChangeHistory:input_type -> bytebase.v1.GetChangeHistoryRequest
- 81, // 119: bytebase.v1.DatabaseService.ListRevisions:input_type -> bytebase.v1.ListRevisionsRequest
- 84, // 120: bytebase.v1.DatabaseService.GetRevision:input_type -> bytebase.v1.GetRevisionRequest
- 83, // 121: bytebase.v1.DatabaseService.CreateRevision:input_type -> bytebase.v1.CreateRevisionRequest
- 85, // 122: bytebase.v1.DatabaseService.DeleteRevision:input_type -> bytebase.v1.DeleteRevisionRequest
- 87, // 123: bytebase.v1.DatabaseService.ListChangelogs:input_type -> bytebase.v1.ListChangelogsRequest
- 89, // 124: bytebase.v1.DatabaseService.GetChangelog:input_type -> bytebase.v1.GetChangelogRequest
- 26, // 125: bytebase.v1.DatabaseService.GetDatabase:output_type -> bytebase.v1.Database
- 14, // 126: bytebase.v1.DatabaseService.ListInstanceDatabases:output_type -> bytebase.v1.ListInstanceDatabasesResponse
- 16, // 127: bytebase.v1.DatabaseService.ListDatabases:output_type -> bytebase.v1.ListDatabasesResponse
- 26, // 128: bytebase.v1.DatabaseService.UpdateDatabase:output_type -> bytebase.v1.Database
- 19, // 129: bytebase.v1.DatabaseService.BatchUpdateDatabases:output_type -> bytebase.v1.BatchUpdateDatabasesResponse
- 21, // 130: bytebase.v1.DatabaseService.SyncDatabase:output_type -> bytebase.v1.SyncDatabaseResponse
- 27, // 131: bytebase.v1.DatabaseService.GetDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata
- 57, // 132: bytebase.v1.DatabaseService.GetDatabaseSchema:output_type -> bytebase.v1.DatabaseSchema
- 25, // 133: bytebase.v1.DatabaseService.DiffSchema:output_type -> bytebase.v1.DiffSchemaResponse
- 59, // 134: bytebase.v1.DatabaseService.ListSlowQueries:output_type -> bytebase.v1.ListSlowQueriesResponse
- 64, // 135: bytebase.v1.DatabaseService.ListSecrets:output_type -> bytebase.v1.ListSecretsResponse
- 67, // 136: bytebase.v1.DatabaseService.UpdateSecret:output_type -> bytebase.v1.Secret
- 100, // 137: bytebase.v1.DatabaseService.DeleteSecret:output_type -> google.protobuf.Empty
- 69, // 138: bytebase.v1.DatabaseService.AdviseIndex:output_type -> bytebase.v1.AdviseIndexResponse
- 79, // 139: bytebase.v1.DatabaseService.ListChangeHistories:output_type -> bytebase.v1.ListChangeHistoriesResponse
- 70, // 140: bytebase.v1.DatabaseService.GetChangeHistory:output_type -> bytebase.v1.ChangeHistory
- 82, // 141: bytebase.v1.DatabaseService.ListRevisions:output_type -> bytebase.v1.ListRevisionsResponse
- 86, // 142: bytebase.v1.DatabaseService.GetRevision:output_type -> bytebase.v1.Revision
- 86, // 143: bytebase.v1.DatabaseService.CreateRevision:output_type -> bytebase.v1.Revision
- 100, // 144: bytebase.v1.DatabaseService.DeleteRevision:output_type -> google.protobuf.Empty
- 88, // 145: bytebase.v1.DatabaseService.ListChangelogs:output_type -> bytebase.v1.ListChangelogsResponse
- 90, // 146: bytebase.v1.DatabaseService.GetChangelog:output_type -> bytebase.v1.Changelog
- 125, // [125:147] is the sub-list for method output_type
- 103, // [103:125] is the sub-list for method input_type
- 103, // [103:103] is the sub-list for extension type_name
- 103, // [103:103] is the sub-list for extension extendee
- 0, // [0:103] is the sub-list for field type_name
+ 72, // 102: bytebase.v1.Changelog.changed_resources:type_name -> bytebase.v1.ChangedResources
+ 12, // 103: bytebase.v1.Changelog.type:type_name -> bytebase.v1.Changelog.Type
+ 13, // 104: bytebase.v1.DatabaseService.GetDatabase:input_type -> bytebase.v1.GetDatabaseRequest
+ 14, // 105: bytebase.v1.DatabaseService.ListInstanceDatabases:input_type -> bytebase.v1.ListInstanceDatabasesRequest
+ 16, // 106: bytebase.v1.DatabaseService.ListDatabases:input_type -> bytebase.v1.ListDatabasesRequest
+ 18, // 107: bytebase.v1.DatabaseService.UpdateDatabase:input_type -> bytebase.v1.UpdateDatabaseRequest
+ 19, // 108: bytebase.v1.DatabaseService.BatchUpdateDatabases:input_type -> bytebase.v1.BatchUpdateDatabasesRequest
+ 21, // 109: bytebase.v1.DatabaseService.SyncDatabase:input_type -> bytebase.v1.SyncDatabaseRequest
+ 23, // 110: bytebase.v1.DatabaseService.GetDatabaseMetadata:input_type -> bytebase.v1.GetDatabaseMetadataRequest
+ 24, // 111: bytebase.v1.DatabaseService.GetDatabaseSchema:input_type -> bytebase.v1.GetDatabaseSchemaRequest
+ 25, // 112: bytebase.v1.DatabaseService.DiffSchema:input_type -> bytebase.v1.DiffSchemaRequest
+ 59, // 113: bytebase.v1.DatabaseService.ListSlowQueries:input_type -> bytebase.v1.ListSlowQueriesRequest
+ 64, // 114: bytebase.v1.DatabaseService.ListSecrets:input_type -> bytebase.v1.ListSecretsRequest
+ 66, // 115: bytebase.v1.DatabaseService.UpdateSecret:input_type -> bytebase.v1.UpdateSecretRequest
+ 67, // 116: bytebase.v1.DatabaseService.DeleteSecret:input_type -> bytebase.v1.DeleteSecretRequest
+ 69, // 117: bytebase.v1.DatabaseService.AdviseIndex:input_type -> bytebase.v1.AdviseIndexRequest
+ 79, // 118: bytebase.v1.DatabaseService.ListChangeHistories:input_type -> bytebase.v1.ListChangeHistoriesRequest
+ 81, // 119: bytebase.v1.DatabaseService.GetChangeHistory:input_type -> bytebase.v1.GetChangeHistoryRequest
+ 82, // 120: bytebase.v1.DatabaseService.ListRevisions:input_type -> bytebase.v1.ListRevisionsRequest
+ 85, // 121: bytebase.v1.DatabaseService.GetRevision:input_type -> bytebase.v1.GetRevisionRequest
+ 84, // 122: bytebase.v1.DatabaseService.CreateRevision:input_type -> bytebase.v1.CreateRevisionRequest
+ 86, // 123: bytebase.v1.DatabaseService.DeleteRevision:input_type -> bytebase.v1.DeleteRevisionRequest
+ 88, // 124: bytebase.v1.DatabaseService.ListChangelogs:input_type -> bytebase.v1.ListChangelogsRequest
+ 90, // 125: bytebase.v1.DatabaseService.GetChangelog:input_type -> bytebase.v1.GetChangelogRequest
+ 27, // 126: bytebase.v1.DatabaseService.GetDatabase:output_type -> bytebase.v1.Database
+ 15, // 127: bytebase.v1.DatabaseService.ListInstanceDatabases:output_type -> bytebase.v1.ListInstanceDatabasesResponse
+ 17, // 128: bytebase.v1.DatabaseService.ListDatabases:output_type -> bytebase.v1.ListDatabasesResponse
+ 27, // 129: bytebase.v1.DatabaseService.UpdateDatabase:output_type -> bytebase.v1.Database
+ 20, // 130: bytebase.v1.DatabaseService.BatchUpdateDatabases:output_type -> bytebase.v1.BatchUpdateDatabasesResponse
+ 22, // 131: bytebase.v1.DatabaseService.SyncDatabase:output_type -> bytebase.v1.SyncDatabaseResponse
+ 28, // 132: bytebase.v1.DatabaseService.GetDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata
+ 58, // 133: bytebase.v1.DatabaseService.GetDatabaseSchema:output_type -> bytebase.v1.DatabaseSchema
+ 26, // 134: bytebase.v1.DatabaseService.DiffSchema:output_type -> bytebase.v1.DiffSchemaResponse
+ 60, // 135: bytebase.v1.DatabaseService.ListSlowQueries:output_type -> bytebase.v1.ListSlowQueriesResponse
+ 65, // 136: bytebase.v1.DatabaseService.ListSecrets:output_type -> bytebase.v1.ListSecretsResponse
+ 68, // 137: bytebase.v1.DatabaseService.UpdateSecret:output_type -> bytebase.v1.Secret
+ 101, // 138: bytebase.v1.DatabaseService.DeleteSecret:output_type -> google.protobuf.Empty
+ 70, // 139: bytebase.v1.DatabaseService.AdviseIndex:output_type -> bytebase.v1.AdviseIndexResponse
+ 80, // 140: bytebase.v1.DatabaseService.ListChangeHistories:output_type -> bytebase.v1.ListChangeHistoriesResponse
+ 71, // 141: bytebase.v1.DatabaseService.GetChangeHistory:output_type -> bytebase.v1.ChangeHistory
+ 83, // 142: bytebase.v1.DatabaseService.ListRevisions:output_type -> bytebase.v1.ListRevisionsResponse
+ 87, // 143: bytebase.v1.DatabaseService.GetRevision:output_type -> bytebase.v1.Revision
+ 87, // 144: bytebase.v1.DatabaseService.CreateRevision:output_type -> bytebase.v1.Revision
+ 101, // 145: bytebase.v1.DatabaseService.DeleteRevision:output_type -> google.protobuf.Empty
+ 89, // 146: bytebase.v1.DatabaseService.ListChangelogs:output_type -> bytebase.v1.ListChangelogsResponse
+ 91, // 147: bytebase.v1.DatabaseService.GetChangelog:output_type -> bytebase.v1.Changelog
+ 126, // [126:148] is the sub-list for method output_type
+ 104, // [104:126] is the sub-list for method input_type
+ 104, // [104:104] is the sub-list for extension type_name
+ 104, // [104:104] is the sub-list for extension extendee
+ 0, // [0:104] is the sub-list for field type_name
}
func init() { file_v1_database_service_proto_init() }
@@ -8996,7 +9074,7 @@ func file_v1_database_service_proto_init() {
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_v1_database_service_proto_rawDesc,
- NumEnums: 12,
+ NumEnums: 13,
NumMessages: 81,
NumExtensions: 0,
NumServices: 1,
diff --git a/proto/v1/database_service.proto b/proto/v1/database_service.proto
index 212587f356..688f9a2cb3 100644
--- a/proto/v1/database_service.proto
+++ b/proto/v1/database_service.proto
@@ -1840,4 +1840,14 @@ message Changelog {
string revision = 15;
ChangedResources changed_resources = 16;
+
+ enum Type {
+ TYPE_UNSPECIFIED = 0;
+ BASELINE = 1;
+ MIGRATE = 2;
+ MIGRATE_SDL = 3;
+ MIGRATE_GHOST = 4;
+ DATA = 6;
+ }
+ Type type = 17;
}