Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openXG-WIC-Opencpc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
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
alex037yang
openXG-WIC-Opencpc
Commits
40bf81f6
Commit
40bf81f6
authored
Apr 15, 2018
by
joliu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加新的数据库构建代码
parent
624f7017
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
hfv/listenSer.py
hfv/listenSer.py
+5
-4
No files found.
hfv/listenSer.py
View file @
40bf81f6
...
...
@@ -178,12 +178,13 @@ def createDB():
def
createOutputDB
():
conn
=
sqlite3
.
connect
(
"task.db"
)
cursor
=
conn
.
cursor
()
cursor
.
execute
(
"""CREATE TABLE `resulovetable` (
cursor
.
execute
(
"""CREATE TABLE
if not exist
`resulovetable` (
`id` integer primary key autoincrement,
`taskmatrix` text NOT NULL,
`inputtype` text NOT NULL,
`status` tinyint DEFAULT 0,
`devicelist` text NOT NULL)
`devicelist` text NOT NULL,
`ctime` tinyint DEFAULT 2)
"""
)
conn
.
commit
()
cursor
.
close
()
...
...
@@ -194,10 +195,10 @@ def createOutputDB():
def
createDataCach
():
conn
=
sqlite3
.
connect
(
"task.db"
)
cursor
=
conn
.
cursor
()
cursor
.
execute
(
"""CREATE TABLE `datacach` (
cursor
.
execute
(
"""CREATE TABLE
if not exist
`datacach` (
`id` integer primary key autoincrement,
`deviceid` varchar(30) NOT NULL,
`data`
varchar(15) default '-'
,
`data`
integer default -1
,
`updatetime` varchar(30) NOT NULL,
`groupid` integer NOT NULL)
"""
)
...
...
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