Skip to main content
An import link opens a review sheet before saving a connection. It carries connection settings, not passwords or approval to use local credentials.
name, host and type are required. socket can stand in for host. type takes any registered database type name, case-insensitive: MySQL, PostgreSQL, MongoDB, Redis, ClickHouse, Oracle, DuckDB, Cassandra, and every other type a loaded plugin registers. Enum-valued parameters must match a listed value exactly, since these are stored raw values rather than display names, and an unrecognized one falls back rather than failing the link. Percent-encode values that contain spaces: sslMode=Verify%20CA.

Core parameters

Socket

  • host becomes optional and defaults to localhost.
  • Other types and ssh=1 ignore socket.
  • The path must start with / and fit in 103 bytes.
  • A path with a control or invisible character refuses the link.
  • af_localSocketPath is read the same way.

SSH parameters

Set ssh=1, or none of these are read.

SSL parameters

Driver fields

Use af_<fieldId> for a known driver field. For example, af_mongoReplicaSet=myrs sets mongoReplicaSet on a MongoDB connection. Match the field ID’s case exactly. Known settings, destination fields and local file paths are accepted. Unknown fields are dropped. A sign-in selector that uses local credentials is also dropped: examples include af_mssqlAuthMethod=windows, af_awsAuth=profile, and af_usePgpass=true. A plain selector such as af_mssqlAuthMethod=sql is kept. Secrets, internal fields and local script settings are refused under the same field rules as a file import. Configure those settings in the connection editor. Imported connections do not carry sign-in approval.

What the user sees

The review sheet shows the type, host and port or socket, database, username, SSH auth method, SSL mode, color, icon, tags, group path, driver fields, and startup SQL. Only the name is editable. Add Connection saves it; when a connection to the same host, port, socket, database and username is already saved, the sheet warns “A connection to this server is already saved as “…”.” and the button becomes Add as Copy. The saved connection has no password, so open it in the connection editor and add one before connecting.