Skip to content

Conversation

@Nexus6v2
Copy link
Contributor

Fixed the url parsing when providing protocol in server url and/or using ports
(default protocol is still https)

@Nexus6v2 Nexus6v2 linked an issue Jul 28, 2025 that may be closed by this pull request
@Nexus6v2 Nexus6v2 force-pushed the dbeaver/dbeaver#38710-lisql-url-fix branch from a630ff0 to a591c02 Compare July 28, 2025 13:29
@Nexus6v2 Nexus6v2 force-pushed the dbeaver/dbeaver#38710-lisql-url-fix branch from a591c02 to 22094a9 Compare July 28, 2025 13:30
);
}

String formattedUrl = url.replaceFirst("jdbc:dbeaver:libsql:", "");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will replace just the first occurrence of jdbc:dbeaver:libsql:. Did you want to trim it if it's in the beginning?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then please either add a regex anchor or put a startsWith check.

@Nexus6v2 Nexus6v2 deleted the dbeaver/dbeaver#38710-lisql-url-fix branch July 31, 2025 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

libSQL connet Error

3 participants