Connection¶
Open a database session at run time, or close it. The app can start disconnected.
| Where | Settings |
| Who sees it | Admin. The entry is hidden when the server's operator switched the Connect page off. |
| Writes to the store | Nothing in the store: it opens or closes the session. |
| Valid-time banner | Not followed: the page shows the current state, and the banner says so. |
What you do¶
- Fill the host, username and password. Optionally give a logon mechanism, a default database and encrypt (
trueorfalse), then press Connect. A failed attempt shows the whole error. - Disconnect closes the session. Cached reports are cleared and the credentials typed here are forgotten.
- The status line shows whether the app is connected. The dot in the top bar shows the same and opens a small menu with the state, who the app is connected as, and Reconnect or Log out.
Limits¶
- If the operator set
TDFS4DS_SERVE_CONNECT_PAGE=off, or the login gate is on, the page only shows the host, the user and the status. The app uses the credentials it was started with. - With session expiry set, credentials typed here are forgotten after the idle or total time shown on the page. They are kept in the server process only, never written to disk.
Do the same in Python¶
The (?) button in the top bar opens a standalone script for this page. It asks for the password with getpass, never writes to the store, and can be copied or downloaded.
The script is the connection: its first lines open the session (the password is typed, never written) and connect the store, then it lists the feature stores this user can see (tdfs4ds.find_feature_stores).