Skip to main content
has_table(table_name=None, options=)[source]

Checks for the existence of a table with the given name.

Parameters

table_name (str) –

Name of the table to check for existence, in [schema_name.]table_name format, using standard name resolution rules.

options (dict of str to str) –

Optional parameters. The default value is an empty dict ( ).

Returns

A dict with the following entries–

table_name (str) –

Value of input parameter table_name.

table_exists (bool) –

Indicates whether the table exists or not. Allowed values are:

  • True

  • False

info (dict of str to str) –

Additional information.