Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>OpenEdge ABL - Database ManagerNew to Visual Studio Code? Get it now.
OpenEdge ABL - Database Manager

OpenEdge ABL - Database Manager

Samuel Etterlen

|
2 installs
| (0) | Free
Browse, query and edit Progress OpenEdge databases from VS Code — works locally, in Dev Containers and remotely. Uses the OpenEdge ABL extension project configuration.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

OpenEdge ABL - Database Manager

Browse, query and edit Progress OpenEdge databases from VS Code. This is a VS Code port of DataDigger, written from scratch.

It runs on the workspace side, so it works the same locally, in Dev Containers, over Remote-SSH, in WSL and in Codespaces.

See CHANGELOG.md for the changes of each version and docs/MIGRATING.md if you come from DataDigger.

Requirements

  • An OpenEdge installation (12.2+) wherever the workspace runs (locally or in the container), with a licence that can run _progres in batch mode.
  • The OpenEdge project configuration of the OpenEdge ABL extension:
    • abl.configuration.runtimes / abl.configuration.defaultRuntime in your settings,
    • an openedge-project.json at the project root, with dbConnections.

OpenEdge ABL - Database Manager has no connection manager of its own. It uses the database connections, profiles, propath and runtimes already defined for the ABL extension.

Restricted Mode (workspace trust)

ABL Database Manager starts OpenEdge sessions that run code chosen by the workspace: the startup procedures and propath of openedge-project.json, the hooks procedure (ablDbManager.hooks.procedure) and extra startup parameters. In an untrusted workspace (Restricted Mode), the tree shows the databases but starts no OpenEdge session, tool or PROMON. Click Restricted Mode: trust the workspace to manage trust; the tree comes alive as soon as the workspace is trusted. VS Code also ignores the workspace values of the settings that name programs, folders or connections (for example ablDbManager.hooks.procedure, ablDbManager.backend.extraParameters, ablDbManager.connections) until then.

Restricted Mode

Virtual workspaces (e.g. a GitHub repository opened without a clone) are not supported: OpenEdge needs the files on a file system.

Windows, Linux and dev containers

The extension runs where the workspace is (extensionKind: workspace) and starts the OpenEdge of that side: locally on Windows or Linux, inside a dev container, on WSL or on an SSH remote. On Linux:

  • the backend runs $DLC/bin/_progres. Set abl.configuration.runtimes to the Linux installation (e.g. /usr/dlc), or set DLC;
  • the Data Dictionary, Data Administration, Procedure Editor and PROMON are the character versions, in a VS Code terminal, with TERM=xterm (ablDbManager.tools.terminalType). VS Code's own xterm-256color may be missing from $DLC/protermcap;
  • paths written on Windows in openedge-project.json or in the Project Manager's workspace databases (src\abl) are read as src/abl. File names are case-sensitive.

Recommended extensions

Extension Why
OpenEdge ABL (Riverside Software) ABL language support; its runtimes (abl.configuration.runtimes) and openedge-project.json are the configuration OpenEdge ABL - Database Manager uses
OpenEdge ABL - Project Manager edits the workspace databases, the dbConnections and the propath of the projects, starts / stops / backs up databases, PROMON
OpenEdge ABL - PASOE Manager GUI manages the agents and sessions of PAS for OpenEdge instances

How it works

  • On activation the extension finds every openedge-project.json and resolves the active profile, the same way the ABL extension does.
  • For each project it starts one headless ABL session (_progres -b) when first needed, with the project's propath, startup procedures and database connections. The session talks to VS Code over a localhost socket that only accepts a one-time token.
  • Editing openedge-project.json or switching profile (.vscode/profile.json) restarts the session automatically.

Features

Database tree

Open the ABL Database Manager view in the activity bar. Each database from dbConnections shows its tables, and each table its fields and indexes. Use the filter button to filter tables:

Database tree

Filter Shows
cust tables whose name contains cust
order*, item comma separated list; with */? the whole name must match
field:custnum (or f:) tables having a field matching custnum

Table types: Table Types… in the view's … menu chooses which tables are listed: user tables, hidden tables, metaschema (_File, _User, …), virtual system tables (VST) and the SQL catalog (SYSPROGRESS.SYSTABLES, …). SQL catalog tables show their fields and indexes, but have no data panel: ABL cannot read them, only SQL can.

Table types

Field filter: the filter button on a table's Fields node (or Filter Fields… on the table) shows only the fields whose name or label matches (same syntax as the table filter). With field:xxx in the table filter, the Fields nodes of the matching tables open on the matching fields.

Fields of Customer filtered

With several OpenEdge projects in the workspace, the tree lists each database once, sorted by name, followed by the projects that use it (e.g. FrameworkDB devops, OSIV3G, osiv3g-unittests). Two connections are the same database when they point to the same file (local, -db resolved from each project root) or to the same host and port (-H/-S). The database is browsed through one of its projects, preferably one whose backend is already connected. Set ablDbManager.tree.groupBy to project for one node per project instead.

Databases outside the projects

OpenEdge ABL - Database Manager keeps no connection list of its own:

  • Workspace databases of the OpenEdge ABL - Project Manager (openedge-abl-properties.workspaceDatabasesFile, default .vscode/openedge-workspace-databases.json) that no project uses appear in the tree, followed by Workspace databases. They use the runtime of their dlc entry and are browsed like any project database.
  • Quick connections: ABL Database Manager: Quick Connect… asks for ABL connection parameters (e.g. -db C:/db/sports -1 or -db sports -H dbserver -S 20000) and a logical name, and stores them in the ablDbManager.connections setting. Remove Quick Connection (context menu) deletes one.

Workspace database and quick connection

User ID and password: when a connection fails because it needs credentials (errors 710, 1640, …), the database shows User ID and password needed. Set User ID and Password… (context menu) asks for them, stores the password in VS Code's SecretStorage (never in a setting, a file or a log) and connects again. Forget User ID and Password removes them. Tooltips show the connect string with the password masked.

Password prompt

Connection check: with ablDbManager.checkConnectionsOnStartup, the databases are connected when VS Code starts, so a failing connection is marked in the tree before you expand it. Refresh and ABL Database Manager: Check Connections retry the databases that are not connected.

Data panel

Click a table (or run ABL Database Manager: Open Table…) to open its records. The query runs immediately.

Data panel: query, column filter, sort and selection with aggregates

  • Query editor: type an ABL WHERE clause, optionally followed by USE-INDEX x and/or BY field [DESCENDING]. Enter runs it; Ctrl+↓ / Ctrl+↑ expands or collapses the editor; ↑/↓ browse the history.

  • Completion: Ctrl+Space in the query editor lists the fields of the table (names that begin with what you typed first, then the ones that contain it), then ABL keywords and operators. ↑/↓ choose, Enter or Tab insert, Esc closes.

    Field completion in the query editor, then Raw values

  • Sort: click a column header (none → ascending → descending), Shift+click to add a sort column.

  • Filter row: one filter per column, combined with the query:

    Filter Meaning
    abc character: BEGINS "abc", other types: = abc
    *abc* MATCHES "*abc*"
    >= 100, <> 5, = Smith explicit operator
    !abc negation
    ? unknown value
    10..20, 2024-01-01..2024-12-31 range

    With ablDbManager.query.filterAsYouType the query runs while you type in a filter, ablDbManager.query.filterDelay (500 ms) after the last key. Enter always runs it at once.

  • Columns: show or hide fields, reorder them, set display formats. Drag a header border to resize. The layout is saved per table.

  • Columns panel filter: type in the box at the top of the Columns panel to find a field by name or label; Hide all / Show all then apply to the matching fields only.

    Columns panel filter

  • Views: save the current columns (visible fields, order, formats, widths) under a name and switch between views from the Views button; Default columns goes back to all fields in schema order. A view with other formats re-runs the query. Changing the columns afterwards leaves the view (the button shows Views again); save it again to keep the change.

    Named views

  • Formatted / Raw: the Raw button shows the values as they are stored (numbers without format, ISO dates, true/false, ? for unknown) instead of the ABL-formatted ones.

  • Selection: click / Ctrl+click / Shift+click, Ctrl+A selects all, Ctrl+C copies as TSV. The footer shows the selected count and Σ/min/max/avg of the first numeric column.

  • Count counts all records matching the query. Shift+Del clears the query and filters.

Editing

Record editor | Key | Action | |---|---| | Enter / double click | edit the selected record(s) — view when read-only | | Ins | add a record (initial values from the schema) | | Shift+Ins | clone the selected record | | Del | delete the selected record(s) after confirmation |

The record editor saves only the fields you changed. It refuses to overwrite a record that someone else changed since you read it. Each update or delete first writes a JSON backup of the records (see ablDbManager.backup.*). Tables are read-only when the connection uses -RO, the database is read-only, ablDbManager.readOnly is set, or the table is a metaschema/VST table.

Export, dump & load

  • Export (Ctrl+S in the grid, or right-click a table): selected records or the whole current query to CSV, Excel, JSON, XML, HTML, an ABL program or a Progress .d dump. The default file name comes from ablDbManager.dump.fileTemplate (e.g. <DB>/<DUMPNAME>.<TIMESTAMP>.<EXT>).
  • Load (Ctrl+L): CSV, JSON or .d. ABL Database Manager first checks the file inside a transaction that is undone and reports any problems. It loads only after you confirm.
  • Dump definitions: right-click a table or a database → Dump Definitions (.df)….
  • In a dev container or a remote, files are written in the remote workspace. Use Download… in the Explorer to copy them to your machine.

Favourites, saved queries & more

  • Favourites: ★ in the data panel or Add to Favourites on a table. Favourites are database independent and can be grouped. They appear at the top of the tree.
  • Saved queries: Queries button → save the current query (query, filters and sort), apply or delete saved ones. When a view is applied, the query can remember it: opening the query applies the view too.
  • Compare: select two records → Compare opens a diff editor.
  • Dig into table under cursor: Ctrl+Alt+D in an ABL editor opens the table named under the cursor.
Shortcut Where Action
Alt+T ABL Database Manager view filter tables
Ctrl+Alt+T anywhere open a table
Ctrl+Alt+D ABL editor dig into the table under the cursor
Alt+W / Alt+F / Alt+G data panel focus query / filter row / grid
Ctrl+Enter, F5 data panel run the query
Ctrl+S / Ctrl+L data panel export / load

Data Dictionary, Data Administration, Procedure Editor

Right-click a database (or a table) → Open Data Dictionary, Open Data Administration or Open Procedure Editor. The tools are started with the project's runtime, connections, aliases, propath and startup procedures, with DICTDB pointing at the database you chose — and always on the side where the extension runs:

Where VS Code works Tool
locally on Windows GUI version (prowin)
locally on Linux character version in a VS Code terminal
dev container, WSL, Remote-SSH, Codespaces character version from the OpenEdge inside the container / remote host, in a VS Code terminal
  • A single-user database (-1) is released by ABL Database Manager while the tool runs (the tree shows in use by the Data Dictionary) and reconnected when the tool is closed.
  • Read-only connections stay read-only (ablDbManager.readOnly adds -RO).
  • The character client cannot run with UTF-8 unless it is the double-byte enabled client (error 3624): it gets a single-byte code page — the project's charset, else the database's, else iso8859-1.
  • ablDbManager.tools.mode = gui / terminal forces one version.

Database menu

Character Data Dictionary in a VS Code terminal

Database monitor (PROMON)

Right-click a database → Monitor Database. The monitor samples the virtual system tables every ablDbManager.monitor.intervalSeconds (5 s) and shows:

  • tiles: commits / s, record reads / s, buffer hits, users, open transactions, lock table use;
  • charts of the last 5 min / 15 min / 1 h / all samples: transactions, record activity, database I/O, buffer pool, BI / AI writes, users and transactions, locks, storage areas made of fixed extents — with the thresholds drawn as lines and the values under the mouse;
  • table activity (Tables page): four bar charts, Record reads, Records created, Records updated and Records deleted, with the busiest tables at the top. The values are the totals since the database started (_TableStat). The top N list of the toolbar sets the number of tables per chart (ablDbManager.monitor.topTables, default 15). Click a bar to open the table. _TableStat only covers the tables from -basetable to -basetable + -tablerangesize − 1 (default 1 – 50): the page names the tables that are not tracked and the startup parameter that tracks them; the users button of a bar shows who uses that table;
  • user activity (User activity page): the same bar charts per client connection: Record reads, Records created, Records updated, Records deleted (_UserTableStat), Database accesses and Disk reads (_UserIO, the buffer hit rate in the tooltip: a user with many disk reads is often scanning a table). OpenEdge counts from when each connection started, so the values are the totals since the connection (or, with per second, the rates between the last two samples). by connection / user name / machine / client type adds up the connections per group. Click a bar to see the tables of that user, then a table to open it. Locks & transactions (ablDbManager.monitor.userSnapshots, off by default) adds Locks held now and Oldest open transaction. AppServer / PASOE agents all connect under one user name: there, a bar is an agent, not the end user;
  • tables like PROMON: users, locks, transactions, storage areas (Grows tells whether an area has a variable extent), startup parameters.

The refresh list of the toolbar (1 s to 1 min) changes the interval of that monitor while it runs. Pause stops the sampling, Export CSV writes the samples (on the Tables page: the activity per table; on the User activity page: the activity per connection). Thresholds (ablDbManager.monitor.thresholds: buffer hits, lock table, area use, transaction age) show a warning on the database in the tree. A multi-user database is sampled from its own backend session, so the monitor never waits behind a query of a data panel (one extra connection); a single-user database is sampled through the project session. Open several monitors side by side to compare databases. Open PROMON starts the real PROMON in a terminal for a database on the machine (or container) where VS Code works. With the OpenEdge ABL - Project Manager installed, its database actions are offered on the database too.

Database monitor charts

Storage areas

Table activity

User activity

Tables of a user

Database log

Open Database Log (database context menu or palette) shows the .lg file of a database as a table. It works for any database whose files are on the machine or container where VS Code works:

  • Table: line number, timestamp, PID, TID, severity, process, message number and message. Fatal and critical lines (abnormal shutdown, lock table overflow, full disk…) are red, warnings orange.
  • Follow: the newest entries stay in view as OpenEdge writes them. When you scroll up, a badge counts the new entries; click it to go back to the end. A truncated or recreated log is reloaded. Logs over 50 MB load their last 50 MB, with exact line numbers.
  • Filters: level (errors, warnings & errors), process type, PID, message number and free text (plain or regex). Click a message number to filter on it.
  • Details: click a row for its details (filter by its message number or PID). Double-click it, or use Open in Editor, to open the .lg at that line.
  • Highlights: rules with a text or regex, a background and text colour, applied to the matched text or the whole line, in priority order.
  • Columns (show, hide, reorder, resize), Compact and Font. Rules and layout are remembered.
  • The toolbar switches between the logs of the workspace's databases. A database shared by several projects appears once.

Database log: follow mode, highlights and a level filter

Highlight rules

The viewer comes from the OpenEdge ABL - Project Manager, which also gives the .lg files syntax colouring and warns about new errors in the logs.

Start and stop database servers

Start Database Server, Stop Database Server and Database Server Status (database context menu) manage the server of a client-server database on the machine or container where VS Code works (-H localhost -S <port>). Single-user (-1) connections are not served, so they don't get these entries.

Server actions of a database

  • Start: _mprosrv <db> -H <host> -S <port> plus the broker parameters of the Project Manager's workspace database. The broker keeps running after VS Code closes. When it is up (proutil -C holder), the projects that use the database connect again.
  • Stop: asks first, disconnects ABL Database Manager's own sessions, then runs _mprshut <db> -by. Every user of the database is disconnected.
  • Database file: the connected database, the -db path when the .db is there, or the workspace database of the OpenEdge ABL - Project Manager with the same port.
  • Utilities run without a shell. In Restricted Mode, nothing is started.

Database analysis

Analyze Database (dbanalys) (database context menu) runs proutil <db> -C dbanalys on a database of this machine, online or offline. The record block summary of every area is shown as a sortable, filterable table: records, size, mean and maximum record size, fragments, and the fragment and scatter factors. Factors above 1.5, worth a dump and load or a reorganisation, are highlighted. The raw report is below the table, and Analyze again refreshes it.

A single-user database opened by ABL Database Manager is released while proutil runs (after a confirmation), then connected again.

Database analysis

SQL workbench (like sqlexp)

Write and run OpenEdge SQL-92 statements in ordinary .sql editors. New SQL Query (database or table context menu, or the palette) opens an editor with a SELECT of the table and a -- @db <name> line that binds the file to its database (-- @db <project>/<name> when two projects have a database with that name). Without that line, the database chosen with Choose SQL Database… (status bar, editor title or CodeLens) is remembered per file.

  • Run: Ctrl+Enter (Cmd+Enter) runs the selection, or the statement under the cursor; Ctrl+Shift+Enter or ▶ Run all runs every statement of the file, one after the other (ablDbManager.sql.stopOnError). A ▶ Run CodeLens sits above each statement. Ctrl+Alt+C or ■ Cancel stops the running statement.
  • Completion and hovers: Ctrl+Space (or . after a table or alias) completes the PUB tables after FROM, JOIN, UPDATE, INTO, the columns of a table or alias, and keywords. Names are quoted when SQL needs it ("Cust-Num", "Order"). Hovering a table or column shows its schema (label, type, format, SQL width, description).
  • Explain (editor context menu): runs the statement and shows its query plan (_Sql_Qplan) in its own tab. Update SQL Statistics (table context menu) refreshes the statistics the SQL optimizer uses.
  • Parameters: :name placeholders are asked for before the run (the last value is offered again) and sent as bound parameters, never pasted into the SQL. Numbers are sent as numbers; an empty value or ? is NULL.
  • Results: one tab per statement with rows (ablDbManager.sql.maxRows, default 1000, then Fetch more), a Messages tab with rows affected, duration, warnings and errors. Columns sort on click (NULL shown as ?, always last). Copy puts the rows on the clipboard (tab-separated, for a spreadsheet). CSV, JSON and XLSX export them. Errors come without the driver's prefixes, with a hint for the common ones (SQL width, login, no SQL broker, missing GRANT).
  • Transactions: auto-commit by default (ablDbManager.sql.autoCommit). Untick Auto-commit in the results panel to keep changes in a transaction: Commit and Rollback end it, the status bar shows it is open, and closing the connection rolls it back. Read-only databases (-RO, ablDbManager.readOnly) only run SELECT.
  • SQL Queries view (below Databases): Workspace queries are the .sql files of .vscode/sql (ablDbManager.sql.queriesFolder), shared through git; My queries are kept in VS Code's global storage, in every workspace. New query / folder, rename, duplicate, delete, drag and drop between folders, ▶ Run from the tree.
  • History (same view): every statement run in the workspace (ablDbManager.sql.historySize, default 200) with its database, time, duration, rows and status. Open it in an editor, Run Again, Save as Query…, remove, clear.
  • SQL Explorer: Open SQL Explorer (sqlexp) starts the character sqlexp of the runtime in a terminal, on the same SQL broker (it asks for the password).

How it connects: the SQL engine is a small Java program shipped with the extension (java/sql-helper.jar, Java 8+) that uses the OpenEdge JDBC driver of the project's runtime ($DLC/java/openedge.jar). It runs where the extension runs (also in dev containers and over Remote-SSH), one process per database, started on first use.

  • SQL broker: the database must be served with a SQL broker (-ServerType SQL or BOTH, the default) and the connection must use -H / -S with a port number. Shared-memory and single-user (-1) connections cannot use SQL: start the database server (Start Database Server), or set the broker in ablDbManager.sql.connections ({ "sports": { "port": 20932 } }), also for a secondary SQL broker or a service name.
  • Java: ablDbManager.sql.javaHome (your own Java; ${env:VAR} works), else JAVA_HOME, else the Java OpenEdge 12 was installed with ($DLC/properties/java.properties), else $DLC/jdk (OpenEdge 11). The log shows which one runs.
  • Login: the user of ablDbManager.sql.connections, else the stored SQL user ID, else the ABL user ID of the database, else the operating system user (the creator of a database is its SQL DBA). A refused login asks for a user ID and password and stores them in VS Code's secret storage; Set SQL User ID and Password… changes them.
  • Unqualified table names are the PUB tables (ablDbManager.sql.defaultSchema). Names with hyphens need double quotes: "Cust-Num".

SQL workbench

SQL Queries view

SQL completion

Code generation

Right-click a table → Generate Code… (or the Code button in the data panel):

Generator Output
Temp-table definition DEFINE TEMP-TABLE with all fields and indexes, or LIKE the table
ASSIGN statement every field (extents element by element) with initial values
FOR EACH / BUFFER-COPY using the WHERE / USE-INDEX / BY of the data panel
Bulk delete deletes the query's records in transactions of 1000
Dump / load procedure EXPORT / IMPORT program
Active record class properties + Find / Save / Delete on the primary key

