
Product
Socket Now Protects the Firefox Extension Ecosystem
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.
sql-preview
Advanced tools
A Visual Studio Code extension for connecting to Trino databases, running SQL queries, and visualizing results directly within your editor.
.sql files..sql file.Cmd+Shift+P) and run SQL Preview: Run Query.Cmd+Enter (Mac) or Ctrl+Enter (Windows/Linux) to run the query.Results appear in the SQL Preview panel.
This extension uses a robust Client-Server model:
This separation ensures that long-running queries do not block the VS Code UI and provides a stable environment for database interactions.
Add the following configuration to your settings.json:
{
"sqlPreview.defaultConnector": "trino",
"sqlPreview.host": "trino-coordinator.example.com",
"sqlPreview.port": 443,
"sqlPreview.user": "your-username",
"sqlPreview.catalog": "hive",
"sqlPreview.schema": "default",
"sqlPreview.ssl": true,
"sqlPreview.sslVerify": true,
"sqlPreview.maxRowsToDisplay": 1000,
"sqlPreview.logLevel": "INFO" // Options: DEBUG, INFO, WARN, ERROR
}
For security, passwords are never stored in plain text.
SQL Preview: Set Database Password or click "Set Password" in the Settings UI.SQL Preview: Clear Stored Password.This extension includes a built-in MCP server that allows AI assistants (like Claude) to interact with your database.
sqlPreview.mcpEnabled to true.sqlPreview.mcpSafeMode to true (default) to restrict AI to read-only queries.SQL Preview: Restart Background Server.When enabled, the following tools are available to MCP clients:
run_query: Execute a SQL query.list_tables: List tables in a schema.describe_table: Show table schema.get_ddl: Get the CREATE TABLE statement.sql-preview/
├── src/
│ ├── extension.ts # Main extension entry point (Client)
│ ├── server/ # Daemon process (Server)
│ │ ├── Daemon.ts # Server entry point
│ │ └── DaemonMcpServer.ts # MCP implementation
│ ├── connectors/ # Database connectors (Trino)
│ └── ui/ # Webview logic
└── webviews/ # Frontend assets (React/HTML/CSS)
git clone ...npm installnpm run buildF5 to start the Extension Host.FAQs
Standalone SQL Preview MCP database server for VS Code, Claude Desktop, Cursor, and other MCP clients.
The npm package sql-preview receives a total of 329 weekly downloads. As such, sql-preview popularity was classified as not popular.
We found that sql-preview demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.

Research
/Security News
Socket uncovered 77 linked Firefox extensions, including 40 that steal wallet secrets or credentials and 37 deceptive sports-score shells.