Skip to content

A modern SQLite database manager with interactive UI, built with uv and Python. Features table creation, metadata management, and comprehensive database operations.

License

Notifications You must be signed in to change notification settings

0xnuminous/everything-db-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Everything DB Manager

Python uv SQLite License AI IDE

A modern, fast SQLite database manager with an interactive terminal UI. Built with uv for lightning-fast dependency management and featuring comprehensive table creation, metadata storage, and database operations.

๐Ÿค– AI-Powered Development: This project was created collaboratively with Claude Sonnet 3.5 using Zed's innovative agentic mode, showcasing the future of AI-assisted software development.

โœจ Features

  • ๐Ÿš€ Lightning Fast: Built with uv package manager (10-100x faster than pip)
  • ๐Ÿ“Š Interactive Database Management: Terminal-based UI with guided workflows
  • ๐Ÿ› ๏ธ Smart Table Creation: Both interactive guided mode and manual SQL definition
  • ๐Ÿท๏ธ Metadata Management: Store database descriptions, purpose, owner, and tags internally
  • ๐Ÿ” Schema Inspection: Beautiful formatted table schemas and column information
  • Enhanced Data Entry: Real-time feedback, validation, and error handling
  • UI Explorer: Intuitive interface for users unfamiliar with database concepts
  • Multi-Database Support: Manage multiple databases with organized storage
  • Modern Python Tooling: Uses uv, Python 3.12+, and modern best practices

๐ŸŽฏ Quick Start

Prerequisites

Install uv - the fast Python package manager:

# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Installation

# Clone the repository
git clone https://github.com/0xnuminous/everything-db-manager.git
cd everything-db-manager

# Set up the environment (creates .venv automatically)
uv sync

# Verify installation
uv run verify_setup.py

Launch the Application

# Start the interactive database manager
uv run everything_ui.py

# Or use the dedicated run script
uv run run.py

๐ŸŽฎ Demo & Examples

# Run the basic usage demo
uv run example_usage.py

# See table creation examples
uv run table_creation_demo.py

# View UI improvements showcase
uv run ui_improvements_demo.py

๐Ÿ“‹ Menu Options

  1. Open/Create Database - Create new or open existing database with metadata
  2. List All Databases - View all databases with descriptions and info
  3. List Tables - Show tables in current database
  4. Create Table - Interactive or manual table creation with validation
  5. Execute Query - Run custom SQL commands
  6. Show Table Schema - Display formatted table structure
  7. Insert Data - Add data with guided input and validation
  8. View Table Data - Browse table contents with pagination
  9. Show Database Info - View database metadata and statistics
  10. UI Explorer - Beginner-friendly interface for non-technical users
  11. Close Database - Close current database connection
  12. Exit - Quit the application

๐Ÿ› ๏ธ Table Creation Features

Interactive Mode

  • Guided Process: Step-by-step column definition
  • Flexible Data Types: Accepts common abbreviations (int, string, float, etc.)
  • Smart Constraints: PRIMARY KEY, NOT NULL, UNIQUE, DEFAULT values
  • Auto Increment: Available for INTEGER primary keys
  • Real-time Preview: Shows table definition as you build

Manual Mode

  • SQL Definition: Direct column definition entry
  • Advanced Features: CHECK constraints, foreign keys, complex types
  • Syntax Validation: Prevents common errors before creation

๐ŸŽฎ UI Explorer - Beginner-Friendly Interface

The UI Explorer provides an intuitive interface for users who aren't familiar with database terminology:

Features

  • Plain Language: Uses terms like "storage space" instead of "table"
  • Guided Workflows: Step-by-step processes for common tasks
  • Visual Data Display: Clean, formatted views of your information
  • Smart Search: Find data without writing SQL queries
  • Data Summaries: Overview of all stored information

Explorer Options

  1. ๐Ÿ“Š Browse My Data - See what information is stored
  2. โž• Add New Information - Create new storage spaces with guided setup
  3. โœ๏ธ Update Existing Information - Modify stored data
  4. ๐Ÿ” Search & Filter Data - Find specific items easily
  5. ๐Ÿ“ˆ Get Data Summary - Overview of all your data
  6. โ“ Help - Explanations of concepts and features

Example Workflow

Creating a "customers" storage space:
1. Choose a name: "customers"
2. Add fields step-by-step:
   - Name (Text/Words - Required)
   - Email (Text/Words - Required) 
   - Age (Numbers - Optional)
   - Active (Yes/No - Optional)
3. Automatically creates proper database structure

Example Interactive Session

Table name: users
Column 1: id (INTEGER, Primary Key, Auto Increment)
Column 2: username (TEXT, Not Null, Unique)
Column 3: email (TEXT, Not Null, Unique)
Column 4: created_at (TEXT, Default: CURRENT_TIMESTAMP)

