Loading repository data…
Loading repository data…
Peter-L-SVK / repository
Intelligent PostgreSQL Management Platform. Python3/GTK4 desktop IDE with SQL editor, visual schema designer, AI index advisor, built-in hooks (Auto-Vacuum, Schema Anomaly, Log Analyzer), and Python/Perl plugin system. GPLv3.
SQL Schema Studio is a native GTK4 PostgreSQL client built for Linux — not Electron, not a web app. It runs lean on any Linux desktop, extends via Python or Perl hooks, and ships a visual schema designer without a subscription fee or a JVM. Windows users can run it via WSL2 with full GUI support through WSLg.
If you live in a terminal but want a GUI when it earns it, this is for you.
Alpha software — under active development.
Connect to PostgreSQL, browse schemas and tables, write and execute queries with syntax highlighting, design schemas visually, and get AI-powered index recommendations. Extend with Python and Perl hooks for custom automation.
More detailed plans in ROADMAP
# Install build dependencies
sudo dnf install rpm-build rpmdevtools rpmlint python3-devel \
gtk4 gtksourceview5 vte291-gtk4
# Clone the repository
git clone https://github.com/Peter-L-SVK/sql-schema-studio.git
cd sql-schema-studio
# Build RPM package
./scripts/packaging/build_rpm.sh
# Install the RPM
sudo dnf install sql-schema-studio-*.rpm
# After installation, install Python dependencies
sql-schema-studio-install-deps
# Install build dependencies
sudo apt install -y python3-psycopg2 python3-gi python3-gi-cairo \
python3-sqlparse python3-keyring python3-numpy \
python3-matplotlib python3-cairo python3-paramiko \
gir1.2-gtk-4.0 gir1.2-gtksource-5 gir1.2-vte-2.91 \
python3-pipx
# Clone the repository
git clone https://github.com/Peter-L-SVK/sql-schema-studio.git
cd sql-schema-studio
# Build DEB package
./scripts/packaging/build_deb.sh
# Install the DEB package
sudo dpkg -i sql-schema-studio_*.deb
sudo apt --fix-broken install
# After installation, install Python dependencies
sql-schema-studio-install-deps
After installing the RPM or DEB package, run the dependency installer to install required Python packages:
sql-schema-studio-install-deps
This will guide you through installing the required Python dependencies (polars, scikit-learn, faker, kbcstorage, etc.) using your preferred method (pipx, pip --user, or system-wide).
sql-schema-studio
sudo apt update
sudo apt install -y python3-psycopg2 python3-gi python3-gi-cairo \
python3-sqlparse python3-keyring python3-numpy \
python3-matplotlib python3-cairo python3-paramiko \
gir1.2-gtk-4.0 gir1.2-gtksource-5 gir1.2-vte-2.91 \
pipx
# Clone the repository
git clone https://github.com/Peter-L-SVK/sql-schema-studio.git
cd sql-schema-studio
# Install Python dependencies from pyproject.toml
pipx install -e . --include-deps
# Or use pip (user-only)
pip install --user -e .
# Run the application
python3 -m src.main
sudo dnf install python3-gobject gtk4 gtksourceview5 libadwaita \
cairo python3-cairo python3-paramiko vte291-gtk4 python3-pip
git clone https://github.com/Peter-L-SVK/sql-schema-studio.git
cd sql-schema-studio
# Install Python dependencies from pyproject.toml
pip install --user -e .
# Run the application
python3 -m src.main
# Install WSL2 (run this in Windows PowerShell as admin)
wsl --install
wsl --update
# Inside WSL2 terminal (Debian / Ubuntu):
sudo apt update && sudo apt upgrade -y
# Install required system dependencies
sudo apt install -y python3-psycopg2 python3-gi python3-gi-cairo \
python3-sqlparse python3-keyring python3-numpy \
python3-matplotlib python3-cairo python3-paramiko \
gir1.2-gtk-4.0 gir1.2-gtksource-5 gir1.2-vte-2.91 \
pipx postgresql postgresql-client
# Clone the repository
git clone https://github.com/Peter-L-SVK/sql-schema-studio.git
cd sql-schema-studio
# Install Python dependencies from pyproject.toml
pipx install -e . --include-deps
# (Optional) Start local PostgreSQL
sudo service postgresql start
# Run the application
python3 -m src.main
# Note: GUI will work automatically through WSLg on Windows 11
# For Windows 10, you may need to set up an X server
For development work with all dependencies:
# Install system dependencies as above
# Clone the repository
git clone https://github.com/Peter-L-SVK/sql-schema-studio.git
cd sql-schema-studio
# Install with development extras
pip install -e ".[dev]"
# Install optional development tools
pip install black flake8 mypy pytest pytest-cov
# Run tests
python3 -m pytest tests/ -v
# Check code style
python3 -m black src/ tests/
python3 -m flake8 src/ tests/
python3 -m mypy src/
These are essential for the application to run and are available in system repositories:
python3-psycopg2 - Database connectivitypython3-gi, python3-gi-cairo, gir1.2-gtk-4.0, gir1.2-gtksource-5, gir1.2-vte-2.91 - GUI frameworkpython3-sqlparse - SQL parsing and formattingpython3-numpy - Core data structurespython3-matplotlib, python3-cairo - Charts and graphspython3-paramiko - Secure remote connectionspython3-keyring - Secure password storageThese are installed by sql-schema-studio-install-deps or during development installation:
polars - High-performance analytics enginescikit-learn - ML predictions for vacuum advisorfaker - Generate test datakbcstorage - Keboola cloud platformpsycopg[binary] - Modern PostgreSQL driver1. "Missing Python packages detected"
# Run the dependency installer
sql-schema-studio-install-deps
2. "ModuleNotFoundError: No module named 'sklearn'"
# Fix: Install scikit-learn via the dependency installer
sql-schema-studio-install-deps
3. "ModuleNotFoundError: No module named 'faker'"
# Fix: Install via the dependency installer
sql-schema-studio-install-deps
4. "ModuleNotFoundError: No module named 'polars'"
# Fix: Install via the dependency installer
sql-schema-studio-install-deps
5. GTK4 or GtkSourceView not found
# Debian/Ubuntu
sudo apt install gir1.2-gtk-4.0 gir1.2-gtksource-5 gir1.2-vte-2.91
# Fedora
sudo dnf install gtk4 gtksourceview5 vte291-gtk4
6. WSL2 GUI not working
# Ensure WSLg is enabled (Windows 11)
wsl --update