Something went wrong. Try again.
A mapping language to compose SQL for Go.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031import includeLanguages from '@theme-original/prism-include-languages';
// Lexical highlighting only; the StitchQL compiler validates these examples.export default function prismIncludeLanguages(Prism) { includeLanguages(Prism);
Prism.languages.stitchql = Prism.languages.extend('sql', { comment: [ ...[].concat(Prism.languages.sql.comment), {pattern: /\/\/[^\r\n]*/, greedy: true}, ], keyword: [ /\b(?:package|import|schema|fields|columns|predicate|query)\b/, ...[].concat(Prism.languages.sql.keyword), ], });
Prism.languages.insertBefore('stitchql', 'keyword', { annotation: {pattern: /@stitchql\b/, alias: 'builtin'}, 'go-type': { pattern: /\b(?:bool|byte|float32|float64|int|int16|int32|int64|string|any)\b/, alias: 'class-name', }, 'fragment-name': { pattern: /(\b(?:columns|predicate|query|fields)\s+)[A-Za-z_]\w*/, lookbehind: true, alias: 'function', }, });}