๐Ÿ’พ Database Management

Metadata Storage

Each database automatically stores:

  • ๐Ÿ“… Creation and modification dates
  • ๐Ÿ“ Description and purpose
  • ๐Ÿ‘ค Owner/creator information
  • ๐Ÿท๏ธ Tags for organization

Data Organization

data/
โ”œโ”€โ”€ .gitkeep              # Maintains directory structure
โ”œโ”€โ”€ my_project.db         # Your database files
โ””โ”€โ”€ inventory_system.db   # With embedded metadata

๐Ÿšฆ Requirements

  • Python: 3.12+ (managed by uv)
  • Package Manager: uv
  • Database: SQLite 3 (included with Python)
  • OS: Windows, macOS, Linux

๐Ÿ“š Documentation

๐Ÿ”ง Development

Common Commands

# Setup development environment
uv sync

# Run application
uv run everything_ui.py

# Add new dependencies
uv add package-name

# Add development dependencies
uv add --dev pytest

# Run verification tests
uv run verify_setup.py

Project Structure

everything-db-manager/
โ”œโ”€โ”€ data/                    # Database storage
โ”œโ”€โ”€ everything_db.py         # Core database operations
โ”œโ”€โ”€ everything_ui.py         # Terminal interface
โ”œโ”€โ”€ run.py                   # Application entry point
โ”œโ”€โ”€ pyproject.toml          # Project configuration
โ”œโ”€โ”€ uv.lock                 # Dependency lock file
โ””โ”€โ”€ docs/                   # Documentation files

๐Ÿค– AI-Powered Development Methodology

This project demonstrates the cutting-edge capabilities of AI-assisted software development using:

Development Process

  • Collaborative Design: Human creativity combined with AI technical expertise
  • Iterative Enhancement: Real-time feedback and improvement cycles
  • Modern Tooling Integration: Seamless adoption of uv, Python 3.12+, and best practices
  • Documentation-First: Comprehensive guides generated alongside code development
  • Quality Assurance: Built-in validation, testing, and verification systems

AI Capabilities Showcased

  • Full-Stack Development: From database design to user interface implementation
  • Code Architecture: Professional project structure and modular design patterns
  • User Experience Design: Intuitive workflows and error handling improvements
  • Technical Writing: Complete documentation suite including guides and examples
  • DevOps Integration: Modern packaging, dependency management, and deployment

Zed Agentic Mode Features

  • Real-time Collaboration: Seamless human-AI code editing and review
  • Context Awareness: Understanding of entire project scope and dependencies
  • Tool Integration: Direct access to development tools and environments
  • Quality Control: Automated testing and verification during development

This project serves as a proof-of-concept for the future of software development, where AI assistants can collaborate as full development partners while maintaining human creativity and oversight.

๐ŸŽจ User Interface Highlights

Before & After Improvements

Schema Display - Before:

(0, 'id', 'INTEGER', 0, None, 1)
(1, 'name', 'TEXT', 1, None, 0)

Schema Display - After:

Column               Type            Nullable   Key        Default
------------------------------------------------------------
id                   INTEGER         YES        PRIMARY
name                 TEXT            NO

Enhanced Features

  • โœ… Flexible Data Types: int โ†’ INTEGER, string โ†’ TEXT
  • โœ… Beautiful Formatting: Clean, readable table displays
  • โœ… Smart Validation: Table existence checks with suggestions
  • โœ… Real-time Feedback: Immediate confirmation of actions
  • โœ… Error Recovery: Helpful messages with next steps

๐Ÿš€ Performance

Built with uv for exceptional performance:

  • 10-100x faster dependency resolution vs pip
  • Instant environment creation and management
  • Parallel package installation by default
  • Efficient caching for repeated operations

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Setup development environment: uv sync
  4. Make your changes and test: uv run verify_setup.py
  5. Commit your changes: git commit -m 'Add amazing feature'
  6. Push to the branch: git push origin feature/amazing-feature
  7. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

AI-Powered Development

  • Claude Sonnet 3.5 - AI assistant that collaboratively designed and built this entire project
  • Zed Editor - Revolutionary agentic mode enabling seamless AI-human collaboration
  • Modern AI Development - Showcasing the future of software creation through AI partnership

Technologies & Tools

  • uv - Amazing Python package manager by Astral
  • SQLite - Reliable, lightweight database engine
  • Python Community - For excellent tooling and libraries

Made with โค๏ธ and powered by uv

About

A modern SQLite database manager with interactive UI, built with uv and Python. Features table creation, metadata management, and comprehensive database operations.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages