-
Notifications
You must be signed in to change notification settings - Fork 28
/
sqlite.go
38 lines (34 loc) · 1015 Bytes
/
sqlite.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
33
34
35
36
37
38
// Copyright (c) 2020 Target Brands, Inc. All rights reserved.
//
// Use of this source code is governed by the LICENSE file in this repository.
package sqlite
// Service represents the Sqlite DML for a table in the database.
type Service struct {
List map[string]string
Select map[string]string
Delete string
}
// Map represents the Sqlite DML services in a struct for lookups.
type Map struct {
BuildService *Service
HookService *Service
LogService *Service
RepoService *Service
SecretService *Service
ServiceService *Service
StepService *Service
UserService *Service
}
// NewMap returns the Sqlite Map for DML lookups.
func NewMap() *Map {
return &Map{
BuildService: createBuildService(),
HookService: createHookService(),
LogService: createLogService(),
RepoService: createRepoService(),
SecretService: createSecretService(),
ServiceService: createServiceService(),
StepService: createStepService(),
UserService: createUserService(),
}
}