Skip to content

Commit

Permalink
Add prestoLanguageDefinition (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin authored Nov 21, 2024
1 parent 14dcd8e commit 18abc1f
Show file tree
Hide file tree
Showing 6 changed files with 1,192 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This repo contains a bundle of SQL languages for the
* BigQuery
* Clickhouse
* PostgreSQL (has functions added in newer versions than available in monaco)
* Presto
* Snowflake
* Timescale

Expand Down
2 changes: 2 additions & 0 deletions example/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
bigqueryLanguageDefinition,
clickhouseLanguageDefinition,
pgsqlLanguageDefinition,
prestoLanguageDefinition,
snowflakeLanguageDefinition,
timescaleLanguageDefinition,
} from '@popsql/monaco-sql-languages';
Expand All @@ -19,6 +20,7 @@ const App = () => {
bigqueryLanguageDefinition,
clickhouseLanguageDefinition,
pgsqlLanguageDefinition,
prestoLanguageDefinition,
snowflakeLanguageDefinition,
timescaleLanguageDefinition,
].forEach((monacoLanguage) => {
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export { bigqueryLanguageDefinition } from './bigquery/bigquery.contribution.js';
export { clickhouseLanguageDefinition } from './clickhouse/clickhouse.contribution.js';
export { pgsqlLanguageDefinition } from './pgsql/pgsql.contribution.js';
export { prestoLanguageDefinition } from './presto/presto.contribution.js';
export { snowflakeLanguageDefinition } from './snowflake/snowflake.contribution.js';
export { timescaleLanguageDefinition } from './timescale/timescale.contribution.js';
8 changes: 8 additions & 0 deletions src/presto/presto.contribution.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import type { LanguageDefinition } from '../types';

export const prestoLanguageDefinition: LanguageDefinition = {
aliases: ['Presto'],
extensions: [],
id: 'presto',
loader: () => import('./presto.js'),
};
Loading

0 comments on commit 18abc1f

Please sign in to comment.