Use database as reference

In this example, we will see how to create a reference to some reader configuration. So when we actually need it, we don't need to rewrite all the configuration.

wpdb: &wpdb
  type: database
  options:
    user: root
    database: wordpress

default: !task
  - read: wp_users
    <<: *wpdb
  - select:
      - user_login
      - user_email
  - dump:

You can check this article about anchors, references and extends.

Last updated

Was this helpful?