Skip to content

Commit

Permalink
doc: add sample flow for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
mgabelle committed Oct 17, 2024
1 parent f9ad8e3 commit 39a2544
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,26 @@
title = "Send a SQL query to a MySQL Database and fetch a row as output.",
full = true,
code = """
id: send_multiple_queries
namespace: test.queries
tasks:
- id: test_queries_insert
type: io.kestra.plugin.jdbc.mysql.Queries
fetchType: FETCH
url: jdbc:mysql://mysql:3306/kestra
username: "${{secret('MYSQL_USERNAME')}}"
password: "${{secret('MYSQL_PASSWORD')}}"
sql: "{{ read('populate.sql') }}"
- id: test_queries_select
type: io.kestra.plugin.jdbc.mysql.Queries
fetchType: FETCH
url: jdbc:mysql://mysql:3306/kestra
username: root
password: mysql_passwd
sql: |
SELECT firstName, lastName FROM employee;
SELECT brand FROM laptop;
"""
)
}
Expand Down

0 comments on commit 39a2544

Please sign in to comment.