You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 8, 2020. It is now read-only.
| <b>type</b> | - | The component type name, needs to be org.keedio.flume.source.SQLSource |
64
51
| <b>connection.url</b> | - | Url to connect with the remote Database |
65
52
| <b>user</b> | - | Username to connect with the database |
66
53
| <b>password</b> | - | Password to connect with the database |
67
54
| <b>table</b> | - | Table to export data |
68
-
| <b>incremental.colum.name</b> | - | Autoincremental column name |
69
55
| <b>status.file.name</b> | - | Local file name to save last row number readed |
70
56
| status.file.path | /var/lib/flume | Path to save the status file |
71
57
| incremental.value | 0 | Start value to import data |
@@ -77,14 +63,12 @@ Mandatory properties in <b>bold</b>
77
63
78
64
Custom Query
79
65
-------------
80
-
A custom query is supported to bring the possibility of use entire SQL languaje. This is powerfull, but risky, be carefull with the custom queries.
81
-
To use is needed an special character '@' to indicate where the incremental value should be.
66
+
A custom query is supported to bring the possibility of use entire SQL languaje. This is powerfull, but risky, be carefull with the custom queries used.
67
+
82
68
Example:
83
69
```
84
-
agent.sources.sql-source.custom.query = SELECT field1,field2 FROM table1 WHERE field1='test' AND @ ORDER BY field2;
70
+
agent.sources.sql-source.custom.query = SELECT field1,field2 FROM table1 WHERE field1='test'
85
71
```
86
-
Will run the query:
87
-
```SELECT field1,field2 FROM table1 WHERE field1='test' AND incrementalColumn > 0 ORDER BY field2;```
0 commit comments