UNPKG

tinybird-sdk

Version:
36 lines 1.71 kB
declare const _default: { queryPipe: (pipeName: string, params?: object | undefined, format?: string | undefined) => Promise<object>; getAllDatasources: () => Promise<object>; getDatasource: (name: string) => Promise<object>; createDatasource: (name: string, schema: string) => Promise<object>; createDatasourceFromFile: () => Promise<boolean>; alterDatasource: (name: string, schema: string) => Promise<object>; renameDatasource: (name: string, newName: string) => Promise<object>; dropDatasource: (name: string) => Promise<boolean>; appendRows: (name: string, rows: object, format?: string | undefined) => Promise<boolean>; replaceWithRows: () => Promise<boolean>; appendFile: (name: string, filePath: object) => Promise<boolean>; replaceWithFile: () => Promise<boolean>; deleteRows: (name: string, condition: string) => Promise<boolean>; truncateDatasource: (name: string) => Promise<boolean>; sendEvents: (name: string, events: object, wait?: boolean) => Promise<{ successful_rows: number; quarantined_rows: number; }>; query: (sql: string) => Promise<object>; /** * Initialize Tinybird SDK. * * @function init * @param { string } apiToken Tinybird API Token * @param { object } [options] SDK options * @param { boolean } [options.debug=false] Flag for debug logging * @param { string } [options.apiUrl='https://api.tinybird.co'] Base url for custom installations */ init: (apiToken: string, options?: { debug?: boolean | undefined; apiUrl?: string | undefined; } | undefined) => void; }; export default _default; //# sourceMappingURL=index.d.ts.map