Expand description
Monitoring tools: sessions and locks, statement statistics, cumulative statistics, table usage and replication.
Structs§
- Visibility
- Whether the connected role may read other sessions’ statement text, and the role’s name.
Functions§
- bool_
text - bounded
- An optional integer argument with its default, checked against an inclusive range.
- camel
- A snake_case column name as a camelCase result key.
- catalog
- Monitoring tools with their toolset tag.
- cut_
chars - The first
limitcharacters of the text, and whether any were cut. - dispatch
- Runs the named tool, or returns None when the name is not one of this module’s tools.
- fail
- Ends a tool call with a failure that names its database when it is known.
- first_
object - The first row of a result as an object; an empty object when there is none.
- flag
- An optional boolean argument; absent means false.
- flag_of
- Reads a boolean column of a row; absent or null means false.
- hidden_
text_ note - The note that explains hidden statement text and how to show it.
- next_
cursor - The cursor for the page after the one that starts at
offset. - parse_
offset - The offset encoded in an
o:<offset>cursor; absent means the first page. - present_
columns - The candidate columns that the relation has on this server, in candidate order.
- select_
items alias.column AS "camelCase"for each column; byte counts are cast to bigint.- shape_
query - Sets a row’s
queryto its visible text, masked for secrets, cut tochars;queryTruncatedsays whether it was cut. - text_
visibility - visible_
text - Maps PostgreSQL’s placeholder for another role’s statement text to None.
- wide_
rows - Runs internal SQL with the wide value and response limits and encodes its rows.