Skip to content

Commit 6768ad7

Browse files
committed
Updated documentation
1 parent 32e3539 commit 6768ad7

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ composer require php-etl/sql-plugin
1515
sql:
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
2626
sql:
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

@@ -42,10 +42,10 @@ sql:
4242
sql:
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 `:` :
6262
sql:
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) :
7979
sql:
8080
# ...
8181
query: 'INSERT INTO table1 VALUES (?, ?, ?)'
82-
params:
82+
parameters:
8383
- key: 1
8484
value: '@=input["value1"]'
8585
- key: 2

0 commit comments

Comments
 (0)