// Lists the databases in the specified data catalog.
Lists the databases in the specified data catalog.
// Lists the databases in the specified data catalog .
func (c *Client) ListDatabases(ctx context.Context, params *ListDatabasesInput, optFns ...func(*Options)) (*ListDatabasesOutput, error) {
	if params == nil {
		params = &ListDatabasesInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListDatabases", params, optFns, addOperationListDatabasesMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListDatabasesOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListDatabases ( ctx context . Context , params * ListDatabasesInput , optFns ... func ( * Options ) ) ( * ListDatabasesOutput , error ) { if params == nil { params = & ListDatabasesInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListDatabasesMiddlewares ) if err != nil { return nil , err } out := result . ( * ListDatabasesOutput ) out . ResultMetadata = metadata return out , nil }
Lists the databases in the specified data catalog.
Lists the databases in the specified data catalog .