eirikbakke opened a new pull request, #8189: URL: https://github.com/apache/netbeans/pull/8189
The "Add Database Connection" dialog supports various kinds of database-specific connection fields, host, port, database etc. These are automatically substituted into the JDBC driver specific JDBC URL. This PR adds support for a "File" field, which will be shown if the user is using the JDBC drivers for [SQLite](https://www.sqlite.org/) or [DuckDB](https://duckdb.org/). There is a "Browse" button that can be used to pick the file from a file browser. Furthermore, the username and password fields are hidden for these drivers, which are known not to require this kind of authentication.  For SQLite and DuckDB, there's a warning if the selected file is not of the right kind. <img width="398" alt="image" src="https://github.com/user-attachments/assets/8e554928-938f-493c-85af-c754aa0de39a" /> For comparison, this is what the Add Database Connection dialog looked like before for SQLite:  (There are some [proprietary](https://www.zetetic.net/sqlcipher/jdbc/) JDBC drivers for SQLite that do allow a password to be used for encryption, but in this rare case the user could use a connection property to pass this information instead.) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
