Databases & SQL

From the catalog to a query

Connections, SQL worksheets, results, data edits and reviewed import/export.

In this guideBefore you start · PremiumOpen a connection and a SQL worksheetRead results without losing your sourceControlled edits and transfersRead an estimated plan without running the querySave and reopen a useful query

Before you start · Premium#

This guide covers tools included in Code Weaver Premium. Sign in to your account in the IDE and check that Premium is active. Without Premium you can still browse, search, edit and save your files.

Database: schema, SQL worksheet and results in one workspace.Code Weaver · Windows

Open a connection and a SQL worksheet#

SQLite, PostgreSQL, MySQL/MariaDB, SQL Server and Oracle are supported. SQLite uses an existing project file. Remote engines need a reachable server and suitable credentials; the IDE does not install them for you.

  1. Select Database in the side menu and choose the connection; the command is also available with Ctrl+Shift+P.
  2. Browse schemas, tables, views and columns in the database explorer panel.
  3. Open a .sql file or playground and check the selected connection.
  4. Run a selection or the statement at the cursor with Ctrl+Enter; Ctrl+Shift+Enter runs the whole worksheet.

Read results without losing your source#

SQL worksheets stay in the editor and results can occupy the bottom panel. The data browser supports server-side pages, filters and sorting where the engine allows. Real database relationships let you follow foreign keys, including composite keys.

Ctrl+Space suggests tables, schemas and columns, including after an alias. Refresh the schema after DDL changes. Credentials stay in memory unless you explicitly choose Windows credential storage.

Controlled edits and transfers#

For tables with a primary key, grid edits go through an SQL preview and confirmation. Original values are checked again and the change group runs in a transaction. CSV/JSON/XLSX import shows mapping and a preview; full CSV/JSON export is separate from exporting only loaded rows.

Read an estimated plan without running the query#

Analyze plan requires a single read-only SELECT or WITH query, up to 50,000 characters, recognized by the engine parser. This is not execution analysis: estimated costs and rows do not measure the query’s actual runtime.

  1. Open the connection and prepare a complete test SELECT without secrets or unresolved parameters. Plan analysis does not open the parameter dialog used by Run.
  2. Select the query or place the cursor in the statement and choose Analyze plan.
  3. Open Query plan and read operations, any indexes, estimated rows and warnings. Received plan details shows the content returned by the engine.
  4. If syntax is not recognized, correct the query for the chosen engine and retry. To compare real performance, use a controlled execution with the same data and criteria.

Save and reopen a useful query#

  1. In the SQL worksheet, check the connection and complete text to retain, then choose Save favorite.
  2. Enter Favorite query name and confirm Save favorite. Do not include passwords or confidential data in SQL literals.
  3. Open History and favorites, find the name and choose Open in worksheet. Check the connection before running it again.
Open original image ↗