sql_mapping

package
v0.12.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseTag

func UseTag(e any, onParsedFieldTagFunc OnParsedFieldTagFunc) error

Types

type Field

type Field struct {
	FieldName      string
	ColumnName     string
	IsKey          bool
	CanUpdate      bool
	CanUpdateClear bool
	Value          any
}

func DefaultUsage

func DefaultUsage(e any) ([]Field, error)

type OnParsedFieldTagFunc

type OnParsedFieldTagFunc func(fieldName string, entityFieldElemValue reflect.Value, tag *Tag) error

type Tag

type Tag struct {
	Name           string
	IsKey          bool
	CanUpdate      bool
	CanUpdateClear bool
	JoinWith       string
	AESKey         string
	Trim           string
	TrimPrefix     string
	TrimSuffix     string
}

Jump to

Keyboard shortcuts

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