diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-03-08 23:31:06 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-03-08 23:31:06 +1300 |
commit | 3e76be5531f89fb906598435096e3eff54f86944 (patch) | |
tree | 69670b2ea6e073bcb352e34d29fc459816665427 /debug.xml | |
parent | c0d07811425497f10e41519e090f02cfdffb3c9a (diff) | |
download | trackermap-server-3e76be5531f89fb906598435096e3eff54f86944.tar.gz trackermap-server-3e76be5531f89fb906598435096e3eff54f86944.tar.bz2 trackermap-server-3e76be5531f89fb906598435096e3eff54f86944.zip |
Add group queries and recourse
Diffstat (limited to 'debug.xml')
-rw-r--r-- | debug.xml | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -149,6 +149,26 @@ DELETE FROM user_device WHERE userId = :userId AND deviceId = :deviceId; </entry> + <entry key='database.insertGroup'> + INSERT INTO groups (name) VALUES (:name); + </entry> + + <entry key='database.updateGroup'> + UPDATE groups SET name = :name WHERE id = :id; + </entry> + + <entry key='database.deleteGroup'> + DELETE FROM groups WHERE id = :id; + </entry> + + <entry key='database.linkGroup'> + INSERT INTO user_group (userId, groupId) VALUES (:userId, :groupId); + </entry> + + <entry key='database.unlinkGroup'> + DELETE FROM user_group WHERE userId = :userId AND groupId = :groupId; + </entry> + <entry key='database.selectPositions'> SELECT * FROM positions WHERE deviceId = :deviceId AND fixTime BETWEEN :from AND :to ORDER BY fixTime; </entry> |