Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>DataLexiconNew to Visual Studio Code? Get it now.
DataLexicon

DataLexicon

Nvision Data

|
14 installs
| (0) | Free
Generate SQL, documentation, and ER diagrams from YAML logical data models.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DataLexicon

DataLexicon is a lightweight, model-driven tool for turning logical data models written in YAML into database-ready SQL, documentation, and ER diagrams.

It is designed for data engineers, analysts, and architects who want to define their data model once and generate consistent outputs for multiple database dialects.

Why DataLexicon?

DataLexicon helps teams:

  • keep data models in version control
  • generate SQL automatically from logical models
  • standardize naming conventions and abbreviations
  • generate documentation and ER diagrams
  • support multiple dialects such as PostgreSQL, SQL Server, Oracle, and Snowflake

Key features

  • YAML-based logical modeling
  • Generate SQL DDL for multiple dialects
  • Primary key, foreign key, and index generation
  • Table and column comments from model descriptions
  • Naming configuration via standards/naming.yml
  • Docs generation with HTML output and Mermaid ER diagrams
  • Works well in Git-based workflows and CI/CD pipelines

Free and premium tiers

DataLexicon is available in a free tier without a license. The free tier supports up to 10 top-level YAML model files in a project and PostgreSQL only. The init, build, docs, and validate commands remain available within those limits.

A premium license removes the model and dialect limits, enabling all supported dialects. Premium licenses are signed offline and can be activated from a token or license file:

datalexicon license activate path/to/premium.license

Premium licenses must be reissued when expired. To request a license or license extension, you can visit our website.

Check whether a premium license is active and how many days remain with:

datalexicon license status

The command reports the free tier when no license is activated, or shows the premium license expiry and remaining days. Remaining days are rounded up; expired licenses show 0.

How DataLexicon works

  1. Create a project folder.
  2. Place your logical models in a models directory as YAML files.
  3. Add a datalexicon.yml file with your project settings.
  4. Optionally configure naming and abbreviations in a standards directory.
  5. Run the build command to generate SQL into the target folder.
  6. Run the docs command to create an HTML report with the ER diagram.

Suggested project structure

my-project/
  models/
    customer.yaml
    order.yaml
    country.yaml
  standards/
    naming.yml
    abbreviations.yml
  datalexicon.yml
  target/

Example model file

entity: Customer
description: Customer master data
attributes:
  - name: CustomerId
    type: identifier
    required: true
    primary_key: true
    description: Unique customer identifier
  - name: CustomerName
    type: text
    description: Customer display name
relationships:
  - entity: Order
    type: one-to-many
    source_attribute: CustomerId
    target_attribute: CustomerId

Example projects

For complete, ready-to-use examples of DataLexicon projects, see the datalexicon-examples repository.

Minimal configuration

name: my_project
models_dir: models
standards_dir: standards
dialects:
  - postgres

Naming configuration

You can customize primary key, foreign key, and index naming in standards/naming.yml:

naming:
  primary_key:
    prefix: PK_
    suffix: _PK
  foreign_key:
    prefix: FK_
    suffix: _FK
  index:
    prefix: IX_
    suffix: _IDX

Commands

Initialize your project

Start by creating a new DataLexicon project using the CLI. The initialization command creates a ready-to-use project structure.

datalexicon init .

Creates the recommended folder structure:

my-project/
  models/
  standards/
  datalexicon.yml
  target/

Afterwards, you can create your entities, attributes and relationships using simple YAML files stored in the models directory.

Build SQL

datalexicon build .

This creates SQL files in the target folder per selected dialect.

Validate a model

datalexicon validate models/customer.yaml

Generate documentation

datalexicon docs .

This creates HTML documentation with logical model sections, generated SQL, and an ER diagram.

DataLexicon Docs

Run with Docker

Create a folder for the Docker Compose file, for example datalexicon-docker, and save this as compose.yml inside it. Docker Compose creates the projects and .license folders there automatically when you first run a command. Project files, generated SQL, and documentation are stored in projects; the license is stored separately in .license.

services:
  datalexicon:
    image: nvisiondata/datalexicon:latest
    working_dir: /workspace
    volumes:
      - type: bind
        source: ./projects
        target: /workspace
        bind:
          create_host_path: true
      - type: bind
        source: ./.license
        target: /license
        bind:
          create_host_path: true

Run the commands below from the folder containing compose.yml:

docker compose run --rm datalexicon init .
docker compose run --rm datalexicon build .
docker compose run --rm datalexicon validate models/customer.yaml
docker compose run --rm datalexicon docs .

These commands use the free tier. To remove the model and dialect limits, activate a premium license file:

docker compose run --rm datalexicon license activate /license/premium.license

The activated premium license is stored in the configured license folder and used by later runs.

VS Code extension

The DataLexicon VS Code extension adds commands directly inside VS Code for building models and generating documentation from the open workspace.

EULA

Copyright © 2026 NvisionData. All rights reserved.

DataLexicon is licensed under the DataLexicon End User License Agreement (EULA).

The EULA defines the permitted use, restrictions, intellectual property rights, and licensing terms for DataLexicon.

For the full license agreement, see:

https://www.nvisiondata.be/products/eula.html

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