diff --git a/website/docs/d/tables.html.markdown b/website/docs/d/tables.html.markdown new file mode 100644 index 00000000..984b238f --- /dev/null +++ b/website/docs/d/tables.html.markdown @@ -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. diff --git a/website/mysql.erb b/website/mysql.erb index c036a1be..25d40d81 100644 --- a/website/mysql.erb +++ b/website/mysql.erb @@ -36,6 +36,15 @@ +