Documentation
¶
Index ¶
Constants ¶
View Source
const ( SETTING_NAME_APP_ID = "APP_ID" SETTING_NAME_TELEMETRY_ENABLED = "TELEMETRY_ENABLED" SETTING_NAME_LOGS_EXPIRE = "LOGS_EXPIRE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBConnection ¶
type DBConnection struct { ID string `gorm:"type:uuid;primaryKey"` Name string `gorm:"not null;uniqueIndex"` ProjectID string `gorm:"not null"` Type string `gorm:"not null"` DBScheme sbsql.CryptedData `gorm:"type:text"` DBHost sbsql.CryptedData `gorm:"type:text"` DBPort sbsql.CryptedData `gorm:"type:text"` DBName sbsql.CryptedData `gorm:"type:text"` DBUser sbsql.CryptedData `gorm:"type:text"` DBPassword sbsql.CryptedData `gorm:"type:text"` LoginType string `gorm:"not null;default:USE_ROOT;"` UseSSH string `gorm:"not null"` SSHHost sbsql.CryptedData `gorm:"type:text"` SSHUser sbsql.CryptedData `gorm:"type:text"` SSHPassword sbsql.CryptedData `gorm:"type:text"` SSHKeyFile sbsql.CryptedData `gorm:"type:text"` CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` Project Project `gorm:"foreignkey:ProjectID"` }
func NewDBConnection ¶
func (DBConnection) Save ¶
func (dbConn DBConnection) Save() error
func (*DBConnection) ToQEConnection ¶ added in v0.3.0
func (dbConn *DBConnection) ToQEConnection() *qemodels.DBConnection
type DBQuery ¶
type DBQuery struct { ID string `gorm:"type:uuid;primaryKey"` Name string `gorm:"not null"` Query string `gorm:"not null"` DBConnectionID string `gorm:"type:uuid;not null"` CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` DBConnection DBConnection `gorm:"foreignkey:db_connection_id"` }
type DBQueryLog ¶
type DBQueryLog struct { ID string `gorm:"type:uuid;primaryKey"` Query string `gorm:"not null"` DBConnectionID string `gorm:"type:uuid;not null"` CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` }
func NewQueryLog ¶
func NewQueryLog(dbConnectionID string, query string) *DBQueryLog
type Project ¶
type Project struct { ID string `gorm:"type:uuid;primaryKey"` Name string `gorm:"not null"` CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` }
func NewProject ¶
type Setting ¶
func NewSetting ¶
Click to show internal directories.
Click to hide internal directories.