Documentation ¶
Index ¶
- Variables
- func Connect(c *gin.Context)
- func ConnectWithBackend(c *gin.Context)
- func DB(c *gin.Context) *client.Client
- func DataExport(c *gin.Context)
- func Disconnect(c *gin.Context)
- func ExplainQuery(c *gin.Context)
- func GetActivity(c *gin.Context)
- func GetAssets() http.Handler
- func GetBookmarks(c *gin.Context)
- func GetConnectionInfo(c *gin.Context)
- func GetDatabases(c *gin.Context)
- func GetHistory(c *gin.Context)
- func GetHome() http.Handler
- func GetInfo(c *gin.Context)
- func GetObjects(c *gin.Context)
- func GetSchemas(c *gin.Context)
- func GetSessions(c *gin.Context)
- func GetTable(c *gin.Context)
- func GetTableConstraints(c *gin.Context)
- func GetTableIndexes(c *gin.Context)
- func GetTableInfo(c *gin.Context)
- func GetTableRows(c *gin.Context)
- func HandleQuery(query string, c *gin.Context)
- func RunQuery(c *gin.Context)
- func SetupMiddlewares(group *gin.RouterGroup)
- func SetupRoutes(router *gin.Engine)
- func StartSessionCleanup()
- func SwitchDb(c *gin.Context)
- type Backend
- type BackendCredential
- type BackendRequest
- type Error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ConnectWithBackend ¶ added in v0.9.9
ConnectWithBackend creates a new connection based on backend resource
func DataExport ¶ added in v0.9.9
DataExport performs database table export
func Disconnect ¶ added in v0.9.2
Disconnect closes the current database connection
func GetBookmarks ¶
GetBookmarks renders the list of available bookmarks
func GetConnectionInfo ¶
GetConnectionInfo renders information about current connection
func GetDatabases ¶
GetDatabases renders a list of all databases on the server
func GetObjects ¶ added in v0.9.0
GetObjects renders a list of database objects
func GetSessions ¶ added in v0.8.0
GetSessions renders the number of active sessions
func GetTableConstraints ¶ added in v0.7.0
GetTableConstraints renders a list of database constraints
func GetTableIndexes ¶
GetTableIndexes renders a list of database table indexes
func GetTableInfo ¶
GetTableInfo renders a selected table information
func HandleQuery ¶
HandleQuery runs the database query
func SetupMiddlewares ¶ added in v0.6.3
func SetupMiddlewares(group *gin.RouterGroup)
func SetupRoutes ¶
func StartSessionCleanup ¶ added in v0.9.9
func StartSessionCleanup()
StartSessionCleanup starts a goroutine to cleanup idle database sessions
Types ¶
type Backend ¶ added in v0.9.9
Backend represents a third party configuration source
func (Backend) FetchCredential ¶ added in v0.9.9
FetchCredential sends an authentication request to a third-party service
type BackendCredential ¶ added in v0.9.9
type BackendCredential struct {
DatabaseURL string `json:"database_url"`
}
BackendCredential represents the third-party response