mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-02 02:47:27 +00:00
16 lines
466 B
Perl
16 lines
466 B
Perl
|
|
---
|
||
|
|
to: <%= plugins_path %>/plugins/<%= name %>/lib/index.ts
|
||
|
|
---
|
||
|
|
|
||
|
|
import { QueryError, QueryResult, QueryService, ConnectionTestResult } from '@tooljet-marketplace/common';
|
||
|
|
import { SourceOptions, QueryOptions } from './types';
|
||
|
|
|
||
|
|
export default class <%= Name %> implements QueryService {
|
||
|
|
async run(sourceOptions: SourceOptions, queryOptions: QueryOptions, dataSourceId: string): Promise<QueryResult> {
|
||
|
|
return {
|
||
|
|
status: 'ok',
|
||
|
|
data: {},
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|