singlestoredb.connection.ShowResult

class singlestoredb.connection.ShowResult(*args: Any, **kwargs: Any)

Simple result object.

This object is primarily used for displaying results to a terminal or web browser, but it can also be treated like a simple data frame where columns are accessible using either dictionary key-like syntax or attribute syntax.

Examples

>>> conn.show.status().Value[10]
>>> conn.show.status()[10]['Value']
Parameters:
  • *args (Any) – Parameters to send to underlying list constructor

  • **kwargs (Any) – Keyword parameters to send to underlying list constructor

See also

Connection.show

__init__(*args: Any, **kwargs: Any) None

Methods

__init__(*args, **kwargs)

count(value)

index(value, [start, [stop]])

Raises ValueError if the value is not present.

Attributes

columns

The columns in the result.