module.ts 765 B

123456789101112131415161718192021222324252627282930313233
  1. import { MssqlDatasource } from './datasource';
  2. import { MssqlQueryCtrl } from './query_ctrl';
  3. import { MssqlConfigCtrl } from './config_ctrl';
  4. const defaultQuery = `SELECT
  5. <time_column> as time,
  6. <text_column> as text,
  7. <tags_column> as tags
  8. FROM
  9. <table name>
  10. WHERE
  11. $__timeFilter(time_column)
  12. ORDER BY
  13. <time_column> ASC`;
  14. class MssqlAnnotationsQueryCtrl {
  15. static templateUrl = 'partials/annotations.editor.html';
  16. annotation: any;
  17. /** @ngInject */
  18. constructor() {
  19. this.annotation.rawQuery = this.annotation.rawQuery || defaultQuery;
  20. }
  21. }
  22. export {
  23. MssqlDatasource,
  24. MssqlDatasource as Datasource,
  25. MssqlQueryCtrl as QueryCtrl,
  26. MssqlConfigCtrl as ConfigCtrl,
  27. MssqlAnnotationsQueryCtrl as AnnotationsQueryCtrl,
  28. };