A native macOS / windows / Linux database IDE built with Swift and AppKit. Connect to PostgreSQL, MySQL, SQLite, and Redis from a single app with a fast, keyboard-driven interface.
C++
// SchemaInspectable.swift
// Gridex
//
// Protocol for inspecting database schema in detail.
// Used by AI Context Engine to build schema snapshots.
import Foundation
protocol SchemaInspectable: Sendable {
func fullSchemaSnapshot(database: String?) async throws -> SchemaSnapshot
func columnStatistics(table: String, schema: String?, sampleSize: Int) async throws -> [ColumnStatistics]
func tableRowCount(table: String, schema: String?) async throws -> Int
func tableSizeBytes(table: String, schema: String?) async throws -> Int64?
func queryStatistics() async throws -> [QueryStatisticsEntry]
func primaryKeyColumns(table: String, schema: String?) async throws -> [String]
}