is it possible to use same meltano tap for differe...
# best-practices
s
is it possible to use same meltano tap for different sourcers?
c
yes, it uses inheritance [which IMO makes this feature difficult to discover], example:
Copy code
plugins:
  extractors:
  - name: tap-postgres
    variant: meltanolabs
    pip_url: git+<https://github.com/MeltanoLabs/tap-postgres.git>
  - name: tap-postgres--payment-svc-db
    inherit_from: tap-postgres
  - name: tap-postgres--credit-svc-db
    inherit_from: tap-postgres
âž• 1
👍 2
s
@Charles Feduke, do i need to set config for base plugin as well ? If don't its complaining that user, host etc is not set for tap-postgres
Copy code
AssertionError: Need either the sqlalchemy_url to be set or host, port, user, and password to be set
c
the only thing I set was the config/database since its shared amongst all of my databases… instead I have a separate config section, where
$VARIABLES
are environment variables:
Copy code
- name: stg
  config:
    plugins:
      extractors:
      - name: tap-postgres--payment-svc-db
        config:
          host: $PAYMENT_SVC_DB_HOST
          port: 5432
          user: $PAYMENT_SVC_DB_USER
          password: $PAYMENT_SVC_DB_PASSWORD
          filter_schemas:
          - payment