mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-02 04:40:54 +08:00
添加配置模版
This commit is contained in:
parent
d0679abf45
commit
52db2645e1
45
neo4jwriter/src/main/resources/plugin_job_template.json
Normal file
45
neo4jwriter/src/main/resources/plugin_job_template.json
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
"uri": "neo4j://localhost:7687",
|
||||||
|
"username": "neo4j",
|
||||||
|
"password": "Test@12343",
|
||||||
|
"database": "neo4j",
|
||||||
|
"cypher": "unwind $batch as row create(p:Person) set p.pbool = row.pbool,p.pstring = row.pstring,p.plong = row.plong,p.pshort = row.pshort,p.pdouble=row.pdouble,p.pstringarr=row.pstringarr,p.plocaldate=row.plocaldate",
|
||||||
|
"batch_data_variable_name": "batch",
|
||||||
|
"batch_size": "33",
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"fieldName": "pbool",
|
||||||
|
"fieldType": "BOOLEAN"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "pstring",
|
||||||
|
"fieldType": "STRING"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "plong",
|
||||||
|
"fieldType": "LONG"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "pshort",
|
||||||
|
"fieldType": "SHORT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "pdouble",
|
||||||
|
"fieldType": "DOUBLE"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "pstringarr",
|
||||||
|
"fieldType": "STRING_ARRAY",
|
||||||
|
"split": ",",
|
||||||
|
"arrayTrimChars": [
|
||||||
|
"[",
|
||||||
|
"]"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "plocaldate",
|
||||||
|
"fieldType": "LOCAL_DATE",
|
||||||
|
"dateFormat": "yyyy-MM-dd"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user