Skip to main content Link Search Menu Expand Document (external link)

Query

Just run a SQL query using this method:

// Initialize sdk
import tb from 'tinybird-sdk';
tb.init('p.eyJ1IjogIjZhNTdkYzFlCTM2ZTItNDNlYy04ZWRi...');

// Execute SQL query
const { meta, rows, statistics } = await tb.query('select * from test_datasource');

Copyright © 2022 Alejandro Martín. Distributed by an ISC license.