Connection - URI attribute


URI is a mandatory attribute of a connection and is also known as the connection string

It's a string that defines the most important connection properties such as:

  • the scheme: the technology used to connect
  • the host: the host where the system is located
  • the port: the port where the system is reachable on the host
  • the database: the database name

The URI is system dependent and therefore should be looked in the documentation page of each system.

This is the property that defines the connection to a system

The URI is also known as:


Example of URI with with the tabli connection list command where you can see the howtos connection.

tabli connection list
Name            Uri                                                                       
-------------   -----------------------------------------------------------------------   
cd              file:///C:/Users/gerardnico/                                              
entity          file:///D:/code/bytle-mono/db-gen-entities/src/main/resources/entity/     
howto           file:///D:/code/bytle-mono/db-website/src/doc/howto/                      
memory          mem                                                                       
mysql           jdbc:mysql://[host]:[port]/[database]                                     
oracle          jdbc:oracle:thin:@localhost:1521:xe                                       
postgres        jdbc:postgresql://localhost:5432/postgres                                 
sqlite          jdbc:sqlite:///C:/Users/gerardnico/AppData/Local/tabli/sqlite.db          
sqlite_target   jdbc:sqlite:///C:/Users/gerardnico/AppData/Local/tabli/sqlite_target.db   
sqlserver       jdbc:sqlserver://localhost;databaseName=AdventureWorks;                   
temp            file:///C:/Users/GERARD~1/AppData/Local/Temp/                             
tpcds           tpcds                                                                     
tpcds_query     file:///D:/code/bytle-mono/db-jdbc/src/main/sql/tpcds/

Related HowTo
How to install and configure Bash On Windows ?

This section helps you to get a bash based terminal up and running on your Windows computer. On linux system, there is no installation needed because bash is the default shell (located at /bin/bash/)...
How to list connections

This How-To shows you how to list connections with the tabli connection list command

Task Runner