Using the dataprovider service, you get a list of datasets that are available on a provider. Providers can be web services (googleanalytics or googledrive), databases or plugins. For example, you could connect your PostgreSQL database by creating an account and then use the dataprovider 'create' action to add tables of that database to your users datasets via the API.
Once you have created a connection, or retrieved the id and provider name of your already established connection, you can now get a list of all the datasets available through that connection.
For the first-party web service providers (Google Analytics, Google Drive), only provider is required: the API uses the authenticated user's existing connection. Databases, the natively supported connectors ( snowflake , clickhouse , bigquery , databricks ) and plugins also need account_id , even when only one connection exists for that provider.
npm install @luzmo/nodejs-sdk{
"count": 1,
"rows": [
{
"schema": "public",
"table": "burritos",
"type": "table"
},
{
"schema": "public",
"table": "burrito_shops",
"type": "table"
},
{
"schema": "public",
"table": "test_view",
"type": "view"
}
]
}