sabiql 1.8.0

A fast, driver-less TUI for browsing and editing PostgreSQL databases
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::error::Error;
use std::path::{Path, PathBuf};

use crate::domain::ErTableInfo;

pub type ErExportResult<T> = Result<T, Box<dyn Error + Send + Sync>>;

pub trait ErDiagramExporter: Send + Sync {
    fn generate_and_export(
        &self,
        tables: &[ErTableInfo],
        filename: &str,
        cache_dir: &Path,
    ) -> ErExportResult<PathBuf>;
}