Skip to content

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++
447 B
Raw Blame
// ExportDataUseCase.swift
// Gridex

import Foundation

protocol ExportDataUseCase: Sendable {
    func exportCSV(data: QueryResult, to url: URL) async throws
    func exportJSON(data: QueryResult, to url: URL) async throws
    func exportSQL(data: QueryResult, table: String, to url: URL) async throws
    func exportExcel(data: QueryResult, to url: URL) async throws
    func exportSchemaDDL(schema: SchemaSnapshot, to url: URL) async throws
}