Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Maintenance tools via table context menu (VACUUM, ANALYZE, OPTIMIZE, REINDEX, CHECK TABLE, etc.)
- EXPLAIN plan visualization with diagram, tree, and raw views (PostgreSQL, MySQL)

### Fixed

Expand Down
3 changes: 3 additions & 0 deletions Plugins/MySQLDriverPlugin/MySQLPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ final class MySQLPlugin: NSObject, TableProPlugin, DriverPlugin {
// MARK: - UI/Capability Metadata

static let urlSchemes: [String] = ["mysql"]
static let explainVariants: [ExplainVariant] = [
ExplainVariant(id: "explain", label: "EXPLAIN", sqlPrefix: "EXPLAIN FORMAT=JSON"),
]
static let brandColorHex = "#FF9500"
static let systemDatabaseNames: [String] = ["information_schema", "mysql", "performance_schema", "sys"]
static let columnTypesByCategory: [String: [String]] = [
Expand Down
4 changes: 4 additions & 0 deletions Plugins/PostgreSQLDriverPlugin/PostgreSQLPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ final class PostgreSQLPlugin: NSObject, TableProPlugin, DriverPlugin {
static let brandColorHex = "#336791"
static let systemDatabaseNames: [String] = ["postgres", "template0", "template1"]
static let supportsSchemaSwitching = true
static let explainVariants: [ExplainVariant] = [
ExplainVariant(id: "explain", label: "EXPLAIN", sqlPrefix: "EXPLAIN (FORMAT JSON)"),
ExplainVariant(id: "analyze", label: "EXPLAIN ANALYZE", sqlPrefix: "EXPLAIN (ANALYZE, FORMAT JSON)"),
]
static let databaseGroupingStrategy: GroupingStrategy = .bySchema
static let columnTypesByCategory: [String: [String]] = [
"Integer": ["SMALLINT", "INTEGER", "BIGINT", "SERIAL", "BIGSERIAL", "SMALLSERIAL"],
Expand Down
4 changes: 4 additions & 0 deletions Plugins/SQLiteDriverPlugin/SQLitePlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ final class SQLitePlugin: NSObject, TableProPlugin, DriverPlugin {
static let pluginDescription = "SQLite file-based database support"
static let capabilities: [PluginCapability] = [.databaseDriver]

static let explainVariants: [ExplainVariant] = [
ExplainVariant(id: "explain", label: "Explain", sqlPrefix: "EXPLAIN QUERY PLAN")
]

static let databaseTypeId = "SQLite"
static let databaseDisplayName = "SQLite"
static let iconName = "sqlite-icon"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,11 @@ extension PluginMetadataRegistry {
displayName: "DuckDB", iconName: "duckdb-icon", defaultPort: 0,
requiresAuthentication: false, supportsForeignKeys: true, supportsSchemaEditing: true,
isDownloadable: true, primaryUrlScheme: "duckdb", parameterStyle: .dollar,
navigationModel: .standard, explainVariants: [], pathFieldRole: .filePath,
navigationModel: .standard,
explainVariants: [
ExplainVariant(id: "explain", label: "EXPLAIN", sqlPrefix: "EXPLAIN"),
],
pathFieldRole: .filePath,
supportsHealthMonitor: false, urlSchemes: ["duckdb"], postConnectActions: [],
brandColorHex: "#FFD900",
queryLanguageName: "SQL", editorLanguage: .sql,
Expand Down
Loading
Loading