aboutsummaryrefslogtreecommitdiff
path: root/default.cfg
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-05-06 08:56:39 +0000
committerAnton Tananaev <anton.tananaev@gmail.com>2012-05-06 08:56:39 +0000
commit131152712d834b39f44ae94ab5d2db04520d3125 (patch)
tree93a224f4cafba45d668153499a5d607382f46d9b /default.cfg
parent0218464141fc64f060699c6e98ed5d4f0814e139 (diff)
downloadtrackermap-server-131152712d834b39f44ae94ab5d2db04520d3125.tar.gz
trackermap-server-131152712d834b39f44ae94ab5d2db04520d3125.tar.bz2
trackermap-server-131152712d834b39f44ae94ab5d2db04520d3125.zip
Diffstat (limited to 'default.cfg')
-rw-r--r--default.cfg40
1 files changed, 38 insertions, 2 deletions
diff --git a/default.cfg b/default.cfg
index e16223dfd..3c432d092 100644
--- a/default.cfg
+++ b/default.cfg
@@ -15,8 +15,8 @@
<!-->
Create database:
- CREATE TABLE devices (id INT, imei VARCHAR(16))
- CREATE TABLE positions (device_id INT, time TIMESTAMP, is_valid BOOLEAN, latitude DOUBLE, longitude DOUBLE, speed DOUBLE, course DOUBLE, power DOUBLE)
+ CREATE TABLE devices (id INT IDENTITY imei VARCHAR(16))
+ CREATE TABLE positions (device_id INT, time TIMESTAMP, valid BOOLEAN, latitude DOUBLE, longitude DOUBLE, speed DOUBLE, course DOUBLE, power DOUBLE)
<-->
<!-->
@@ -29,6 +29,41 @@
</entry>
<!-->
+ imei - String
+ <-->
+ <entry key="database.insertDevice">
+ INSERT INTO devices (imei)
+ VALUES (:imei)
+ </entry>
+
+ <!-->
+ id - Integer
+ imei - String
+ <-->
+ <entry key="database.updateDevice">
+ UPDATE devices
+ SET imei = :imei
+ WHERE id = :id
+ </entry>
+
+ <!-->
+ id - Integer
+ <-->
+ <entry key="database.deleteDevice">
+ DELETE FROM devices
+ WHERE id = :id
+ </entry>
+
+ <!-->
+ device_id - Integer
+ <-->
+ <entry key="database.selectPosition">
+ SELECT *
+ FROM positions
+ WHERE device_id = :device_id
+ </entry>
+
+ <!-->
device_id - Integer
time - Date
valid - Boolean
@@ -45,6 +80,7 @@
</entry>
<!-- Web interface port -->
+ <entry key="http.enable">true</entry>
<entry key="http.port">8082</entry>
<!-- Logging options -->