Your own templates: put *.tpl files in .ablDbManager/templates (Open Code Templates Folder creates an example). The output extension comes from the name (dataset.i.tpl → .i). Syntax: {{tableName}}, {{db}}, {{where}}, {{#fields}}…{{/fields}} with name, ablType, shortType, format, label, extent, isExtent, isLob, initialLiteral, {{#elements}}{{element}}{{/elements}}; {{#indexes}} with name, primary, unique, fields; {{^@last}},{{/@last}}, {{@number}}.

Compile Check with Connected Databases (editor context menu) compiles the current file with the project's databases and reports errors as diagnostics. The ABL extension compiles without database connections. Open Code Templates Folder opens the template in a VS Code editor (it creates an example when the folder is empty).

Customisation hooks (myDataDigger.p)

Set ablDbManager.hooks.procedure to an ABL procedure of your project (e.g. hooks/myHooks.p). It is run persistent in the backend session. Implement only the hooks you need. They all have the same signature:

using Progress.Json.ObjectModel.JsonObject.

/* Only show customers of the current company ("poor man's multi-tenancy") */
procedure CustomQuery:
  define input  parameter poContext as JsonObject no-undo. /* db, table, query */
  define output parameter poResult  as JsonObject no-undo. /* query */
  if poContext:GetCharacter("table") <> "Customer" then return.
  poResult = new JsonObject().
  poResult:Add("query", replace(poContext:GetCharacter("query"), " no-lock", " no-lock where Customer.Company = 1")).
end procedure.

/* Refuse some changes */
procedure PreSave:
  define input  parameter poContext as JsonObject no-undo. /* db, table, action, values */
  define output parameter poResult  as JsonObject no-undo. /* veto */
  if poContext:GetJsonObject("values"):Has("CreditLimit") then do:
    poResult = new JsonObject().
    poResult:Add("veto", "Credit limits are changed in the ERP only").
  end.
end procedure.
Hook Context Result
StartDatabaseManager databases —
CustomQuery db, table, query query (rewritten)
QueryOpen db, table, query —
CustomFormat db, table, field, format format
CustomShowField db, table, field show (false = hidden by default)
GetFilterValue db, table, field value (initial column filter)
SaveFilterValue db, table, field, value —
PreSave db, table, action (create/update), values veto (message)
PreDelete db, table, values veto (message)
CustomDump db, table, file —

A failing hook is logged in the backend log and ignored. See test/fixtures/workspace/hooks/myHooks.p for a complete example.

Sequences, tenants, LOBs

  • Sequences under each database lists the current values. Use the pencil to set one.
  • Multi-tenant databases: right-click the database → Set Effective Tenant….
  • BLOB / CLOB fields are loaded only when needed: Open in the record editor opens the content in VS Code.

Screenshots

The screenshots are generated from the real extension: npm run screenshots starts the VS Code test build on the fixture workspace and writes them to ../vscode-extension-pictures/openedge-abl-database-manager (SCREENSHOT_DIR overrides it).

Settings

Setting Default Description
ablDbManager.backend.requestTimeout 60 Seconds before a backend request is stopped (STOP-AFTER)
ablDbManager.backend.extraParameters "" Extra _progres parameters for the backend
ablDbManager.readOnly false Open every database read-only
ablDbManager.tables.types ["user"] Tables listed: user, hidden, metaschema, vst, sql
ablDbManager.tables.showHidden / showSystem false Deprecated: use ablDbManager.tables.types (still honoured)
ablDbManager.query.batchSize 200 Records fetched per batch while scrolling
ablDbManager.query.historySize 20 Queries kept per table
ablDbManager.query.autoRun true Run the query when a table opens
ablDbManager.query.dateFormat dmy How dates in filters are read (ISO always works)
ablDbManager.openTableInNewPanel false Always open tables in a new panel
ablDbManager.edit.disableTriggers false Default for disabling triggers on save / delete
ablDbManager.edit.inlineEditing false Double click edits the cell in the grid
ablDbManager.backup.enabled true JSON backup before update / delete
ablDbManager.backup.folder "" Backup folder (relative to the project); empty = extension storage
ablDbManager.dump.folder "" Default export folder (relative to the project)
ablDbManager.dump.fileTemplate <DUMPNAME>.<EXT> Default export file name
ablDbManager.dump.csvDelimiter , CSV delimiter
ablDbManager.dump.maxRows 0 Maximum records per export (0 = all)
ablDbManager.codegen.abbreviateTypes false char/int/dec/log in generated code
ablDbManager.codegen.qualifyDatabase true Qualify tables with the database name
ablDbManager.codegen.templateFolder .ablDbManager/templates Folder of user templates
ablDbManager.hooks.procedure "" Customisation hooks procedure (relative to the project)
ablDbManager.panel.titleTemplate <TABLE> · <DB> Data panel title
ablDbManager.databaseColors {} Accent colour per database, e.g. { "prod": "#d32f2f" }
ablDbManager.query.maxLoadedRows 20000 Rows kept in a data panel (0 = no limit)
ablDbManager.query.filterAsYouType false Run the query while typing in the column filters
ablDbManager.query.filterDelay 500 Milliseconds after the last key before a filter runs
ablDbManager.tables.showSequences true Show the Sequences node
ablDbManager.tools.mode auto Data Dictionary / Administration / Procedure Editor: auto, gui or terminal
ablDbManager.tools.terminalType xterm Linux / Unix: TERM of the character tools and PROMON (must exist in $DLC/protermcap)
ablDbManager.monitor.intervalSeconds 5 Seconds between two monitor samples when a monitor opens (1 – 3600)
ablDbManager.monitor.historyMinutes 60 Minutes of samples kept for the charts
ablDbManager.monitor.topTables 15 Bars per chart on the monitor's Tables and User activity pages (1 – 100)
ablDbManager.monitor.userSnapshots false User activity page: also chart the locks held and the oldest open transaction per user
ablDbManager.monitor.thresholds buffer hits 90 %, lock table 80 %, area 90 %, transaction 600 s Monitor warnings
ablDbManager.tree.groupBy database Several projects: one node per database (with its projects) or per project
ablDbManager.connections [] Quick connections: { "name", "connect", "oeversion"? } (no password)
ablDbManager.checkConnectionsOnStartup false Connect the databases when VS Code starts
ablDbManager.sql.javaHome "" Java (8+) of the SQL engine; empty: JAVA_HOME, $DLC/properties/java.properties, $DLC/jdk
ablDbManager.sql.connections {} SQL broker per database: { "<db>": { "host"?, "port"?, "databaseName"?, "user"? } }
ablDbManager.sql.maxRows 1000 Rows read per SQL result before Fetch more
ablDbManager.sql.queryTimeout 0 Seconds a SQL statement may run (0: no limit)
ablDbManager.sql.autoCommit true Commit every SQL statement at once
ablDbManager.sql.isolationLevel READ COMMITTED Transaction isolation of the SQL connections
ablDbManager.sql.defaultSchema PUB Schema of unqualified SQL table names
ablDbManager.sql.stopOnError true Run all stops at the first failing statement
ablDbManager.sql.queriesFolder .vscode/sql Folder of the workspace SQL queries
ablDbManager.sql.historySize 200 SQL statements kept in the history

Development

npm ci
npm run build            # bundle extension + webview into dist/
npm run test:unit        # fast unit tests (no OpenEdge needed)
npm run test:integration # real ABL backend against a fresh sports2020 copy (needs DLC)
npm run test:e2e         # VS Code e2e tests with a fixture workspace (needs DLC)
npm run package          # build a .vsix into dist-vsix/
npm run build:java       # rebuild java/sql-helper.jar after changing java/src (needs a JDK; the jar is committed)

DD_E2E_GREP="SQL workbench" npm run test:e2e runs only the matching e2e suites.

Code reviews with Claude Code: /review-typescript (extension, webviews, tests) and /review-abl (ABL backend) check the changes against the project's rules (.claude/skills/review-*/reference/). They run the typecheck, tests and ABL compile, then report verified findings by severity with rule ids. /publish makes a release.

The same commands work on Windows, Linux and macOS, and in the dev container (.devcontainer/, with an OpenEdge image in OE_IMAGE). On Linux without a display, run the e2e tests under xvfb-run -a npm run test:e2e. node .claude/skills/publish/scripts/test-state.mjs --run runs every suite and records the result (it uses xvfb-run by itself). The unit tests include portability rules: every backslash in the ABL sources is escaped with ~ (on Unix, a lone \ escapes the next character); npm scripts and VS Code tasks use no Windows-only commands; shell scripts stay executable, with LF line endings.

Suite What Count
unit (vitest, jsdom) config parsing, protocol, query builder, filters, stores, webview DOM, exporters, generators, templates (with snapshots) 163
integration (vitest) real ABL backend on a fresh sports2020 copy: protocol, schema, queries, CRUD, dump/load, hooks, generated code compiled with the ABL compiler, ABLUnit tests 123
e2e (VS Code) the extension in a VS Code instance with a fixture workspace and the real webviews 66

Debugging (F5)

Node is pinned in .node-version (26) and the VS Code tasks run it through fnm.

Launch configuration What it does
Run Extension (dev workspace) starts the esbuild watcher, prepares test/.work/dev/workspace (fixture project + a sports2020 copy, kept between sessions, with the abl.configuration.runtimes workspace setting) and opens it in an Extension Development Host
Run Extension (isolated, …) the same with every other extension disabled
Extension Tests (e2e) builds, recreates test/.work/e2e and runs the e2e suite under the debugger
Debug unit / integration tests (current file) runs the open test file with vitest under the debugger

Breakpoints work in src/ and webview/ (source maps in dist/). To debug the webviews, use Developer: Open Webview Developer Tools in the development host. The ABL backend log is opened with ABL Database Manager: Show Backend Log.

Publishing

publish.js (wrappers publish.ps1 / publish.sh) packages the extension into dist-vsix/ and publishes it to the VS Code Marketplace and OpenVSX. The tokens come from the VSCE_PAT and OVSX_PAT environment variables (on Linux also from ~/.profile):

npm run publish:dry          # package only
npm run publish:all          # Marketplace + OpenVSX
node publish.js --check-tokens

In Claude Code, /publish runs the release procedure (.claude/skills/publish/SKILL.md): it proposes the version, writes the changelog, makes sure all test suites passed for the current sources, commits and tags, and then publishes after a confirmation.

Continuous integration

.github/workflows/ci.yml always runs the typecheck, the unit tests and the packaging (the .vsix is uploaded as an artifact). The integration and e2e tests run as well when OpenEdge is available to CI, in one of two ways:

Option Configure (repository Settings → Secrets and variables → Actions)
OpenEdge container image on GitHub-hosted runners variable OE_IMAGE (image with OpenEdge), optional variable OE_DLC (default /usr/dlc), secrets OE_REGISTRY_USER / OE_REGISTRY_PASSWORD for a private registry, secret OE_PROGRESS_CFG_BASE64 (base64 of progress.cfg) when the image has no licence
Self-hosted runner with OpenEdge variable OE_SELF_HOSTED = true, runner labels self-hosted + openedge, DLC set on the runner

These jobs set DD_REQUIRE_OPENEDGE=1, so a missing OpenEdge installation fails the job instead of skipping the tests. The image needs $DLC/sports2020.db and a licence that can compile. Backend and VS Code logs are uploaded when a job fails.

The tests find OpenEdge through $DLC, falling back to C:\Progress\OpenEdge128, /usr/dlc or /psc/dlc. To develop inside a container, set OE_IMAGE to an OpenEdge development image and use Reopen in Container (see the .devcontainer folder).

Related projects

  • DataDigger by Patrick Tingen: the original OpenEdge GUI tool this extension brings to VS Code.
  • OpenEdge ABL by Riverside Software: the ABL language support whose runtimes, openedge-project.json and profiles OpenEdge ABL - Database Manager uses.
  • OpenEdge ABL - Project Manager: manages the workspace databases and the dbConnections of the projects, starts and stops databases and opens PROMON. Together with OpenEdge ABL - Database Manager it covers the whole database workflow in VS Code.
  • OpenEdge ABL - PASOE Manager GUI: manages the agents and sessions of PAS for OpenEdge, the application-server side of the same projects.

Known limitations

  • One ABL session per project. A long request blocks the other panels of the project until it ends or is stopped by ablDbManager.backend.requestTimeout (STOP-AFTER). Restart Backend stops a session that hangs.
  • Dumps (.d) and loads, .df dumps and compile checks compile small programs on the fly, so the OpenEdge licence of the session must allow compiling (any development licence).
  • .d files are written without the PSC trailer. The Data Administration tool loads them anyway.
  • SQL needs a database served with a SQL broker on a port; the SQL engine needs Java 8 or later.
  • DataServers and multi-tenant databases are handled, but they are only tested against the OpenEdge sports2020 database.

Licence

MIT. OpenEdge ABL - Database Manager reimplements the behaviour of the original DataDigger; it contains no code from it so far. DataDigger itself is MIT licensed (© 2021 Patrick Tingen): code reused from it keeps his copyright and permission notice, listed in THIRD-PARTY-NOTICES.md.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft