Skip to main content

Installation

DortDB is distributed as a set of npm packages. You always install the core, and then add one or more language packages.

Core​

npm install @dortdb/core

@dortdb/core is the engine. It ships no query language on its own; you add those separately.

Language packages​

Install whichever of the provided languages you want to use:

npm install @dortdb/lang-sql
npm install @dortdb/lang-cypher graphology
npm install @dortdb/lang-xquery

Each language package declares @dortdb/core as a peer dependency, so a single core instance is shared across all of them.

Bundle size

Because the core and each language are separate packages, a browser bundle only includes the languages and extensions you actually import. Loading SQL does not pull in the Cypher or XQuery parsers. See Design Principles.

Optional extensions​

Extensions bundle extra functions, operators, or aggregates. The provided datetime extension adds date/time helpers:

npm install @dortdb/datetime

See Functions & Aggregates for how extensions work and how to write your own.

Next step​

Continue to Your First Query to construct an engine and run a query.