blob: bfeb0cbe53410b19164530acfa950e40d04f5d7a (
plain)
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
|
package types
type ConnectionType int
const (
PostgreSQL ConnectionType = iota
MySQL
SQLite
)
func (ct ConnectionType) String() string {
switch ct {
case PostgreSQL:
return "PostgreSQL"
case MySQL:
return "MySQL"
case SQLite:
return "SQLite"
default:
return "Unknown"
}
}
type Connection struct {
Name string
Type ConnectionType
Host string
Port string
User string
Password string
Database string
DatabaseFile string
EnableSSL bool
Color string
}
|