A workspace is not a business database. Creating one does not create, modify, or delete objects in the target database.
Goal
Build the database context PawSQL needs for SQL review and optimization using DDL or a live database connection.Prerequisites
To create a workspace you need either the DDL definitions or a database connection that provides the engine, version, schema, and object metadata used for analysis.How a workspace participates in analysis
The same SQL can parse and optimize differently under a different engine, version, schema, or index set. Confirm that the selected workspace matches the environment where the SQL actually runs.Two ways to create a workspace
By scenario:
For a quick one-off analysis, a DDL workspace is usually enough; for ongoing review, batch governance, or performance validation, prefer a database connection. Steps are in Create from DDL and Create from a database.
Configuration guidance
Use names that distinguish the system, database, and environment:database-1 or test.
Expected Result
A workspace configured with the correct engine, version, schema, and imported metadata that PawSQL uses for review, rewrite, index, and plan analysis.Verification
Confirm the workspace matches the target environment by checking that the engine, version, schema, and imported metadata reflect where the SQL actually runs; creation steps are in the create-from-ddl and create-from-database guides.Operating principles
- Refresh metadata after structural changes.
- Review task and user dependencies before retiring a workspace.
- Validate any proposed database change in the real target conditions.