2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00
Files
panel/pkg/db/types.go

16 lines
560 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package db
type User struct {
User string `json:"user"` // 用户名PG 里面对应 Role
Host string `json:"host"` // 主机PG 这个字段为空
Grants []string `json:"grants"` // 权限列表
}
type Database struct {
Name string `json:"name"` // 数据库名
Owner string `json:"owner"` // 所有者MySQL 这个字段为空
CharSet string `json:"char_set"` // 字符集PG 里面对应 Encoding
Collation string `json:"collation"` // 校对集PG 这个字段为空
Comment string `json:"comment"`
}