diff --git a/templates/favicon.ico b/templates/favicon.ico new file mode 100644 index 0000000..efd2761 Binary files /dev/null and b/templates/favicon.ico differ diff --git a/templates/index.html b/templates/index.html index a9ea56c..ceb621e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -118,10 +118,10 @@ - + - +

SQL格式化工具

@@ -132,10 +132,10 @@
- +
{{ statusMessage }}
@@ -150,7 +150,7 @@ const {createApp, ref, onMounted, computed} = Vue; const API_CONFIG = { - ENDPOINT: 'http://localhost:8778/convert', + ENDPOINT: '/convert', DEFAULT_HEADERS: { 'Content-Type': 'application/x-www-form-urlencoded' }, diff --git a/utils/sql_parse.py b/utils/sql_parse.py index 5462c05..e1f83eb 100644 --- a/utils/sql_parse.py +++ b/utils/sql_parse.py @@ -5,13 +5,13 @@ from sqlglot.expressions import ColumnDef def odps(schema, table_name, columns, colmapping, hologres_connection): odps_sql = f''' -CREATE EXTERNAL TABLE IF NOT EXISTS {table_name} +CREATE EXTERNAL TABLE IF NOT EXISTS {table_name}_hologres ( {columns} ) STORED BY 'com.aliyun.odps.jdbc.JdbcStorageHandler' -- ip设置成经典网络ip 库 加Schema 加表名 -location 'jdbc:postgresql://hgprecn-cn-i7m2ssubq004-cn-hangzhou-internal.hologres.aliyuncs.com:80/sdk_statis?ApplicationName=MaxCompute¤tSchema={schema}&preferQueryMode=simple&useSSL=false&table={table_name}/' +location 'jdbc:postgresql://hgprecn-cn-i7m2ssubq004-cn-hangzhou-internal.hologres.aliyuncs.com:80/sdk_statis?ApplicationName=MaxCompute¤tSchema={schema}&useSSL=false&table={table_name}/' TBLPROPERTIES ( 'mcfed.mapreduce.jdbc.driver.class'='org.postgresql.Driver', 'odps.federation.jdbc.target.db.type'='holo',