> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindsdb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a Data Source

You can save a data sources into a variable using the code below.

```
const db = await MindsDB.Databases.getDatabase('mysql_datasource');
```
