deephaven_enterprise.database#

class Database(j_db)[source]#

Bases: object

catalog_table()[source]#

Return a table of the available tables.

The result table contains a column for Namespace, TableName, and NamespaceSet.

Returns:

a table of table names

historical_partitioned_table(namespace, table_name)[source]#

Retrieve the specified historical table as a partitioned table from the Database.

Parameters:
  • namespace (str) – the namespace

  • table_name (str) – the table

Returns:

a new historical partitioned table at the specified namespace and table name

historical_table(namespace, table_name)[source]#

Fetch a historical Table for the specified namespace and table name.

Parameters:
  • namespace (str) – the namespace

  • table_name (str) – the table

Returns:

the historical table at the specified namespace and table name

live_partitioned_table(namespace, table_name)[source]#

Retrieve the specified historical table as a partitioned table from the Database.

Parameters:
  • namespace (str) – the namespace

  • table_name (str) – the table

Returns:

a new historical partitioned table at the specified namespace and table name

live_table(namespace, table_name, is_refreshing=True)[source]#

Fetch a live Table for the specified namespace and table name.

Parameters:
  • namespace (str) – the namespace

  • table_name (str) – the table

  • is_refreshing – True if the returned table should be refreshing (defaults to True)

Returns:

the live table at the specified namespace and table name

namespaces()[source]#

Return the list of namespaces.

Returns:

the list of namespaces

table_definition(namespace, table_name)[source]#

Fetch a Table containing the column definitions for the specified namespace and table name.

Parameters:
  • namespace (str) – the namespace

  • table_name (str) – the table

Returns:

the definition table for the specified namespace and table name

table_names(namespace)[source]#

Return the list tables within a namespace.

Parameters:

namespace (str) – the namespace

Returns:

the list of tables within namespace