For the complete documentation index, see llms.txt. This page is also available as Markdown.

Java Database Connectivity (JDBC)

Create a Depot resource using a JDBC-compatible connection.

To create a JDBC Depot, you must have the following details:

Pre-requisites specific to DataOS

A user with the Tenant Admin, Data Admin, or Data Developer Tenant role can create a Depot.

See Depot: Access control for who can create a Depot and how access to it is managed.

Run this command to see your assigned roles.

dataos-ctl user get
#Expected Output: 
time="2026-03-30T17:49:18+05:30" level=info msg="😃 user get..."
time="2026-03-30T17:49:19+05:30" level=info msg="😃 user get...complete"

     NAME     │        ID         │  TYPE  │        EMAIL         │                  TAGS
──────────────┼───────────────────┼────────┼──────────────────────┼────────────────────────────────────────
 I Am Groot   │ iamgroottmdcio    │ person │ iam.groot@tmdc.io    │ roles:id:ct-onboarding-data-developer,
              │                   │        │                      │ roles:id:user,
              │                   │        │                      │ users:id:iamgroottmdcio

Pre-requisites specific to the source system

  • Database Name: The name of the database you want to connect to. This can be provided by the database administrator or found in the database management interface, where your desired database is listed.

  • Subprotocol Name: The subprotocol specifies the type of database you are connecting to, such as mysql, postgresql, etc. This should match the JDBC driver you're using to establish the connection, and can typically be found in the documentation of the specific database or JDBC driver.

  • Hostname/URL of the Server: The hostname or URL of the server where the database is hosted. This is typically provided by the database administrator or hosting service, and points to the location of your database.

  • Port: The port number through which the database connection is made (e.g., 3306 for MySQL, 5432 for PostgreSQL). This information can also be obtained from the database administrator or found in the configuration of the database server.

  • Parameters: Any additional connection parameters needed for the JDBC connection, such as SSL settings, timeouts, or specific options for the database connection. These can be found in the JDBC driver documentation or obtained from the database administrator if custom configurations are required.

  • Username: The username used to authenticate the JDBC connection. This can be provided by the database administrator or set when the user account is created in the database management system.

  • Password: The password associated with the provided username. This is typically set when the user account is created and must be securely stored or retrieved from a safe location if forgotten.

Create a JDBC Depot

A Depot of type JDBC connects to a database through the JDBC driver and reads from its tables. One Depot covers all schemas visible to the configured user. To create a Depot of type JDBC, follow these steps:

Step 1: Create a Secret for securing JDBC credentials

Create a Secret Resource using the Java Database Connectivity (JDBC) guide.

Step 2: Create a JDBC Depot manifest file

Create a manifest file for your JDBC Depot.

Step 3: Apply the Depot manifest file

Apply the manifest with the DataOS CLI:

Verify the Depot creation

Verify the Depot in two ways:

  • List Depots where you are the owner:

  • List all Depots in the current Tenant:

Delete a Depot

To delete a Depot, use the DataOS CLI:

Specify the Resource type and Depot name in the delete command.

Example:

Last updated

Was this helpful?