Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```
- .
- |-- config.yml.liquid
- |-- db
- | `-- _conn.yml.liquid
- `-- query
- `-- _query.yml.liquid
- ```
- cat config.yml.liquid
- ```yaml
- in:
- {% include 'db/conn' %}
- {% include 'query/query' %}
- out:
- type: stdout
- ```
- db/_conn.yml.liquid
- ```yaml
- type: postgresql
- host: 127.0.0.1
- user: user
- password: password
- database: embulk_test
- ```
- query/_query.yml.liquid
- ```yaml
- query: "select * from auto_inc_test"
- ```
- ## 環境変数で分ける場合
- ```
- in:
- {% if env.EMBULK_ENV == 'production' %}
- {% include 'db/prod' %}
- {% else %}
- {% include 'db/dev' %}
- {% endif %}
- {% include 'query/query' %}
- out:
- type: stdout
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement