Documentation ¶
Index ¶
- Variables
- func IsClausesWithSoftDelete(clauses map[string]clause.Clause) (withSoftDelete bool)
- func PatchGormDeleteAt() (patches *gomonkey.Patches)
- type Deleted
- func (Deleted) DeleteClauses(f *schema.Field) []clause.Interface
- func (s Deleted) MarshalJSON() ([]byte, error)
- func (Deleted) QueryClauses(f *schema.Field) []clause.Interface
- func (s *Deleted) Scan(value any) (err error)
- func (s *Deleted) UnmarshalJSON(bs []byte) error
- func (Deleted) UpdateClauses(f *schema.Field) []clause.Interface
- func (s Deleted) Value() (driver.Value, error)
- type Timestamp
- func (Timestamp) DeleteClauses(f *schema.Field) []clause.Interface
- func (t Timestamp) MarshalJSON() ([]byte, error)
- func (Timestamp) QueryClauses(f *schema.Field) []clause.Interface
- func (t *Timestamp) Scan(value any) error
- func (t *Timestamp) UnmarshalJSON(bs []byte) error
- func (Timestamp) UpdateClauses(f *schema.Field) []clause.Interface
- func (t Timestamp) Value() (driver.Value, error)
- type TimestampDeleteClause
- type TimestampQueryClause
- type TimestampUpdateClause
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PatchGormDeleteAtOnce = new(sync.Once)
)
Functions ¶
func IsClausesWithSoftDelete ¶
func PatchGormDeleteAt ¶
Types ¶
type Deleted ¶
type Deleted bool
func (Deleted) MarshalJSON ¶
func (*Deleted) UnmarshalJSON ¶
type Timestamp ¶
func (Timestamp) MarshalJSON ¶
func (*Timestamp) UnmarshalJSON ¶
type TimestampDeleteClause ¶
func (TimestampDeleteClause) Build ¶
func (t TimestampDeleteClause) Build(clause.Builder)
func (TimestampDeleteClause) MergeClause ¶
func (t TimestampDeleteClause) MergeClause(*clause.Clause)
func (TimestampDeleteClause) ModifyStatement ¶
func (t TimestampDeleteClause) ModifyStatement(stmt *gorm.Statement)
func (TimestampDeleteClause) Name ¶
func (t TimestampDeleteClause) Name() string
type TimestampQueryClause ¶
func (TimestampQueryClause) Build ¶
func (t TimestampQueryClause) Build(clause.Builder)
func (TimestampQueryClause) MergeClause ¶
func (t TimestampQueryClause) MergeClause(*clause.Clause)
func (TimestampQueryClause) ModifyStatement ¶
func (t TimestampQueryClause) ModifyStatement(stmt *gorm.Statement)
func (TimestampQueryClause) Name ¶
func (t TimestampQueryClause) Name() string
type TimestampUpdateClause ¶
func (TimestampUpdateClause) Build ¶
func (t TimestampUpdateClause) Build(clause.Builder)
func (TimestampUpdateClause) MergeClause ¶
func (t TimestampUpdateClause) MergeClause(*clause.Clause)
func (TimestampUpdateClause) ModifyStatement ¶
func (t TimestampUpdateClause) ModifyStatement(stmt *gorm.Statement)
func (TimestampUpdateClause) Name ¶
func (t TimestampUpdateClause) Name() string
Click to show internal directories.
Click to hide internal directories.