model

package
v0.0.0-...-dcf9ee8 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Name         string `json:"name"`
	DatabaseType string `json:"databaseType"`
	Nullable     *bool  `json:"nullable,omitempty"`
	Length       *int64 `json:"length,omitempty"`
	Precision    *int64 `json:"precision,omitempty"`
	Scale        *int64 `json:"scale,omitempty"`
}

func NewColumn

func NewColumn(ct *sql.ColumnType) *Column

type Container

type Container struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Image string `json:"image"`
}

func NewContainerFromContainer

func NewContainerFromContainer(c *types.Container) *Container

func NewContainerFromContainerJSON

func NewContainerFromContainerJSON(cj *types.ContainerJSON) *Container

type QueryResult

type QueryResult struct {
	Columns []Column        `json:"columns"`
	Rows    [][]interface{} `json:"rows"`
}

type Workspace

type Workspace struct {
	ID string `json:"id"`
	DB string `json:"db"`
}

Jump to

Keyboard shortcuts

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