////
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at
  http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
////
:documentationPath: /workflow/actions/
:language: en_US
:description: The Table Exists action verifies that a specified table exists on a database.

= Table Exists

== Description

The `Table exists` action verifies that a specified table exists on a database.

You must provide a connection and the table name.

Hop returns a True or False value depending on whether the table exists.

Suppose you have an external system that creates a summary table or yesterday's data extract.

The external system may not have performed the action yet, so you set up a polling piece that waits for the staged data to arrive in the database.

There is no point in processing the workflow until the data is available, so you can use this workflow action as a semaphore that polls the database to determine whether or not the table exists.

== Options

[options="header", width="90%", cols="1,3"]
|===
|Option|Description
|Action name|The name of the workflow action.
|Connection|The connection to use
|Schema name|The schema name if applicable to your database
|Table name|The name of the database table to check
|===
