Skip to main content

Open or create a workspace

A workspace is a project folder that DataStar knows about. It holds your SQL scripts, the templates that generate them, and a .ds/ subfolder with workspace-local settings. One DataStar installation can have many workspaces.

Create a new workspace

Workspace creation is driven from the Workspace Selection screen that appears when DataStar starts (and any time no workspace is open). There is no separate New Workspace dialog; creation is a single picker.

  1. From the Workspace Selection screen, click Create New Workspace.
  2. Pick a folder on disk. If the folder isn't empty, DataStar only adds its own .ds/ subfolder next to whatever's already there. If the folder doesn't exist yet, DataStar creates it.
  3. DataStar uses the folder name as the initial workspace name. You can change this later from Workspace → Settings → General.
Already have a workspace in source control?

Use Clone, also on the Workspace Selection screen, to pull an existing workspace directly from Git or TFVC instead of creating a new one. See Open an existing workspace below.

Open an existing workspace

If someone else already created the workspace and it's in your source control, you have two options.

Option A: Let DataStar clone it for you. On the Workspace Selection screen, click Clone and point it at the Git or TFVC repository. DataStar pulls it to your chosen folder and opens it as a workspace in one step.

Option B: Clone manually, then open. If the repo is already on disk (for example, you cloned it from the command line):

  1. From the Workspace Selection screen, click Open Workspace, or from an open workspace use Workspace → Open Workspace.
  2. Point at the folder that contains .ds/.

DataStar reads the workspace configuration and opens it with whatever templates and settings the team checked in.

What's stored where

LocationWhat lives there
<workspace>/.ds/workspace.jsonWorkspace configuration: name, paths, formatting rules, template locations. Commit this.
<workspace>/templates/Your XML templates. Commit these.
<workspace>/components/ (or configured path)Generated SQL scripts. Commit these.
%APPDATA%\DataStarV3\<workspace-hash>\Per-user cache and drafts. Don't commit; local only.

The .ds/workspace.json and templates/ and components/ folders are all version-controlled so every team member sees the same structure.

Workspace settings

Open Workspace → Settings to adjust settings that apply to this workspace. The dialog has five tabs:

  • General: workspace name, task-ID requirements, line-ending rules, reversal mode, branch association and branch-name regex, and the names of the deployment history tables (audit, reversal, summary).
  • Paths & Filters: where components and reversal scripts live on disk, which template directories are active, and path filters that weight or cloak parts of the tree.
  • Formatting: file-name case rules, single-space enforcement, and search/replace rules applied to component names during extraction.
  • Release: where deployment files are stored (task attachment or workspace folder), folder pattern, Git tag label format, and Azure Pipelines trigger configuration.
  • Metadata Tables: dictionary and catalog tables that DataStar exposes to the MCP server for AI clients. Workspace-scoped and team-shared.

Database connections themselves are stored per Windows user, not per workspace and not shared across a team. They live in %APPDATA%\DataStarV3\databases.json and are visible to every workspace you open under the same Windows login. Add or edit them under Workspace → Connections → Database. The workspace only stores a preference for which of your saved connections to auto-connect on open.

Each tab is covered in more detail under Settings in the sidebar.

What next