mirror of
https://github.com/grafana/grafana.git
synced 2025-02-03 20:21:01 -06:00
62c30dea4d
* SQL: toRawSQL required and escape table * Fix autocomplete for MySQL * Change the way we escape for builder * Rework escape ident to be smart instead * Fix A11y for alias * Add first e2e test * Add test for code editor * Add doc * Review comments * Move functions to sqlUtil
10 lines
327 B
TypeScript
10 lines
327 B
TypeScript
import { buildTableQuery } from './mySqlMetaQuery';
|
|
|
|
describe('buildTableQuery', () => {
|
|
it('should build table query with parameter `grafana`', () => {
|
|
expect(buildTableQuery('`grafana`')).toBe(
|
|
`SELECT table_name FROM information_schema.tables WHERE table_schema = 'grafana' ORDER BY table_name`
|
|
);
|
|
});
|
|
});
|