Skip to main content

fromURL

fromURL(url): Promise<void>

Add data from a URL.

Parameters

NameTypeDescription
urlstringThe URL to the CSV file.

Returns

Promise<void>

Promise that resolves when the data has been added.

Throws

If pushing data to the server fails.

Example

const client = new CausaDB();
await client.setToken('test-token-secret');
const data = new Data('test-data', client);
await data.fromURL('https://example.com/data.csv');