From 52db2645e1900da15520b9d231d64d22f9254e5f Mon Sep 17 00:00:00 2001 From: FuYouJ <1247908487@qq.com> Date: Fri, 23 Jun 2023 13:34:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=85=8D=E7=BD=AE=E6=A8=A1?= =?UTF-8?q?=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/plugin_job_template.json | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 neo4jwriter/src/main/resources/plugin_job_template.json diff --git a/neo4jwriter/src/main/resources/plugin_job_template.json b/neo4jwriter/src/main/resources/plugin_job_template.json new file mode 100644 index 00000000..83b93891 --- /dev/null +++ b/neo4jwriter/src/main/resources/plugin_job_template.json @@ -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" + } + ] +} \ No newline at end of file