Skip to main content

Connection URL Reference

TablePro parses standard database connection URLs for importing connections, opening them directly from a browser or terminal, and configuring SSH tunnels. This page covers every supported scheme, format, and query parameter.

URL Schemes

SchemeDatabase
postgresql://PostgreSQL
postgres://PostgreSQL (alias)
mysql://MySQL
mariadb://MariaDB
sqlite://SQLite
mongodb://MongoDB
mongodb+srv://MongoDB (SRV)
redis://Redis
rediss://Redis with TLS
redshift://Amazon Redshift
mssql://Microsoft SQL Server
sqlserver://Microsoft SQL Server (alias)
oracle://Oracle Database
jdbc:oracle:thin:@//Oracle Database (JDBC thin)
cassandra://Cassandra
scylladb://ScyllaDB
Append +ssh to any scheme (except SQLite) to use an SSH tunnel:
postgresql+ssh://
mysql+ssh://
mariadb+ssh://

Standard Format

scheme://[username[:password]@]host[:port][/database][?param=value&...]
Examples:
postgresql://alice:[email protected]:5432/myapp
mysql://root@localhost/shop
mongodb://user:[email protected]:27017/analytics?authSource=admin
redis://:[email protected]:6379/1
sqlite:///Users/alice/data/local.db
Passwords containing special characters (@, #, %, :) must be percent-encoded. For example, p@ss#word becomes p%40ss%23word.

SSH Tunnel Format

SSH tunnel URLs encode both SSH and database credentials in a single string:
scheme+ssh://[ssh_user@]ssh_host[:ssh_port]/[db_user[:db_pass]@]db_host[:db_port][/database][?params]
Examples:
postgresql+ssh://[email protected]:22/dbuser:dbpass@internal-pg:5432/mydb
mysql+ssh://[email protected]/root:[email protected]/shop
mariadb+ssh://[email protected]/[email protected]/store?usePrivateKey=true
If db_host is omitted, it defaults to 127.0.0.1.

Query Parameters

Connection Identity

ParameterDescriptionExample
nameOverride the connection name shown in the sidebar?name=Production+DB

SSL / TLS

ParameterValuesDescription
sslmodedisable, prefer, require, verify-ca, verify-fullSSL mode (standard PostgreSQL names)
tlsmode04SSL mode as integer: 0=disable, 1=prefer, 2=require, 3=verify-ca, 4=verify-full
Example:
postgresql://user:pass@host/db?sslmode=require
postgresql://user:pass@host/db?tlsmode=2
These parameters open a specific table, view, or schema immediately after connecting.
ParameterDescriptionExample
tableOpen the named table?table=users
viewOpen the named view?view=active_orders
schemaSwitch to this schema before opening (PostgreSQL/Redshift only)?schema=reporting
Example:
postgresql://user:pass@host/mydb?schema=reporting&table=monthly_sales

Filtering

Apply a filter to the opened table automatically.
ParameterDescriptionExample
columnColumn name to filter on?column=status
operationFilter operator (e.g. =, !=, LIKE)?operation=LIKE
valueFilter value?value=active
conditionRaw SQL WHERE condition (overrides column/operation/value)?condition=status%3D'active'+AND+role%3D'admin'
raw and query are accepted as aliases for condition. Example:
postgresql://user:pass@host/mydb?table=orders&column=status&operation==&value=pending
postgresql://user:pass@host/mydb?table=orders&condition=total%3E1000

Appearance

ParameterDescriptionExample
statusColorAssign a color to the connection (hex, matched to nearest palette color)?statusColor=FF3B30
envAssign an existing tag by name?env=production
Example:
postgresql://user:pass@host/db?statusColor=FF3B30&env=production

MongoDB

ParameterDescription
authSourceAuthentication database (defaults to admin)
Example:
mongodb://user:pass@host:27017/mydb?authSource=admin

Redis

The path component sets the database index (0—15). The rediss:// scheme automatically enables TLS.
redis://:password@host:6379/2       # database index 2
rediss://:password@host:6380        # TLS, default index 0

Cassandra / ScyllaDB

The path component sets the default keyspace. Both cassandra:// and scylladb:// schemes use the same format.
cassandra://user:pass@host:9042/my_keyspace
scylladb://user:pass@host:9042/my_keyspace
cassandra://host:9042                        # no auth, no default keyspace

SSH Tunnel

ParameterDescription
usePrivateKeytrue to use key-based SSH authentication instead of password
Example:
postgresql+ssh://ubuntu@bastion/[email protected]/mydb?usePrivateKey=true

Opening URLs from Browser or Terminal

Launch and connect from browser/terminal:
open "postgresql://user:pass@localhost:5432/mydb"
open "mysql://root@localhost/shop?table=products"
open "postgresql+ssh://ubuntu@bastion/user:[email protected]/mydb?usePrivateKey=true"
Uses saved connection if matched, otherwise temporary session. To save, use Import from URL in New Connection form.