Get tables for a connection Stay organized with collections Save and categorize content based on your preferences.
Version 4.0.25.18 (latest)
Get the list of tables for a schema
For dialects that support multiple databases, optionally identify which to use. If not provided, the defaultdatabase for the connection will be used.
For dialects that donot support multiple databases,do not use the database parameter
Request
GET/connections/{connection_name}/tables
Datatype
Description
Request
HTTP Request
path
HTTP Path
Expand HTTP Path definition...
connection_name
string
Name of connection
query
HTTP Query
Expand HTTP Query definition...
database
string
Optional. Name of database to use for the query, only if applicable
schema_name
string
Optional. Return only tables for this schema
cache
boolean
True to fetch from cache, false to load fresh
fields
string
Requested fields.
table_filter
string
Optional. Return tables with names that contain this value
table_limit
integer
Optional. Return tables up to the table_limit
Response
200: Schemas and tables for connection
Datatype
Description
(array)
name
lock
string
Schema name
is_default
lock
boolean
True if this is the default schema
tables
Expand SchemaTable definition...
name
lock
string
Schema item name
sql_escaped_name
lock
string
Full name of item
schema_name
lock
string
Name of schema
rows
lock
integer
Number of data rows
external
lock
string
External reference???
snippets
Snippet[]
Expand Snippet definition...
name
lock
string
Name of the snippet
label
lock
string
Label of the snippet
sql
lock
string
SQL text of the snippet
table_limit_hit
lock
boolean
True if the table limit was hit while retrieving tables in this schema
400: Bad Request
Datatype
Description
(object)
message
lock
string
Error details
documentation_url
lock
string
Documentation link
404: Not Found
Datatype
Description
(object)
message
lock
string
Error details
documentation_url
lock
string
Documentation link
422: Validation Error
Datatype
Description
(object)
message
lock
string
Error details
errors
Expand ValidationErrorDetail definition...
field
lock
string
Field with error
code
lock
string
Error code
message
lock
string
Error info message
documentation_url
lock
string
Documentation link
documentation_url
lock
string
Documentation link
429: Too Many Requests
Datatype
Description
(object)
message
lock
string
Error details
documentation_url
lock
string
Documentation link
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-08 UTC.