Commit 58ebc116 authored by Medicean's avatar Medicean

(Fix: Core/CMDLINUX) 删除 sqlite3 中多余参数

parent ea8af73c
...@@ -9,9 +9,6 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({ ...@@ -9,9 +9,6 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({
_: `SQLITEFILE="#{host}"; _: `SQLITEFILE="#{host}";
if [ -f $SQLITEFILE ]; then echo -n "main\t"; else echo "ERROR:// $SQLITEFILE not found."; fi; if [ -f $SQLITEFILE ]; then echo -n "main\t"; else echo "ERROR:// $SQLITEFILE not found."; fi;
`, `,
[arg1]: '#{host}',
[arg2]: '#{user}',
[arg3]: '#{passwd}'
}, },
// 显示数据库所有表 // 显示数据库所有表
show_tables: { show_tables: {
...@@ -23,10 +20,6 @@ sqlite3 $SQLITEFILE <<EOF ...@@ -23,10 +20,6 @@ sqlite3 $SQLITEFILE <<EOF
select tbl_name from sqlite_master where type='table' order by tbl_name; select tbl_name from sqlite_master where type='table' order by tbl_name;
EOF EOF
`, `,
[arg1]: '#{host}',
[arg2]: '#{user}',
[arg3]: '#{passwd}',
[arg4]: '#{db}'
}, },
// 显示表字段 // 显示表字段
show_columns: { show_columns: {
...@@ -38,11 +31,6 @@ sqlite3 $SQLITEFILE <<EOF ...@@ -38,11 +31,6 @@ sqlite3 $SQLITEFILE <<EOF
select name," (",type,")" from pragma_table_info('#{table}'); select name," (",type,")" from pragma_table_info('#{table}');
EOF EOF
`, `,
[arg1]: '#{host}',
[arg2]: '#{user}',
[arg3]: '#{passwd}',
[arg4]: '#{db}',
[arg5]: '#{table}'
}, },
// 执行SQL语句 // 执行SQL语句
query: { query: {
...@@ -54,11 +42,5 @@ sqlite3 $SQLITEFILE <<EOF ...@@ -54,11 +42,5 @@ sqlite3 $SQLITEFILE <<EOF
#{sql} #{sql}
EOF EOF
`, `,
[arg1]: '#{host}',
[arg2]: '#{user}',
[arg3]: '#{passwd}',
[arg4]: '#{db}',
[arg5]: '#{base64::sql}',
[arg6]: '#{encode}'
} }
}) })
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment