Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

1.3 KB
Raw Blame
export type MigrationState = "pending" | "running" | "succeeded" | "failed" | "not_required";
export type MigrationKeyStatus = "ready" | "will_create" | "unavailable" | "invalid" | "mismatch" | "missing_for_ciphertext";
export interface MigrationPreflight {
  migrationId: string;
  state: MigrationState;
  needsMigration: boolean;
  keyRecoveryRequired: boolean;
  keyProviderAvailable: boolean;
  keyStatus?: MigrationKeyStatus;
  keyCreationAllowed?: boolean;
  databasePlaintextCount: number;
  connectionCount: number;
  pluginSecretCount: number;
  aiSecretCount: number;
  tunnelSecretCount: number;
  syncCredentialCount: number;
  legacyJsonFiles: { name: string; exists: boolean; bytes: number }[];
  backupRequired: boolean;
  backupPath?: string | null;
  errorMessage?: string | null;
  errorCode?: string | null;
  dataDir?: string;
  backupDir?: string;
  keyFileConfigured?: boolean;
  keyFileReadable?: boolean;
  persistentKeyConfigured?: boolean;
  keySource?: "explicit_file" | "explicit_env" | "managed_data_dir" | "platform_store" | "unavailable" | string;
}
export interface MigrationReport {
  migrationId: string;
  state: MigrationState;
  backupPath?: string | null;
  databasePlaintextCount: number;
  legacyJsonFiles: string[];
  verifiedSecretCount: number;
  errorCode?: string | null;
  errorMessage?: string | null;
}