From d0a4bcd658360a96158fb2581642e33790c630c8 Mon Sep 17 00:00:00 2001 From: gaibu <1016771049@qq.com> Date: Sun, 27 Nov 2022 10:56:20 +0800 Subject: [PATCH] =?UTF-8?q?feat=20#I63B4Y=20=E5=A2=9E=E5=8A=A0=20sql-lite?= =?UTF-8?q?=20sql=20=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/test/resources/sql/sql-lite/data.sql | 10 ++++++++++ .../test/resources/sql/sql-lite/schema.sql | 19 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 liteflow-testcase-el/liteflow-testcase-el-sql-springboot/src/test/resources/sql/sql-lite/data.sql create mode 100644 liteflow-testcase-el/liteflow-testcase-el-sql-springboot/src/test/resources/sql/sql-lite/schema.sql diff --git a/liteflow-testcase-el/liteflow-testcase-el-sql-springboot/src/test/resources/sql/sql-lite/data.sql b/liteflow-testcase-el/liteflow-testcase-el-sql-springboot/src/test/resources/sql/sql-lite/data.sql new file mode 100644 index 00000000..22f2e780 --- /dev/null +++ b/liteflow-testcase-el/liteflow-testcase-el-sql-springboot/src/test/resources/sql/sql-lite/data.sql @@ -0,0 +1,10 @@ +DELETE FROM EL_TABLE; + +INSERT INTO EL_TABLE (APPLICATION_NAME,CHAIN_NAME,EL_DATA) values ('demo','chain1','THEN(a, b, c);'); +INSERT INTO EL_TABLE (APPLICATION_NAME,CHAIN_NAME,EL_DATA) values ('demo','chain2','THEN(a, b, c);'); +INSERT INTO EL_TABLE (APPLICATION_NAME,CHAIN_NAME,EL_DATA) values ('demo','chain3','IF(x0, THEN(a, b));'); + +DELETE FROM SCRIPT_NODE_TABLE; + +INSERT INTO SCRIPT_NODE_TABLE (APPLICATION_NAME,SCRIPT_NODE_ID,SCRIPT_NODE_NAME,SCRIPT_NODE_TYPE,SCRIPT_NODE_DATA) values ('demo','x0','if 脚本','if_script','return true'); +INSERT INTO SCRIPT_NODE_TABLE (APPLICATION_NAME,SCRIPT_NODE_ID,SCRIPT_NODE_NAME,SCRIPT_NODE_TYPE,SCRIPT_NODE_DATA) values ('demo','x1','if 脚本','if_script','return false'); diff --git a/liteflow-testcase-el/liteflow-testcase-el-sql-springboot/src/test/resources/sql/sql-lite/schema.sql b/liteflow-testcase-el/liteflow-testcase-el-sql-springboot/src/test/resources/sql/sql-lite/schema.sql new file mode 100644 index 00000000..8783ea6c --- /dev/null +++ b/liteflow-testcase-el/liteflow-testcase-el-sql-springboot/src/test/resources/sql/sql-lite/schema.sql @@ -0,0 +1,19 @@ +create table `EL_TABLE` +( + `id` integer NOT NULL, + `application_name` text NOT NULL, + `chain_name` text NOT NULL, + `el_data` text NOT NULL, + PRIMARY KEY (`id`) +); + +create table `script_node_table` +( + `id` integer NOT NULL, + `application_name` text NOT NULL, + `script_node_id` text NOT NULL, + `script_node_name` text NOT NULL, + `script_node_type` text NOT NULL, + `script_node_data` text NOT NULL, + PRIMARY KEY (`id`) +); \ No newline at end of file