Skip to content

Commit b52e8fc

Browse files
include db name in connection url for local dolt databases
1 parent ca1a30c commit b52e8fc

File tree

1 file changed

+1
-1
lines changed
  • web/renderer/components/pageComponents/ConnectionsPage/NewConnection/context

1 file changed

+1
-1
lines changed

web/renderer/components/pageComponents/ConnectionsPage/NewConnection/context/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function getConnectionUrl(state: ConfigState): string {
77
if (state.connectionUrl) return state.connectionUrl;
88
const prefix = state.type === DatabaseType.Mysql ? "mysql" : "postgresql";
99
const password = state.password ? `:${state.password}` : "";
10-
return `${prefix}://${state.username}${password}@${state.host}:${state.port}`;
10+
return `${prefix}://${state.username}${password}@${state.host}:${state.port}/${state.database}`;
1111
}
1212

1313
type GetCanSubmitReturnType = {

0 commit comments

Comments
 (0)