Now that you have created a connection to your Data Warehouse in CARTO, you can start using them to access their data within your code. The way your application accesses data from your CARTO connections is by using Data sources.
A data source in CARTO for Developers defines the data that will be accessed by your application, the credentials (connection) that will be used to retrieve it, and additional parameters to control the data fetching process. Data sources are typically imported from @carto/api-client .
There are several types of data sources, with specific parameters depending on the data type (vector, spatial indexes, raster or boundaries) and the resource type (table, query or tileset):
Once you've added data sources in your application, the next step is to reference them in your CARTO + deck.gl layers to visualize data in your map, or use them to build custom charts and widgets.