entity

package
v0.0.0-...-0485310 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Name   string          `json:"name"`
	Tables []DatabaseTable `json:"tables"`
}

type DatabaseColumn

type DatabaseColumn struct {
	Name          string           `json:"name"`
	Type          string           `json:"type"`
	Primary       bool             `json:"primary,omitempty"`
	NotNull       bool             `json:"not_null,omitempty"`
	Key           string           `json:"key,omitempty"`
	Default       string           `json:"default,omitempty"`
	Extra         string           `json:"extra,omitempty"`
	AutoIncrement bool             `json:"auto_increment,omitempty"`
	Children      []DatabaseColumn `json:"children,omitempty"`
	Hash          string           `json:"hash,omitempty"`
	OriginalName  string           `json:"original_name,omitempty"`
	Status        string           `json:"status,omitempty"`
}

type DatabaseIndex

type DatabaseIndex struct {
	Name         string                `json:"name"`
	Type         string                `json:"type,omitempty"`
	Columns      []DatabaseIndexColumn `json:"columns"`
	Unique       bool                  `json:"unique"`
	Hash         string                `json:"hash,omitempty"`
	OriginalName string                `json:"original_name,omitempty"`
	Status       string                `json:"status,omitempty"`
}

type DatabaseIndexColumn

type DatabaseIndexColumn struct {
	Name  string `json:"name"`
	Order int    `json:"order"`
}

func (*DatabaseIndexColumn) OrderString

func (col *DatabaseIndexColumn) OrderString() string

type DatabaseMetadata

type DatabaseMetadata struct {
	Databases []Database `json:"databases"`
}

type DatabaseQueryResults

type DatabaseQueryResults struct {
	Columns []DatabaseColumn         `json:"columns,omitempty"`
	Rows    []map[string]interface{} `json:"rows,omitempty"`
	Output  string                   `json:"output,omitempty"`
	Error   string                   `json:"error,omitempty"`
}

type DatabaseTable

type DatabaseTable struct {
	Name    string           `json:"name"`
	Columns []DatabaseColumn `json:"columns"`
	Indexes []DatabaseIndex  `json:"indexes"`
}

Jump to

Keyboard shortcuts

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