Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
DataEditorX
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
DataEditorX
Commits
39f5ac0d
Commit
39f5ac0d
authored
Jan 07, 2016
by
keyongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
647e7514
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
29 additions
and
12 deletions
+29
-12
DataEditorX/Core/DataBase.cs
DataEditorX/Core/DataBase.cs
+20
-8
DataEditorX/Properties/AssemblyInfo.cs
DataEditorX/Properties/AssemblyInfo.cs
+1
-1
DataEditorX/changed.txt
DataEditorX/changed.txt
+2
-0
DataEditorX/readme.txt
DataEditorX/readme.txt
+1
-1
win32/DataEditorX.exe
win32/DataEditorX.exe
+0
-0
win32/changed.txt
win32/changed.txt
+2
-0
win32/data/history.txt
win32/data/history.txt
+2
-1
win32/readme.txt
win32/readme.txt
+1
-1
win32/win32.zip
win32/win32.zip
+0
-0
No files found.
DataEditorX/Core/DataBase.cs
View file @
39f5ac0d
...
...
@@ -379,7 +379,7 @@ public static string GetSelectSQL(Card c)
/// <param name="c">卡片数据</param>
/// <param name="ignore"></param>
/// <returns>SQL语句</returns>
public
static
string
GetInsertSQL
(
Card
c
,
bool
ignore
)
public
static
string
GetInsertSQL
(
Card
c
,
bool
ignore
,
bool
hex
=
false
)
{
StringBuilder
st
=
new
StringBuilder
();
if
(
ignore
)
...
...
@@ -389,14 +389,26 @@ public static string GetInsertSQL(Card c, bool ignore)
st
.
Append
(
c
.
id
.
ToString
());
st
.
Append
(
","
);
st
.
Append
(
c
.
ot
.
ToString
());
st
.
Append
(
","
);
st
.
Append
(
c
.
alias
.
ToString
());
st
.
Append
(
","
);
if
(
hex
){
st
.
Append
(
"0x"
+
c
.
setcode
.
ToString
(
"x"
));
st
.
Append
(
","
);
st
.
Append
(
"0x"
+
c
.
type
.
ToString
(
"x"
));
st
.
Append
(
","
);
}
else
{
st
.
Append
(
c
.
setcode
.
ToString
());
st
.
Append
(
","
);
st
.
Append
(
c
.
type
.
ToString
());
st
.
Append
(
","
);
}
st
.
Append
(
c
.
atk
.
ToString
());
;
st
.
Append
(
","
);
st
.
Append
(
c
.
def
.
ToString
());
st
.
Append
(
","
);
if
(
hex
){
st
.
Append
(
"0x"
+
c
.
level
.
ToString
(
"x"
));
st
.
Append
(
","
);
st
.
Append
(
"0x"
+
c
.
race
.
ToString
(
"x"
));
st
.
Append
(
","
);
st
.
Append
(
"0x"
+
c
.
attribute
.
ToString
(
"x"
));
st
.
Append
(
","
);
st
.
Append
(
"0x"
+
c
.
category
.
ToString
(
"x"
));
st
.
Append
(
")"
);
}
else
{
st
.
Append
(
c
.
level
.
ToString
());
st
.
Append
(
","
);
st
.
Append
(
c
.
race
.
ToString
());
st
.
Append
(
","
);
st
.
Append
(
c
.
attribute
.
ToString
());
st
.
Append
(
","
);
st
.
Append
(
c
.
category
.
ToString
());
st
.
Append
(
")"
);
}
if
(
ignore
)
st
.
Append
(
";\nINSERT or ignore into texts values("
);
else
...
...
@@ -475,7 +487,7 @@ public static string GetDeleteSQL(Card c)
StreamWriter
sw
=
new
StreamWriter
(
fs
,
Encoding
.
UTF8
);
foreach
(
Card
c
in
cards
)
{
sw
.
WriteLine
(
GetInsertSQL
(
c
,
false
));
sw
.
WriteLine
(
GetInsertSQL
(
c
,
false
,
true
));
}
sw
.
Close
();
}
...
...
DataEditorX/Properties/AssemblyInfo.cs
View file @
39f5ac0d
...
...
@@ -28,4 +28,4 @@
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"2.4.0.
7
"
)]
[
assembly
:
AssemblyVersion
(
"2.4.0.
8
"
)]
DataEditorX/changed.txt
View file @
39f5ac0d
★更新历史
2.4.0.8
修复
2.4.0.7
导出卡片为sql功能
2.4.0.5
...
...
DataEditorX/readme.txt
View file @
39f5ac0d
[DataEditorX]2.4.0.
7
[DataEditorX]
[DataEditorX]2.4.0.
8
[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★运行环境(Environment)
...
...
win32/DataEditorX.exe
View file @
39f5ac0d
No preview for this file type
win32/changed.txt
View file @
39f5ac0d
★更新历史
2.4.0.8
修复
2.4.0.7
导出卡片为sql功能
2.4.0.5
...
...
win32/data/history.txt
View file @
39f5ac0d
# database history
F:\games\ygopro\cards.cdb
D:\code\a.cdb
D:\code\italian.cdb
# script history
\ No newline at end of file
win32/readme.txt
View file @
39f5ac0d
[DataEditorX]2.4.0.
7
[DataEditorX]
[DataEditorX]2.4.0.
8
[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★运行环境(Environment)
...
...
win32/win32.zip
View file @
39f5ac0d
No preview for this file type
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