Documentation
¶
Index ¶
- type FieldInfo
- type FieldInfoList
- type StructInfo
- func (s *StructInfo) AllFields() FieldInfoList
- func (s *StructInfo) AutoFields() FieldInfoList
- func (s *StructInfo) NonAutoFields() FieldInfoList
- func (s *StructInfo) NonPKFields() FieldInfoList
- func (s *StructInfo) PKFields() FieldInfoList
- func (s *StructInfo) TableName() string
- func (s *StructInfo) Type() reflect.Type
- type TableNamer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldInfo ¶
type FieldInfo struct {
// contains filtered or unexported fields
}
FieldInfo - Сведения проецирования поля структуры на поле БД
type FieldInfoList ¶
type FieldInfoList []FieldInfo
func (FieldInfoList) Filter ¶
func (fil FieldInfoList) Filter(filterFunc func(fi FieldInfo) (ok bool)) FieldInfoList
type StructInfo ¶
type StructInfo struct {
// contains filtered or unexported fields
}
func NewStructInfo ¶
func NewStructInfo(src any) (*StructInfo, error)
func (*StructInfo) AllFields ¶
func (s *StructInfo) AllFields() FieldInfoList
func (*StructInfo) AutoFields ¶
func (s *StructInfo) AutoFields() FieldInfoList
func (*StructInfo) NonAutoFields ¶
func (s *StructInfo) NonAutoFields() FieldInfoList
func (*StructInfo) NonPKFields ¶
func (s *StructInfo) NonPKFields() FieldInfoList
func (*StructInfo) PKFields ¶
func (s *StructInfo) PKFields() FieldInfoList
func (*StructInfo) TableName ¶
func (s *StructInfo) TableName() string
func (*StructInfo) Type ¶
func (s *StructInfo) Type() reflect.Type
type TableNamer ¶
type TableNamer interface {
TableName() string
}
TableNamer - интерфейс для получения имени таблицы в БД
Click to show internal directories.
Click to hide internal directories.