Connecting to a server
The Object Explorer, several connections at once, sign-in, passwords, cross-server access and the clear-text warning.
The Studio is arranged like SQL Server Management Studio.
Object Explorer | tabs: documents - Data | documents - Data (edit) | documents - Properties | sample.json
127.0.0.1:7490 |
Databases | query bar: [Run] [Count] [100] [Load more] [Stop] [History] [Open by key] [New document]
main | virtual grid (Table / Tree / Raw)
Tables |
documents 3,000 |
Columns, Indexes, Statistics
Files
sample.json- Left pane: the tree only - connection, Databases, database, Tables, table, Columns (the server's field-name registry), Indexes (the primary key and secondary indexes with kind and entry count), Statistics; then Files (each opened file is a "table"). A box at the top narrows the tree.
- Right pane: tabs. Properties (name, rows, data size, index size, bytes per row, shards; columns with the types seen in a sample of 200 documents; indexes; per-shard statistics), Data and Query tabs (each has its own query, rows, filter, sort and an "unsaved" dot), and file tabs.
Several connections#
Each connection is its own root in the tree with a status dot, user and optional colour tag. Tabs carry a badge with their
connection name and every request goes to the connection of the tab that asked. Connect... asks for a display name, an address
(default: the page origin), a colour and the authentication, which is chosen from GET /v1/auth/info: none, a shared token, or user
and password.
Passwords#
A password exists only in the form until the login call is made; the field is cleared at once, also after a wrong password. It is not
in localStorage, sessionStorage or any log. The session token lives in memory only (8 hours on the server). Saved connections keep
only name, address, user name and colour; after a reload the password is asked again. A 401 during use marks only that connection
"sign in needed" and opens the sign-in dialog.
Logins send the password in clear text (the server has no TLS yet). Addresses other than 127.0.0.1 or
localhost show a warning. Use loopback or a trusted network. See Security.
Connecting one page to another server#
A page served by one server can talk to another only with two settings:
| Where | Setting | Effect |
|---|---|---|
| the server being called | --cors ORIGIN (repeatable) | answers pre-flight requests and adds access-control-allow-origin for the listed origin |
| the server that serves the page | --allow-remote-servers | adds http: and https: to the page's connect-src |
When the first request fails with a bare network error, the connect dialog shows this hint.
Create, rename, drop#
Context menus on the tree create databases (New Database...) and tables (New Table...; names are 1 to 64 letters, digits, _, -),
rename them and delete them. main and main.documents are protected and shown disabled. Delete opens a dialog that states the loss
and keeps the red button disabled until the exact name is typed; the request carries {"confirm":"<name>"}.