views

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConnectionView

type DBConnectionView struct {
	ID        string    `json:"id"`
	Name      string    `json:"name"`
	Type      string    `json:"type"`
	ProjectID string    `json:"projectId"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

func BuildDBConnection

func BuildDBConnection(dbConn *models.DBConnection) DBConnectionView

type DBQueryLogView

type DBQueryLogView struct {
	ID             string    `json:"id"`
	Query          string    `json:"query"`
	DBConnectionID string    `json:"dbConnectionId"`
	CreatedAt      time.Time `json:"createdAt"`
}

func BuildDBQueryLogView

func BuildDBQueryLogView(log *models.DBQueryLog) *DBQueryLogView

type DBQueryView

type DBQueryView struct {
	ID             string `json:"id"`
	Name           string `json:"name"`
	Query          string `json:"query"`
	DBConnectionID string `json:"dbConnectionId"`
}

func BuildDBQueryView

func BuildDBQueryView(query *models.DBQuery) *DBQueryView

type ProjectView

type ProjectView struct {
	ID        string    `json:"id"`
	Name      string    `json:"name"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

func BuildProject

func BuildProject(pProject *models.Project) ProjectView

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL