Skip to main content

Function: SQL()

SQL(config?): SQLLanguage

Defined in: lang-sql/src/language/language.ts:50

Creates a new SQL language instance.

Parameters

ParameterTypeDescription
config?SQLConfigConfiguration options for the SQL language.

Returns

SQLLanguage

A new SQL language instance.

Example

import { DortDB } from '@dortdb/core';
import { SQL } from '@dortdb/lang-sql';

const db = new DortDB({ mainLang: SQL() });
db.query('SELECT 1 AS one');