Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
58ebc116
Commit
58ebc116
authored
Jun 27, 2021
by
Medicean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fix: Core/CMDLINUX) 删除 sqlite3 中多余参数
parent
ea8af73c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
sqlite3.js
source/core/cmdlinux/template/database/sqlite3.js
+0
-18
No files found.
source/core/cmdlinux/template/database/sqlite3.js
View file @
58ebc116
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment