-
Notifications
You must be signed in to change notification settings - Fork 2
/
teams.go
32 lines (27 loc) · 856 Bytes
/
teams.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*-
* Copyright (c) 2016, Jörg Pernfuß <joerg.pernfuss@1und1.de>
* All rights reserved
*
* Use of this source code is governed by a 2-clause BSD license
* that can be found in the LICENSE file.
*/
package stmt
const ListTeams = `
SELECT organizational_team_id,
organizational_team_name
FROM inventory.organizational_teams;`
const ShowTeams = `
SELECT organizational_team_id,
organizational_team_name,
organizational_team_ldap_id,
organizational_team_system
FROM inventory.organizational_teams
WHERE organizational_team_id = $1;`
const SyncTeams = `
SELECT organizational_team_id,
organizational_team_name,
organizational_team_ldap_id,
organizational_team_system
FROM inventory.organizational_teams
WHERE NOT organizational_team_system;`
// vim: ts=4 sw=4 sts=4 noet fenc=utf-8 ffs=unix