Browse Source

docs: integrations (#9171)

* docs: integrations framework

* docs: integrations (wip)

* docs: wip

* docs: integrations & connections

* docs: remove database folder

* docs: warning about access permissions

* docs: add new data source

* docs: meta sync

* docs: actions on data soruce

* docs: update links

* misc: data => Data

* docs: fix review comments
pull/9174/head
Raju Udava 5 months ago committed by GitHub
parent
commit
4bb8911171
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      packages/nc-gui/components/dashboard/settings/data-sources/SupportedDocs.vue
  2. 4
      packages/nc-gui/components/workspace/integrations/ConnectionsTab.vue
  3. 9
      packages/nc-gui/components/workspace/integrations/IntegrationsTab.vue
  4. 8
      packages/nc-gui/components/workspace/integrations/SupportedDocs.vue
  5. 2
      packages/nc-gui/components/workspace/integrations/forms/EditOrAddDatabase.vue
  6. 32
      packages/nc-gui/utils/syncDataUtils.ts
  7. 29
      packages/noco-docs/docs/095.integrations/010.overview.md
  8. 101
      packages/noco-docs/docs/095.integrations/020.create-connection.md
  9. 61
      packages/noco-docs/docs/095.integrations/030.actions-on-connection.md
  10. 8
      packages/noco-docs/docs/095.integrations/_category_.json
  11. 25
      packages/noco-docs/docs/100.data-sources/010.data-source-overview.md
  12. 65
      packages/noco-docs/docs/100.data-sources/020.connect-to-data-source.md
  13. 17
      packages/noco-docs/docs/100.data-sources/030.sync-with-data-source.md
  14. 58
      packages/noco-docs/docs/100.data-sources/040.actions-on-data-sources.md
  15. BIN
      packages/noco-docs/static/img/v2/data-source/data-source-1.png
  16. BIN
      packages/noco-docs/static/img/v2/data-source/data-source-2.png
  17. BIN
      packages/noco-docs/static/img/v2/data-source/data-source-3.png
  18. BIN
      packages/noco-docs/static/img/v2/data-source/data-source-audit.png
  19. BIN
      packages/noco-docs/static/img/v2/data-source/data-source-edit.png
  20. BIN
      packages/noco-docs/static/img/v2/data-source/data-source-erd.png
  21. BIN
      packages/noco-docs/static/img/v2/data-source/data-source-list.png
  22. BIN
      packages/noco-docs/static/img/v2/data-source/data-source-meta-sync-1.png
  23. BIN
      packages/noco-docs/static/img/v2/data-source/data-source-meta-sync-2.png
  24. BIN
      packages/noco-docs/static/img/v2/data-source/data-source-permissions.png
  25. BIN
      packages/noco-docs/static/img/v2/data-source/data-source-remove-2.png
  26. BIN
      packages/noco-docs/static/img/v2/data-source/data-source-remove.png
  27. BIN
      packages/noco-docs/static/img/v2/data-source/data-source-uiacl.png
  28. BIN
      packages/noco-docs/static/img/v2/data-source/data-source-visibility.png
  29. BIN
      packages/noco-docs/static/img/v2/integrations/connection-list-actions.png
  30. BIN
      packages/noco-docs/static/img/v2/integrations/connection-url-2.png
  31. BIN
      packages/noco-docs/static/img/v2/integrations/connection-url.png
  32. BIN
      packages/noco-docs/static/img/v2/integrations/connections-delete-confirmation.png
  33. BIN
      packages/noco-docs/static/img/v2/integrations/connections-list.png
  34. BIN
      packages/noco-docs/static/img/v2/integrations/integrations-1.png
  35. BIN
      packages/noco-docs/static/img/v2/integrations/integrations-2.png
  36. BIN
      packages/noco-docs/static/img/v2/integrations/mysql-connection.png
  37. BIN
      packages/noco-docs/static/img/v2/integrations/postgres-connection.png

8
packages/nc-gui/components/dashboard/settings/data-sources/SupportedDocs.vue

@ -2,15 +2,15 @@
const supportedDocs = [
{
title: 'Integrations',
href: '',
href: 'https://docs.nocodb.com/category/integrations',
},
{
title: 'Create new connection',
href: '',
href: 'https://docs.nocodb.com/integrations/create-connection',
},
{
title: 'Add new data source',
href: '',
title: 'Add new Data source',
href: 'https://docs.nocodb.com/data-sources/connect-to-data-source',
},
] as {
title: string

4
packages/nc-gui/components/workspace/integrations/ConnectionsTab.vue

@ -233,7 +233,9 @@ onKeyStroke('ArrowDown', onDown)
<div class="text-sm font-normal text-gray-600">
<div>
Manage connections for your integrations.
<a target="_blank" rel="noopener noreferrer"> Learn more </a>
<a target="_blank" href="https://docs.nocodb.com/integrations/actions-on-connection" rel="noopener noreferrer">
Learn more
</a>
</div>
</div>
<div class="flex items-center gap-3">

9
packages/nc-gui/components/workspace/integrations/IntegrationsTab.vue

@ -168,7 +168,12 @@ const handleAddIntegration = (category: IntegrationCategoryType, integration: In
>
<div class="flex-1">
<div class="text-sm font-normal text-gray-600 mb-2">
<div>Connect integrations with NocoDB. <a target="_blank" rel="noopener noreferrer"> Learn more </a></div>
<div>
Connect integrations with NocoDB.
<a href="https://docs.nocodb.com/category/integrations" target="_blank" rel="noopener noreferrer"
>Learn more</a
>
</div>
</div>
<a-input
v-model:value="searchQuery"
@ -183,7 +188,7 @@ const handleAddIntegration = (category: IntegrationCategoryType, integration: In
</a-input>
</div>
<NcButton type="ghost" size="small" class="!text-primary" @click="requestIntegration.isOpen = true">
Request integration
Request Integration
</NcButton>
</div>
</div>

8
packages/nc-gui/components/workspace/integrations/SupportedDocs.vue

@ -2,15 +2,15 @@
const supportedDocs = [
{
title: 'Integrations',
href: '',
href: 'https://docs.nocodb.com/category/integrations',
},
{
title: 'Create new connection',
href: '',
href: 'https://docs.nocodb.com/integrations/create-connection',
},
{
title: 'Add new data source',
href: '',
title: 'Add new Data source',
href: 'https://docs.nocodb.com/data-sources/connect-to-data-source',
},
] as {
title: string

2
packages/nc-gui/components/workspace/integrations/forms/EditOrAddDatabase.vue

@ -1087,7 +1087,7 @@ watch(
</template>
<div class="flex flex-col gap-2">
<div>Connection JSON</div>
<div>Edit Connection JSON</div>
<div class="border-1 border-gray-200 !rounded-lg shadow-sm overflow-hidden">
<MonacoEditor v-model="customJsonFormState" class="nc-connection-json-editor h-[400px] w-full" />
</div>

32
packages/nc-gui/utils/syncDataUtils.ts

@ -30,7 +30,7 @@ export const integrationCategories: IntegrationCategoryItemType[] = [
iconStyle: {
color: '#17803D',
},
isAvailable: true
isAvailable: true,
},
{
title: 'objects.integrationCategories.communication',
@ -166,12 +166,6 @@ export const allIntegrations: IntegrationItemType[] = [
icon: iconMap.dataBricks,
categories: [IntegrationCategoryType.DATABASE],
},
{
title: 'objects.syncData.microsoftAccess',
value: SyncDataType.MICROSOFT_ACCESS,
icon: iconMap.microsoftAccess,
categories: [IntegrationCategoryType.DATABASE],
},
{
title: 'objects.syncData.mssqlServer',
value: ClientType.MSSQL,
@ -184,12 +178,6 @@ export const allIntegrations: IntegrationItemType[] = [
icon: iconMap.oracle,
categories: [IntegrationCategoryType.DATABASE],
},
{
title: 'objects.syncData.tableau',
value: SyncDataType.TABLEAU,
icon: iconMap.tableau,
categories: [IntegrationCategoryType.DATABASE],
},
// Communication
{
@ -291,9 +279,15 @@ export const allIntegrations: IntegrationItemType[] = [
// CRM
{
title: 'objects.syncData.microsoftDynamics365',
value: SyncDataType.MICROSOFT_DYNAMICS_365,
icon: iconMap.microsoftDynamics365,
title: 'objects.syncData.salesforce',
value: SyncDataType.SALESFORCE,
icon: iconMap.salesforce,
categories: [IntegrationCategoryType.CRM],
},
{
title: 'objects.syncData.hubspot',
value: SyncDataType.HUBSPOT,
icon: iconMap.hubspot,
categories: [IntegrationCategoryType.CRM],
},
{
@ -303,9 +297,9 @@ export const allIntegrations: IntegrationItemType[] = [
categories: [IntegrationCategoryType.CRM],
},
{
title: 'objects.syncData.salesforce',
value: SyncDataType.SALESFORCE,
icon: iconMap.salesforce,
title: 'objects.syncData.microsoftDynamics365',
value: SyncDataType.MICROSOFT_DYNAMICS_365,
icon: iconMap.microsoftDynamics365,
categories: [IntegrationCategoryType.CRM],
},
{

29
packages/noco-docs/docs/095.integrations/010.overview.md

@ -0,0 +1,29 @@
---
title: 'Overview'
description: 'Overview of the integrations available in NocoDB'
tags: ['Integrations', 'Overview']
keywords: ['Integrations overview', 'Integrations sync', 'Integrations access control', 'Integrations re-config']
---
**Integrations** enable seamless connectivity between NocoDB and external platforms. This helps consolidate your data scattered across multiple silos into one common platform.
You can add multiple instances of an integration within a single workspace, with each instance referred to as a **Connection**. Once established, these connections allow you to utilize data from the integrated platforms in your NocoDB base. If applicable, changes made in NocoDB can also be synchronized back to the external platforms.
Currently, NocoDB supports integrations with databases such as _MySQL_ and _PostgreSQL_, with additional integrations planned for the future. If you have a specific integration in mind, please let us know by submitting your request using "**Request Integration**" option in the `Integrations` menu.
:::info
- In Cloud hosted solutions, Integrations menu will be accessible for Workspace Owners & Workspace Creators.
- In Self-hosted solutions (OSS), Integrations menu will be accessible for Organization Admins & Organization Creators.
:::
All activities related to integrations and their connections can be efficiently managed from the `Integrations` menu, conveniently located in the left sidebar.
![Integrations](/img/v2/integrations/integrations-1.png)
Learn more about working with integrations in the following sections:
- [Create a new connection](/integrations/create-connection)
- [Edit connection](/integrations/edit-connection)
- [Remove connection](/integrations/remove-connection)

101
packages/noco-docs/docs/095.integrations/020.create-connection.md

@ -0,0 +1,101 @@
---
title: 'Connect to an Integration'
description: 'Learn how to create a new connection in NocoDB.'
tags: ['Integrations', 'Create', 'Connection', 'External', 'PG', 'MySQL']
keywords: ['NocoDB create connection', 'create connection', 'external connection', 'PG connection', 'MySQL connection']
---
Users with Workspace Owner or Workspace Creator roles can create a new connection in NocoDB. To create a new connection, follow the steps below:
![Integrations](/img/v2/integrations/integrations-2.png)
1. Click on the `Integrations` menu in the left sidebar.
2. From the list, click on the integration you want to connect to
3. In the subsequent modal, provide required details. Please refer to the integration-specific documentation for more details.
- [PostgreSQL](#postgresql)
- [MySQL](#mysql)
Connection to an integration thus created will be listed in the `Connections` tab under the `Integrations` menu.
:::info
Note that, there is no ownership concept for connections in NocoDB. All the connections created in a workspace are accessible to all eligible users in that workspace.
- Users with **Workspace Creator+** permissions can create, edit, duplicate, and delete connections
- Users with **Base Creator+** permissions can create data sources using database connections
:::
## Database Integrations
### PostgreSQL
This section covers the details required to create a new PostgreSQL connection in NocoDB.
![PostgreSQL Connection](/img/v2/integrations/postgres-connection.png)
1. **Connection Name**: Name for this connection for display on NocoDB UI
2. Key in following database connection configuration details
- **Host Address**: Hostname of the PostgreSQL server
- **Port Number**: Port number of the PostgreSQL server, default is 5432
- **Username**: Username to connect to the PostgreSQL server, default is "postgres"
- **Password**: Password to connect to the PostgreSQL server
- [Optional] **Database**: Name of the PostgreSQL database to connect to
- [Optional] **Schema Name**: Name of the schema to connect to
:::info
Note, Database name & Schema name are optional fields when creating a connection. If provided, these details will be filled in by default when creating a new data source using this connection.
:::
3. **Connection parameters**: required if any, can be added as Key-Value pairs
4. **SSL Mode**: This step is required if the connection required is TLS/MTLS for MITM protection. Toggle to enable SSL for the connection & select the SSL mode
- **Client Certificate**: Upload the client certificate file
- **Client Key**: Upload the client key file
- **Root CA**: Upload the Root CA file
5. **Test Database Connection**: Click to verify the connection
6. **Create Connection**: Click to save the data source
The connection thus created will be listed in the `Connections` tab under the `Integrations` menu.
:::note
You can autofill the connection details if you have a connection URL.
![Connection URL](/img/v2/integrations/connection-url-2.png)
:::
:::note
The entire connection parameters can be viewed in JSON form by clicking on the **Advanced Options** and edited as required by database server type.
**Example**: When SSL mode set to "Required-Identity," if the server certificate's common name (cname) differs from the actual DNS/IP used for connection, the connection will fail. To resolve, add "servername" property with same cname value under the SSL section. Additional details are available at [knex configuration options](https://knexjs.org/guide/#configuration-options).
:::
### MySQL
This section covers the details required to create a new MySQL connection in NocoDB.
![MySQL Connection](/img/v2/integrations/mysql-connection.png)
1. **Connection Name**: Name for this connection for display on NocoDB UI
2. Key in following database connection configuration details
- **Host Address**: Hostname of the MySQL server
- **Port Number**: Port number of the MySQL server, default is 3306
- **Username**: Username to connect to the MySQL server, default is "root"
- **Password**: Password to connect to the MySQL server
- [Optional] **Database**: Name of the MySQL database to connect to
:::info
Note, Database name is optional when creating a connection. If provided, it will be filled in by default when creating a new data source using this connection.
:::
3. **Connection parameters**: required if any, can be added as Key-Value pairs
4. **SSL Mode**: This step is required if the connection required is TLS/MTLS for MITM protection. Toggle to enable SSL for the connection & select the SSL mode
- **Client Certificate**: Upload the client certificate file
- **Client Key**: Upload the client key file
- **Root CA**: Upload the Root CA file
5. **Test Database Connection**: Click to verify the connection
6. **Create Connection**: Click to save the data source
The connection thus created will be listed in the `Connections` tab under the `Integrations` menu.
:::note
You can autofill the connection details if you have a connection URL.
![Connection URL](/img/v2/integrations/connection-url-2.png)
:::
:::note
The entire connection parameters can be viewed in JSON form by clicking on the **Advanced Options** and edited as required by database server type.
**Example**: When SSL mode set to "Required-Identity," if the server certificate's common name (cname) differs from the actual DNS/IP used for connection, the connection will fail. To resolve, add "servername" property with same cname value under the SSL section. Additional details are available at [knex configuration options](https://knexjs.org/guide/#configuration-options).
:::

61
packages/noco-docs/docs/095.integrations/030.actions-on-connection.md

@ -0,0 +1,61 @@
---
title: 'Actions on connection'
description: 'Learn how to perform actions (edit, duplicate, delete) on a connection in NocoDB.'
tags: ['Integrations', 'Actions', 'Connection', 'Edit', 'Duplicate', 'Delete']
keywords: ['NocoDB connection', 'edit connection', 'duplicate connection', 'delete connection']
---
## List
To list all the connections in NocoDB, follow the steps below:
1. Select the **Integrations** menu in the left sidebar.
2. Click on the **Connections** tab
![Connections List](/img/v2/integrations/connections-list.png)
Connections list provides a consolidated view of all the connections in this workspace. The details include
- Connection name, as specified during creation
- Connection type, i.e., the integration type [Example: PG, MySQL]
- Date added, specifies the date when this connection was created
- Added by, specifies the user who created this connection
- Usage, depends on the type of the integration
- for database type integrations, this would specify the number of data sources using this connection
:::info
Note that, there is no ownership concept for connections in NocoDB. All the connections created in a workspace are accessible to all eligible users in that workspace.
- Users with Workspace Creator+ permissions can create, edit, duplicate, and delete connections
- Users with Base Creator+ permissions can create data sources using these connections
:::
## Edit
To edit a connection in NocoDB, Open the [Connections list](#list) and follow the steps below:
- Click on the Connection you want to edit
- Modify the required details in the subsequent modal
- **Test connection** if applicable
- Applicable if you have updated the connection details for a database integration
- Click on the **Update connection** button to save the changes
## Duplicate
To duplicate a connection in NocoDB, Open the [Connections list](#list) and follow the steps below:
1. Click on the Action menu (three dots) against the Connection you want to duplicate
2. Select the **Duplicate** option from the dropdown
Duplicated base will be created with the same connection details as the original connection - with connection name for the duplicated entry suffixed with **_copy**.
![Duplicate Connection](/img/v2/integrations/connection-list-actions.png)
## Delete
To delete a connection in NocoDB, Open the [Connections list](#list) and follow the steps below:
1. Click on the Action menu (three dots) against the Connection you want to delete
2. Select the **Delete** option from the dropdown
3. Click on the **Delete** button in the subsequent modal to confirm deletion
![Delete Connection](/img/v2/integrations/connection-list-actions.png)
![Delete Connection](/img/v2/integrations/connections-delete-confirmation.png)
:::warning
Note that, deleting a database connection **will remove all the associated data sources using this connection** from all the bases in this workspace.
:::

8
packages/noco-docs/docs/095.integrations/_category_.json

@ -0,0 +1,8 @@
{
"label": "Integrations",
"collapsible": true,
"collapsed": true,
"link": {
"type": "generated-index"
}
}

25
packages/noco-docs/docs/100.data-sources/010.data-source-overview.md

@ -10,33 +10,24 @@ keywords: ['Data Sources overview', 'Data Sources sync', 'Data Sources access co
NocoDB allows you to connect to external data sources and get a unified spreadsheet view of your data. Activities related to external data sources can be managed from `Data Sources` tab in `Base dashboard`.
`Data Sources` tab includes following functionalities
1. Connect/manage external data source
1. Connect / manage external data source
2. UI Access Control
3. Relations
4. Audit logs
:::info
Currently only one external data source can be added per project.
:::
3. Relations (ERD View)
4. Meta Sync
## Accessing `Data Sources`
1. Access Base context menu by clicking on the `...` in the left sidebar against the base name
2. Click on `Settings` tab
3. In the popup modal, click on `Data Sources` tab
1. Click on Base name in the left sidebar to access **Base homepage**
2. Select **Data Sources** tab
![data source](/img/v2/data-source/data-source-1.png)
![data source](/img/v2/data-source/data-source-2.png)
![data source](/img/v2/data-source/data-source-list.png)
Learn more about working with Data sources in the following sections:
Learn more about **working with Data sources** in the following sections:
- [Connect to a Data source](/data-sources/connect-to-data-source)
- [Sync changes externally made to data source](/data-sources/sync-with-data-source)
- [Edit external database configuration parameters](/data-sources/actions-on-data-sources#edit-external-database-configuration-parameters)
- [Remove Data source](/data-sources/actions-on-data-sources#remove-external-data-source)
- [Hide Data source](/data-sources/actions-on-data-sources#data-source-visibility)
- [Hide Data source](/data-sources/actions-on-data-sources#data-source-visibility)
- [Relations within a data source](/data-sources/actions-on-data-sources#relations)
- [Audit logs](/data-sources/actions-on-data-sources#audit-logs)
- [UI Access Control](/data-sources/actions-on-data-sources#ui-access-control)

65
packages/noco-docs/docs/100.data-sources/020.connect-to-data-source.md

@ -5,50 +5,27 @@ tags: ['Data Sources', 'Connect', 'External', 'PG', 'MySQL', 'mtls', 'tls', 'ssl
keywords: ['NocoDB data source', 'connect data source', 'external data source', 'PG data source', 'MySQL data source']
---
To connect to an external data source, follow the steps below:
1. Access the Base context menu by clicking on the `...` in the left sidebar against the base name
2. Click on `Settings` tab
3. In the popup modal, click on `Data Sources` tab
4. Click on `+ New Data Source` button
5. On the input modal, provide the following details:
| Field Name | Description |
|---------------|--------------------------------------------------------------------------------------|
| Source Name | Name for this data source for display on NocoDB UI |
| Database Type | Type of the data source. Currently, NocoDB supports PostgreSQL & MySQL data sources. |
| Host Address | Hostname of the data source |
| Port Number | Port number of the data source |
| Username | Username to connect to the database |
| Password | Password to connect to the database |
| Database | Name of the database to connect to |
| Schema name | Name of the schema to connect to |
5a. Optionally, if the connection required is TLS/MTLS for MITM protection, follow these additional steps below:
- Click on `SSL & Advanced Parameters`
- Select `SSL Mode` and upload the client certificate, client key, and Root CA files by clicking on the file.
\
Note: The entire connection parameters can be viewed in json form by clicking on the "Edit connection JSON" and edited as required by database server type.\
\
Example: In PostgreSQL when SSL mode set to "Required-Identity," if the server certificate's common name (cname) differs from the actual DNS/IP used for connection, the connection will fail.\
To resolve, add "servername" property with same cname value under the SSL section. Additional details are available at [knex configuration options](https://knexjs.org/guide/#configuration-options).
6. Click on the `Test Database Connection` button to verify the connection
7. Wait for the connection to be verified.
- After test is successful, `Counnect to Data Source` button will be enabled.
- Click on `Connect to Data Source` button to save the data source.
![data source-1](/img/v2/data-source/ds-connect-1.png)
![data source-2](/img/v2/data-source/ds-connect-2.png)
![data source-3](/img/v2/data-source/ds-connect-3.png)
![data source-4](/img/v2/data-source/ds-connect-4.png)
To connect an external Database as a new Data Source for NocoDB, follow the steps below:
1. Click on the Base name in the left sidebar to access the **Base homepage**
2. Click **Connect External Data** button
3. Provide a name to the data source
4. Select connection to pick credentials for the database
(a) Select connection from the list of available connections in the dropdown
(b) Click on `+ New connection` button to create a new connection instead
5. Configure / Change database & schema details as required. If default database & schema details were provided during connection creation, these details will be pre-filled.
6. [Configure permissions](#configuring-permissions) for the data source
7. Click on `Test Database Connection` button to verify the connection
8. Click on `Add Source` button to save the data source
![data source](/img/v2/data-source/data-source-1.png)
![data source](/img/v2/data-source/data-source-2.png)
![data source](/img/v2/data-source/data-source-3.png)
:::info
Option (4b) to create a new connection is available only if the user has the required permissions to create new connection (Workspace Creator+).
:::
## Configuring Permissions
This section covers the settings available when configuring data source permissions. These settings determine the level of access and modifications allowed on the connected database.

17
packages/noco-docs/docs/100.data-sources/030.sync-with-data-source.md

@ -5,17 +5,18 @@ tags: ['Data Sources', 'Sync', 'External', 'PG', 'MySQL']
keywords: ['NocoDB data source', 'connect data source', 'external data source', 'PG data source', 'MySQL data source']
---
Access `Data Sources` tab in the `Base Settings` to sync changes done in the external data source with NocoDB.
1. Select the data source that you wish to sync metadata for
2. Click on the `Meta Sync` button listed under `Actions` column for the data source that you wish to sync metadata for
3. Click on the `Reload` button to refresh Sync state (Optional)
4. Any changes to the metadata identified will be listed in the `Sync State` column
5. Click on `Sync Now` button to sync the metadata changes
To sync changes done in the external data source with NocoDB, Open [Data Sources](010.data-source-overview.md#accessing-data-sources) tab in the Base Settings, select the data source you wish to sync metadata for, and follow the steps below:
1. Click on the `Meta Sync` tab
2. Click on the `Reload` button to refresh Sync state (Optional)
3. Any changes to the metadata identified will be listed in the `Sync State` column
4. Click on `Sync Now` button to sync the metadata changes
5. Once the sync is complete, you can see the updated state in the `Sync State` column
![sync metadata](/img/v2/data-source/data-source-meta-sync-1.png)
![sync metadata](/img/v2/data-source/data-source-meta-sync-1.png)
![sync metadata](/img/v2/data-source/data-source-meta-sync-2.png)
After the sync is complete, you can see the updated state in the `Sync State` column.
Sync modal also marks `Tables metadata is in Sync` in the header.
![post sync](/img/v2/data-source/data-source-post-sync.png)

58
packages/noco-docs/docs/100.data-sources/040.actions-on-data-sources.md

@ -5,35 +5,42 @@ tags: ['Data sources', 'UI ACL', 'Audit', 'Relations', 'Edit', 'Remove', 'Visibi
keywords: ['NocoDB data source', 'UI ACL', 'Audit logs', 'Relations', 'Edit', 'Unlink', 'Visibility']
---
## Edit external database configuration parameters
- Access `Data Sources` tab in the `Base Settings`
- Click on `Connection Details` tab
- Re-configure database credentials as required
## Edit Data Source parameters
- Open [Data Sources](010.data-source-overview.md#accessing-data-sources) tab in the Base Settings homepage
- Click on the data source that you wish to edit
- Re-configure data source parameters as required. The following parameters can be edited:
1. Data source name
2. Database & Schema
3. Data source access permissions
- Click on `Submit` button to save the changes
:::info
Please make sure database configuration parameters are valid. Any incorrect parameters could lead to schema loss!
:::note
To change database connection configuration parameters (like host, port, and such) use [Edit connection](/integrations/actions-on-connection#edit) option. Edit connection option is available only for the users with Workspace Creator+ permissions.
:::
![edit-data-source](/img/v2/data-source/data-source-edit.png)
## Remove data source
- Access `Data Sources` tab in the `Base Settings`
- Click on `Delete` icon listed under `Actions` column for the data source that you wish to remove
Open [Data Sources](010.data-source-overview.md#accessing-data-sources) tab in the Base Settings homepage
1. Click on Actions button (three dots) against the data source that you wish to remove
2. Select `Remove` option from the dropdown
![datasource unlink](/img/v2/data-source/data-source-remove.png)
![datasource unlink](/img/v2/data-source/data-source-remove.png)
![datasource unlink](/img/v2/data-source/data-source-remove-2.png)
:::note
Unlinking a data source will not delete the external data source. It will only remove the data source from the current project.
Removing a data source will not delete the external data source. It will only remove the data source from the current base.
:::
## Data source visibility
- Access `Data Sources` tab in the `Base Settings`
- Open [Data Sources](010.data-source-overview.md#accessing-data-sources) tab in the Base Settings homepage
- Toggle radio button listed under `Visibility` column for the data source that you wish to hide/un-hide
![datasource visibility](/img/v2/data-source/data-source-hide.png)
![datasource visibility](/img/v2/data-source/data-source-visibility.png)
## UI Access Control
@ -42,18 +49,17 @@ Unlinking a data source will not delete the external data source. It will only r
UI Access Control is available only in Open-Source version of NocoDB.
:::
Access `Data Sources` tab in the `Base Settings` to manage UI access control for the data source.
1. Click on `UI ACL` button listed under `Actions` column for the data source that you wish to manage UI access control for
2. On the UI ACL modal, you can see the list of tables available in the data source as rows & roles available as columns. Toggle checkboxes to enable/disable access to tables for specific roles.
Open [Data Sources](010.data-source-overview.md#accessing-data-sources) tab in the Base Settings homepage, select the data source that you wish to configure UI ACL for and follow the steps below:
1. Select `UI ACL` tab
2. You can see the list of views & tables available in the data source as rows & roles available as columns. Toggle checkboxes to enable/disable access to tables for specific roles.
3. Click on `Save` button to save the changes
![ui acl](/img/v2/data-source/data-source-uiacl.png)
## Audit logs
Access `Data Sources` tab in the `Base Settings` to access Audit logs for the data source.
- Open [Data Sources](010.data-source-overview.md#accessing-data-sources) tab in the Base Settings homepage
- Click on `Default` datasource & then
- Access `Audit` tab to view the audit logs.
@ -64,17 +70,21 @@ Audit logs are not available for external data source connections.
:::
## Relations
Access `Data Sources` tab in the `Base Settings` to access Relations view for the data source.
- Open [Data Sources](010.data-source-overview.md#accessing-data-sources) tab in the Base Settings homepage
- Select the data source that you wish to access ERD (Relations view) for
- Click on `ERD` tab
- Click on `ERD View` tab
![relations](/img/v2/data-source/data-source-erd.png)
### Junction table names within Relations
[//]: # (### Junction table names within Relations)
[//]: # ()
[//]: # (- Enable `Show M2M Tables` within `Project Settings` menu)
[//]: # (- Double-click on `Show Fields` to see additional checkboxes get enabled.)
- Enable `Show M2M Tables` within `Project Settings` menu
- Double-click on `Show Fields` to see additional checkboxes get enabled.
- Enabling which you should be able to see junction tables and their table names.
[//]: # ( - Enabling which you should be able to see junction tables and their table names.)
![image](/img/v2/data-source/junction-table.png)
[//]: # ()
[//]: # (![image]&#40;/img/v2/data-source/junction-table.png&#41;)

BIN
packages/noco-docs/static/img/v2/data-source/data-source-1.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 195 KiB

After

Width:  |  Height:  |  Size: 205 KiB

BIN
packages/noco-docs/static/img/v2/data-source/data-source-2.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 237 KiB

BIN
packages/noco-docs/static/img/v2/data-source/data-source-3.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 175 KiB

After

Width:  |  Height:  |  Size: 316 KiB

BIN
packages/noco-docs/static/img/v2/data-source/data-source-audit.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 323 KiB

After

Width:  |  Height:  |  Size: 307 KiB

BIN
packages/noco-docs/static/img/v2/data-source/data-source-edit.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 KiB

After

Width:  |  Height:  |  Size: 371 KiB

BIN
packages/noco-docs/static/img/v2/data-source/data-source-erd.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 403 KiB

After

Width:  |  Height:  |  Size: 492 KiB

BIN
packages/noco-docs/static/img/v2/data-source/data-source-list.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

BIN
packages/noco-docs/static/img/v2/data-source/data-source-meta-sync-1.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 272 KiB

BIN
packages/noco-docs/static/img/v2/data-source/data-source-meta-sync-2.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 KiB

After

Width:  |  Height:  |  Size: 265 KiB

BIN
packages/noco-docs/static/img/v2/data-source/data-source-permissions.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 292 KiB

After

Width:  |  Height:  |  Size: 307 KiB

BIN
packages/noco-docs/static/img/v2/data-source/data-source-remove-2.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

BIN
packages/noco-docs/static/img/v2/data-source/data-source-remove.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 166 KiB

BIN
packages/noco-docs/static/img/v2/data-source/data-source-uiacl.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 330 KiB

After

Width:  |  Height:  |  Size: 242 KiB

BIN
packages/noco-docs/static/img/v2/data-source/data-source-visibility.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

After

Width:  |  Height:  |  Size: 163 KiB

BIN
packages/noco-docs/static/img/v2/integrations/connection-list-actions.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB

BIN
packages/noco-docs/static/img/v2/integrations/connection-url-2.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

BIN
packages/noco-docs/static/img/v2/integrations/connection-url.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 KiB

BIN
packages/noco-docs/static/img/v2/integrations/connections-delete-confirmation.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

BIN
packages/noco-docs/static/img/v2/integrations/connections-list.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

BIN
packages/noco-docs/static/img/v2/integrations/integrations-1.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

BIN
packages/noco-docs/static/img/v2/integrations/integrations-2.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

BIN
packages/noco-docs/static/img/v2/integrations/mysql-connection.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

BIN
packages/noco-docs/static/img/v2/integrations/postgres-connection.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 KiB

Loading…
Cancel
Save