Working with Connections
The Connections subsection within Data Management allows you to securely store and manage credentials for accessing various databases. These connections serve as a foundation for registering data sources in the Data Catalog and building data-driven applications.Supported Database Types
Kosmoy Studio currently supports the following database types:- SQL Databases:
- PostgreSQL
- Vector Databases:
- PGVector
- Weaviate
- Pinecone
Creating a Connection
-
Navigate to Connections:
- Click on the “Data Management” menu in the left-hand navigation bar.
- Select “Connections” from the expanded menu.
- Add a New Connection: Click the ”+ ADD” button located in the upper right corner of the Connections section.
- Select Database Type: Choose the type of database you want to connect to (SQL or Vector).
- Select Provider: Choose the specific database provider from the dropdown menu (e.g., PostgreSQL for SQL, PGVector for Vector).
-
Configure Connection Parameters: Enter the required connection details for the selected database type and provider. These parameters will vary depending on the provider but typically include:
- Host: The hostname or IP address of your database server.
- Port: The port number used to connect to the database.
- Database Name: The name of the database you want to connect to.
- Username: Your database username.
- Password: Your database password.
- (Other provider-specific parameters)
- Click “Next”: Proceed to the next step.
- Name and Describe the Connection: Give your connection a unique name and an optional description.
- Click “Review”: Review the connection details.
- Click “Create”: Create the connection.
Connection Cards
The Connections section displays each created connection as a card. Each card shows:- Database Type Icon: An icon representing the type of database (e.g., SQL, Vector).
- Connection Name: The name you assigned to the connection.
- Description: The description you provided for the connection.
- Edit Icon (Pencil): Click this icon to update the connection’s parameters, name, or description (only if the connection is not in use).
- Delete Icon (Trash Bin): Click this icon to remove the connection (only if the connection is not in use).
Connection Usage Restrictions
You cannot edit or delete a connection if it is currently referenced by other entities within Kosmoy Studio. This includes being used in:- Data Catalog (Databases)
- Any other Kosmoy Studio component that references connections.
Updating a Connection
You can update the parameters, name, and description of a registered connection, provided it is not currently referenced by any other component.-
Navigate to Connections:
- Click on the “Data Management” icon in the left-hand navigation bar.
- Select “Connections” from the expanded menu.
- Locate the Connection Card: Find the card for the connection you want to update.
- Click the Edit (Pencil) Icon: This will open the update dialog.
- Modify Connection Parameters: Update the connection’s parameters (host, port, database name, username, password, etc.) as needed. You can also modify the name and description.
- Click “Save”: Save the changes.
Removing a Connection
You can remove a registered connection if it’s no longer needed. However, you cannot delete a connection that is currently referenced by any other component.-
Navigate to Connections:
- Click on the “Data Management” icon in the left-hand navigation bar.
- Select “Connections” from the expanded menu.
- Locate the Connection Card: Find the card for the connection you want to remove.
- Click the Delete (Trash Bin) Icon: This will trigger a confirmation prompt.
- Confirm Deletion: Confirm that you want to delete the connection.