galaxytemple opened a new pull request, #76710:
URL: https://github.com/apache/airflow/pull/76710

   SQLite is a serverless, embedded file-based database that does not use 
login, password, port, or schema parameters:
   - Entering values into `Login` or `Password` causes `SqliteHook.get_uri()` 
to construct an invalid file URI (e.g. `file:user:pass@/path/to/db`), leading 
to `sqlite3.OperationalError: unable to open database file` or creating a file 
with `user:pass@` prefixed to the filename.
   - `Port` and `Schema` are unused by SQLite.
   
   This PR configures custom UI field behavior for SQLite connections:
   - Hides `port`, `schema`, `login`, and `password`.
   - Relabels `host` to `File path` with placeholders for file path and 
`:memory:`.
   - Adds placeholders for `extra` (e.g. `{"mode": "ro"}`).
   - Updates both `SqliteHook.get_ui_field_behaviour()` and declarative 
`provider.yaml`.
   
   closes: #76708
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Gemini
   
   Generated-by: Gemini following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
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]

Reply via email to