Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 10, 2025

Plan: Improve SQL Editor Options

Backend Changes (Rust)

  • Add SQLite and SQLServer variants to DatabaseType enum in models.rs
  • Update ConnectionConfig::connection_string() to support SQL Server and SQLite
  • Create new modules: src-tauri/src/database/sqlite.rs and src-tauri/src/database/sqlserver.rs
  • Implement core functions for SQLite: connect, test, get_tables, get_table_structure, execute_query
  • Implement core functions for SQL Server: connect, test, get_tables, get_table_structure, execute_query
  • Add SQLx features for sqlite and mssql to Cargo.toml
  • Update database/mod.rs to handle SQLite and SQL Server connections
  • Implement list_databases for SQLite and SQL Server
  • Add switch_database command to support SELECT DATABASE functionality

Frontend Changes (TypeScript/React)

  • Update DatabaseType type in frontend TypeScript files
  • Add SQLite and SQL Server options to ConnectionForm.tsx
  • Update DatabaseIcon component to support SQLite and SQL Server
  • Add database switcher UI component in the query editor area
  • Implement frontend logic to call switch_database command
  • Update Monaco Editor to enhance SQL autocomplete for all database types

Testing

  • Test SQLite connection and queries
  • Test SQL Server connection and queries
  • Test database switching functionality
  • Ensure existing PostgreSQL and MySQL functionality works correctly
Original prompt

mejora las opciones denla parte del editor sql para que admita select database, y agrega soporte para sql server y sqlite


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@HaroldXd HaroldXd marked this pull request as ready for review December 10, 2025 14:46
@HaroldXd HaroldXd requested a review from Copilot December 10, 2025 14:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@HaroldXd HaroldXd requested a review from Copilot December 10, 2025 14:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants