yape-postgres-ext-vsc

PostgreSQL Explorer for VS Code - Status

Version Downloads Rating

A powerful PostgreSQL database explorer with interactive SQL notebooks, table visualization, and data export capabilities.

✨ Implemented Features

🔌 Database Connection

📊 SQL Notebooks

🌳 Database Explorer

📋 Object Properties

💾 Data Management

🎯 Future Milestones

Connection Enhancements

Query Features

Performance Improvements

Data Management

Data Visualization

UI Enhancements

🚀 Quick Start

1. Connect to Your Database

  1. Click the PostgreSQL icon in the Activity Bar (or press Ctrl+Shift+P and search for “PostgreSQL: Add Connection”)
  2. Click the “+” button to add a new connection
  3. Enter your connection details:
    Host: localhost (or your database host)
    Port: 5432 (default PostgreSQL port)
    Username: your_username
    Password: your_password
    Database: your_database
    
  4. Save the connection

2. Explore Your Database

3. Create SQL Notebooks

  1. Right-click on any database, schema, or table
  2. Select “New PostgreSQL Notebook”
  3. Write SQL in notebook cells:
    -- Example query
    SELECT * FROM users
    WHERE created_at >= NOW() - INTERVAL '7 days'
    ORDER BY created_at DESC;
    
  4. Press Ctrl+Enter to execute a cell

4. Work with Results

💡 Pro Tips

  1. Quick Table Info
    • Click any table in the explorer to see its structure
    • Hover over columns to see data types and constraints
  2. Efficient Querying
    • Use table names from the explorer (drag & drop supported)
    • Save commonly used queries in notebooks
    • Use multiple cells for complex operations
  3. Data Export
    • Large result sets are automatically paginated
    • Exports preserve data types and formatting
    • Files are saved in your workspace root

⚙️ Extension Settings

Customize through VS Code settings (Ctrl+,):

{
  "postgresExplorer.connections": [],     // Saved connections
  "postgresExplorer.autoConnect": true,  // Auto-connect on startup
  "postgresExplorer.maxResults": 1000    // Max rows per query
}

🔧 Troubleshooting

Common Issues

  1. Connection Failed
    • Verify host and port are correct
    • Check username and password
    • Ensure database server is running
    • Check firewall settings
  2. Query Timeout
    • Reduce the data set with WHERE clauses
    • Use LIMIT to restrict results
    • Consider indexing frequently queried columns
  3. Export Issues
    • Ensure write permissions in workspace
    • Close files in other applications
    • Check available disk space

📝 License

This extension is licensed under the MIT License.

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

📫 Support


Enjoying the extension? Rate us on the marketplace