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 all commits
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
33 changes: 33 additions & 0 deletions website/docs/d/tables.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
layout: "mysql"
page_title: "MySQL: mysql_tables"
sidebar_current: "docs-mysql-datasource-tables"
description: |-
Gets tables on a MySQL server.
---

# Data Source: mysql\_tables

The ``mysql_tables`` gets 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.
* `pattern` - (Optional) Patterns for searching tables.

## Attributes Reference

The following attributes are exported:

* `tables` - The list of the table names.
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