Skip to content

Commit de8c060

Browse files
committed
feat(mysqldatabase): list collation
1 parent 44195d4 commit de8c060

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

get/mysqldatabase.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (cmd *mysqlDatabaseCmd) print(ctx context.Context, client *api.Client, list
4545

4646
func (cmd *mysqlDatabaseCmd) printMySQLDatabases(databases []resource.Managed, get *Cmd, header bool) error {
4747
if header {
48-
get.writeHeader("NAME", "FQDN", "LOCATION", "SIZE", "CONNECTIONS")
48+
get.writeHeader("NAME", "FQDN", "LOCATION", "COLLATION", "SIZE", "CONNECTIONS")
4949
}
5050

5151
for _, mg := range databases {
@@ -59,6 +59,7 @@ func (cmd *mysqlDatabaseCmd) printMySQLDatabases(databases []resource.Managed, g
5959
db.Name,
6060
db.Status.AtProvider.FQDN,
6161
string(db.Spec.ForProvider.Location),
62+
db.Spec.ForProvider.CharacterSet.Collation,
6263
db.Status.AtProvider.Size.String(),
6364
strconv.FormatUint(uint64(db.Status.AtProvider.Connections), 10),
6465
)

0 commit comments

Comments
 (0)