Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add data.tables documentation #44

Merged
merged 2 commits into from
Nov 7, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions website/docs/d/tables.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
layout: "mysql"
page_title: "MySQL: mysql_tables"
sidebar_current: "docs-mysql-datasource-tables"
description: |-
Get tables on a MySQL server.
Ken-Sumi1019 marked this conversation as resolved.
Show resolved Hide resolved
---

# Data Source: mysql\_tables

The ``mysql_tables`` get tables on a MySQL
server.

## Example Usage

```hcl
data "mysql_tables" "app" {
database = "my_awesome_app"
}
```

## Argument Reference

The following arguments are supported:

* `database` - (Required) The name of the database.

Ken-Sumi1019 marked this conversation as resolved.
Show resolved Hide resolved
* `pattern` - (Optional) Patterns for searching tables.

## Attributes Reference

The following attributes are exported:

* `tabels` - The list of the table names.
Ken-Sumi1019 marked this conversation as resolved.
Show resolved Hide resolved
9 changes: 9 additions & 0 deletions website/mysql.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@

</ul>
</li>
<li<%= sidebar_current("docs-mysql-datasource") %>>
<a href="#">Data Sources</a>
<ul class="nav nav-visible">

<li<%= sidebar_current("docs-mysql-datasource-tables") %>>
<a href="/docs/providers/mysql/d/tables.html">mysql_tables</a>
</li>
</ul>
</li>
</ul>
</div>
<% end %>
Expand Down