plg_backend_mysql

package
v0.0.0-...-bec2cf3 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindForeignKeysChoices

func FindForeignKeysChoices(db *sql.DB, location DBLocation) (map[string][]string, error)

func FindHowManyOccurenceOfaValue

func FindHowManyOccurenceOfaValue(db *sql.DB, location DBLocation, value interface{}) int

Types

type DBLocation

type DBLocation struct {
	// contains filtered or unexported fields
}

func FindWhoIsUsing

func FindWhoIsUsing(db *sql.DB, location DBLocation) ([]DBLocation, error)

func FindWhoOwns

func FindWhoOwns(db *sql.DB, location DBLocation) (DBLocation, error)

func NewDBLocation

func NewDBLocation(path string) (DBLocation, error)

type Mysql

type Mysql struct {
	// contains filtered or unexported fields
}

func (Mysql) Cat

func (this Mysql) Cat(path string) (io.ReadCloser, error)

func (Mysql) Close

func (this Mysql) Close() error

func (Mysql) Init

func (this Mysql) Init(params map[string]string, app *App) (IBackend, error)

func (Mysql) LoginForm

func (this Mysql) LoginForm() Form

func (Mysql) Ls

func (this Mysql) Ls(path string) ([]os.FileInfo, error)

func (Mysql) Meta

func (this Mysql) Meta(path string) Metadata

func (Mysql) Mkdir

func (this Mysql) Mkdir(path string) error

func (Mysql) Mv

func (this Mysql) Mv(from string, to string) error

func (Mysql) Rm

func (this Mysql) Rm(path string) error

func (Mysql) Save

func (this Mysql) Save(path string, file io.Reader) error

func (Mysql) Touch

func (this Mysql) Touch(path string) error

type QuerySelection

type QuerySelection struct {
	Name     string
	Type     string
	RawType  string
	Size     int
	Key      string
	Nullable bool
}

type SqlFields

type SqlFields struct {
	Order     []QuerySelection
	Select    []QuerySelection
	Esthetics []QuerySelection
	Date      QuerySelection
	All       map[string]QuerySelection
}

func FindQuerySelection

func FindQuerySelection(db *sql.DB, location DBLocation) (SqlFields, error)

type SqlKeyParams

type SqlKeyParams struct {
	Key   string
	Value interface{}
}

Jump to

Keyboard shortcuts

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