mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
12 lines
228 B
TypeScript
12 lines
228 B
TypeScript
import type {Token} from 'sentry/views/starfish/utils/sqlish/types';
|
|
|
|
import grammar from './sqlish.pegjs';
|
|
|
|
export class SQLishParser {
|
|
constructor() {}
|
|
|
|
parse(sql: string) {
|
|
return grammar.parse(sql) as Token[];
|
|
}
|
|
}
|