-
Notifications
You must be signed in to change notification settings - Fork 18
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
Added column server_configurations in azure_mysql_server table. Closes #427 #429
Conversation
@@ -191,6 +191,13 @@ func tableAzureMySQLServer(_ context.Context) *plugin.Table { | |||
Type: proto.ColumnType_JSON, | |||
Transform: transform.From(extractMySQLServerPrivateEndpointConnections), | |||
}, | |||
{ | |||
Name: "server_configurations", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will it be Server parameters?
as per this azure doc
name as server_name, | ||
id as server_id, | ||
configurations ->> 'name' as configuration_name, | ||
configurations -> 'ConfigurationProperties' ->> 'value' as value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
configurations -> 'ConfigurationProperties' ->> 'value' as value | |
configurations -> 'configurationProperties' ->> 'value' as value |
@@ -118,3 +118,64 @@ from | |||
azure_mysql_server, | |||
jsonb_array_elements(server_keys) as keys; | |||
``` | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a simple example stating the current value of the properties.
select
name as server_name,
id as server_id,
configurations ->> 'name' as configuration_name,
configurations -> 'configurationProperties' ->> 'value' as value
from
azure_mysql_server,
jsonb_array_elements(server_configurations) as configurations
where
configurations ->> 'name' = 'slow_query_log';
@@ -118,3 +118,63 @@ from | |||
azure_mysql_server, | |||
jsonb_array_elements(server_keys) as keys; | |||
``` | |||
|
|||
### List server configuration details |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Server configurations
is the same as Server parameters
as shown in Azure MySQL server console
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Integration test logs
Logs
Example query results
Results