db

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve()

Types

type Action

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

func (*Action) Run

func (a *Action) Run(args []string, with map[string]string) (map[string]string, error)

type DbReq

type DbReq struct {
	Driver  string        `map:"driver"`
	DSN     string        `map:"dsn"`
	Query   string        `map:"query"`
	Params  []interface{} `map:"params"`
	Timeout string        `map:"timeout"`
}

type DbRes

type DbRes struct {
	Code         int           `map:"code"`
	RowsAffected int64         `map:"rows_affected"`
	Rows         []interface{} `map:"rows"`
	Error        string        `map:"error"`
}

type DbResult

type DbResult struct {
	Req DbReq         `map:"req"`
	Res DbRes         `map:"res"`
	RT  time.Duration `map:"rt"`
}

Jump to

Keyboard shortcuts

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