common

package
v1.3.43 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

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

func New

func New(vModel model.Model, modelProvider provider.Provider, prefix string) Common

func (*Common) EncodeModelValue

func (s *Common) EncodeModelValue(vModel model.Model) (ret string, err error)

func (*Common) EncodeValue

func (s *Common) EncodeValue(vValue model.Value, vType model.Type) (ret string, err error)

func (*Common) GetFields

func (s *Common) GetFields() model.Fields

func (*Common) GetHostTableName

func (s *Common) GetHostTableName(vModel model.Model) string

func (*Common) GetModelValue

func (s *Common) GetModelValue() (ret string, err error)

func (*Common) GetPrimaryKeyField

func (s *Common) GetPrimaryKeyField(vModel model.Model) model.Field

func (*Common) GetRelationTableName

func (s *Common) GetRelationTableName(vField model.Field, rModel model.Model) string

func (*Common) GetRelationValue

func (s *Common) GetRelationValue(rModel model.Model) (leftVal, rightVal string, err error)

func (*Common) GetTableName

func (s *Common) GetTableName() string

func (*Common) GetTypeModel

func (s *Common) GetTypeModel(vType model.Type) (model.Model, error)

Jump to

Keyboard shortcuts

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