dbwebclient

package
v0.0.0-...-c26ccf8 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MulanPSL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBSERVER_WEB_PREFIX = "/dbserver/v3"
	URL_QUERY           = "/query"
	URL_CMD             = "/cmd"
	URL_META            = "/meta"
)

Variables

This section is empty.

Functions

func InjectDbWebClient

func InjectDbWebClient(s *DbWebClient)

func LoadDbWebClient

func LoadDbWebClient() baseiface.ISingleton

Types

type DbWebClient

type DbWebClient struct {
	basedto.BaseEntitySingle
	*webclient.WebClient
	// contains filtered or unexported fields
}

func Default

func Default() *DbWebClient

func DefaultDb

func DefaultDb() *DbWebClient

func FindBeanDbWebClient

func FindBeanDbWebClient() *DbWebClient

FindBeanDbWebClient

func NewDbWebClient

func NewDbWebClient() *DbWebClient

func (*DbWebClient) AutoMigrate

func (self *DbWebClient) AutoMigrate(table schema.Tabler) *page.PageResult

func (*DbWebClient) AutoMigrates

func (self *DbWebClient) AutoMigrates(tables ...schema.Tabler) *page.PageResult

func (*DbWebClient) Cmd

func (*DbWebClient) Delete

func (self *DbWebClient) Delete(tablename schema.Tabler, pkey any) *page.PageResult

func (*DbWebClient) DeleteById

func (self *DbWebClient) DeleteById(tablename string, pkey any) *page.PageResult

func (*DbWebClient) DeleteWhere

func (self *DbWebClient) DeleteWhere(req *pagedb.PageDbWebRequest) *page.PageResult

func (*DbWebClient) Find

func (self *DbWebClient) Find(tablename schema.Tabler, pkey any) *page.PageResult

func (*DbWebClient) FindById

func (self *DbWebClient) FindById(tablename string, pkey any) *page.PageResult

func (*DbWebClient) GeneralQuery

func (self *DbWebClient) GeneralQuery(req *pagedb.PageDbWebRequest) *page.PageResult

func (*DbWebClient) GroupStat

func (self *DbWebClient) GroupStat(req *pagedb.PageDbWebRequest, groupFields string, statFields ...string) *page.PageResult

func (*DbWebClient) Init

func (self *DbWebClient) Init()

func (*DbWebClient) Insert

func (self *DbWebClient) Insert(entity schema.Tabler) *page.PageResult

func (*DbWebClient) InsertEntity

func (self *DbWebClient) InsertEntity(table string, entity any) *page.PageResult

func (*DbWebClient) InsertTable

func (self *DbWebClient) InsertTable(entity iface.ITableName) *page.PageResult

func (*DbWebClient) Meta

func (*DbWebClient) Query

func (self *DbWebClient) Query(req *pagedb.PageDbWebRequest) *page.PageResult

func (*DbWebClient) SetWebPrefix

func (self *DbWebClient) SetWebPrefix(webPrefix string)

func (*DbWebClient) Stat

func (self *DbWebClient) Stat(req *pagedb.PageDbWebRequest, statFields ...string) *page.PageResult

func (*DbWebClient) Update

func (self *DbWebClient) Update(entity schema.Tabler, pkey any) *page.PageResult

func (*DbWebClient) UpdateEntity

func (self *DbWebClient) UpdateEntity(table string, entity any, pkey any) *page.PageResult

func (*DbWebClient) UpdateMap

func (self *DbWebClient) UpdateMap(tabler schema.Tabler, record map[string]any, pkey any) *page.PageResult

func (*DbWebClient) UpdateNotNull

func (self *DbWebClient) UpdateNotNull(entity schema.Tabler, pkey any) *page.PageResult

func (*DbWebClient) UpdateNotNullEntity

func (self *DbWebClient) UpdateNotNullEntity(table string, entity any, pkey any) *page.PageResult

func (*DbWebClient) UpdateTable

func (self *DbWebClient) UpdateTable(entity iface.ITableName, pkey any) *page.PageResult

func (*DbWebClient) WebPrefix

func (self *DbWebClient) WebPrefix() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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