File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -15,25 +15,25 @@ composer require php-etl/sql-plugin
1515sql :
1616 extractor :
1717 query : ' SELECT * FROM table1'
18- connection :
19- dsn : ' mysql:host=127.0.0.1;port=3306;dbname=kiboko'
20- username : username
21- password : password
18+ connection :
19+ dsn : ' mysql:host=127.0.0.1;port=3306;dbname=kiboko'
20+ username : username
21+ password : password
2222` ` `
2323### Building a lookup
2424
2525` ` ` yaml
2626sql :
2727 lookup :
2828 query : ' SELECT * FROM table2 WHERE bar = foo'
29- connection :
30- dsn : ' mysql:host=127.0.0.1;port=3306;dbname=kiboko'
31- username : username
32- password : password
3329 merge :
3430 map :
3531 - field : ' [options]'
3632 expression : ' lookup["name"]'
33+ connection :
34+ dsn : ' mysql:host=127.0.0.1;port=3306;dbname=kiboko'
35+ username : username
36+ password : password
3737
3838```
3939
4242sql :
4343 loader :
4444 query : ' INSERT INTO table1 VALUES (bar, foo, barfoo)'
45- connection :
46- dsn : ' mysql:host=127.0.0.1;port=3306;dbname=kiboko'
47- username : username
48- password : password
45+ connection :
46+ dsn : ' mysql:host=127.0.0.1;port=3306;dbname=kiboko'
47+ username : username
48+ password : password
4949
5050```
5151
@@ -62,7 +62,7 @@ the name of your parameter without the `:` :
6262sql :
6363 # ...
6464 query : ' INSERT INTO table1 VALUES (:value1, :value2, :value3)'
65- params :
65+ parameters :
6666 - key : value1
6767 value : ' @=input["value1"]'
6868 - key : value2
@@ -79,7 +79,7 @@ configuration will be its position (starting from 1) :
7979sql :
8080 # ...
8181 query : ' INSERT INTO table1 VALUES (?, ?, ?)'
82- params :
82+ parameters :
8383 - key : 1
8484 value : ' @=input["value1"]'
8585 - key : 2
You can’t perform that action at this time.
0 commit comments