Documentation
¶
Index ¶
- Constants
- Variables
- func NewLog(l log.Interface, cfg logger.Config) logger.Interface
- type Base
- type DB
- type Deleted
- type DeletedAt
- func (DeletedAt) DeleteClauses(f *schema.Field) []clause.Interface
- func (n DeletedAt) MarshalJSON() ([]byte, error)
- func (DeletedAt) QueryClauses(f *schema.Field) []clause.Interface
- func (n *DeletedAt) Scan(value interface{}) error
- func (n *DeletedAt) UnmarshalJSON(b []byte) error
- func (n DeletedAt) Value() (driver.Value, error)
- type Log
- func (l *Log) Error(_ context.Context, msg string, data ...interface{})
- func (l *Log) Info(_ context.Context, msg string, data ...interface{})
- func (l *Log) LogMode(level logger.LogLevel) logger.Interface
- func (l *Log) Trace(_ context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *Log) Warn(_ context.Context, msg string, data ...interface{})
- type Option
- type SessionOpt
- type SnowID
- type SoftDeleteDeleteClause
- type SoftDeleteDeletedClause
- type SoftDeleteQueryClause
- type SoftDeletedQueryClause
- type SoftDeletedUpdateClause
- type Time
Constants ¶
View Source
const NanosecondPerMillisecond = 1e6
Variables ¶
View Source
var ( NotFound = gorm.ErrRecordNotFound ErrNotRowsAffected = errors.New("0 rows affected") ErrDuplicate = "1062: Duplicate" )
Functions ¶
Types ¶
type DB ¶
type DeletedAt ¶
func (DeletedAt) MarshalJSON ¶
func (*DeletedAt) UnmarshalJSON ¶
type Log ¶ added in v1.1.5
type SessionOpt ¶ added in v1.1.5
type SoftDeleteDeleteClause ¶
func (SoftDeleteDeleteClause) Build ¶
func (sd SoftDeleteDeleteClause) Build(clause.Builder)
func (SoftDeleteDeleteClause) MergeClause ¶
func (sd SoftDeleteDeleteClause) MergeClause(*clause.Clause)
func (SoftDeleteDeleteClause) ModifyStatement ¶
func (sd SoftDeleteDeleteClause) ModifyStatement(stmt *gorm.Statement)
func (SoftDeleteDeleteClause) Name ¶
func (sd SoftDeleteDeleteClause) Name() string
type SoftDeleteDeletedClause ¶
func (SoftDeleteDeletedClause) Build ¶
func (s SoftDeleteDeletedClause) Build(clause.Builder)
func (SoftDeleteDeletedClause) MergeClause ¶
func (s SoftDeleteDeletedClause) MergeClause(*clause.Clause)
func (SoftDeleteDeletedClause) ModifyStatement ¶
func (s SoftDeleteDeletedClause) ModifyStatement(stmt *gorm.Statement)
func (SoftDeleteDeletedClause) Name ¶
func (s SoftDeleteDeletedClause) Name() string
type SoftDeleteQueryClause ¶
func (SoftDeleteQueryClause) Build ¶
func (sd SoftDeleteQueryClause) Build(clause.Builder)
func (SoftDeleteQueryClause) MergeClause ¶
func (sd SoftDeleteQueryClause) MergeClause(*clause.Clause)
func (SoftDeleteQueryClause) ModifyStatement ¶
func (sd SoftDeleteQueryClause) ModifyStatement(stmt *gorm.Statement)
func (SoftDeleteQueryClause) Name ¶
func (sd SoftDeleteQueryClause) Name() string
type SoftDeletedQueryClause ¶
func (SoftDeletedQueryClause) Build ¶
func (s SoftDeletedQueryClause) Build(clause.Builder)
func (SoftDeletedQueryClause) MergeClause ¶
func (s SoftDeletedQueryClause) MergeClause(*clause.Clause)
func (SoftDeletedQueryClause) ModifyStatement ¶
func (s SoftDeletedQueryClause) ModifyStatement(stmt *gorm.Statement)
func (SoftDeletedQueryClause) Name ¶
func (s SoftDeletedQueryClause) Name() string
type SoftDeletedUpdateClause ¶
func (SoftDeletedUpdateClause) Build ¶
func (s SoftDeletedUpdateClause) Build(clause.Builder)
func (SoftDeletedUpdateClause) MergeClause ¶
func (s SoftDeletedUpdateClause) MergeClause(*clause.Clause)
func (SoftDeletedUpdateClause) ModifyStatement ¶
func (s SoftDeletedUpdateClause) ModifyStatement(stmt *gorm.Statement)
func (SoftDeletedUpdateClause) Name ¶
func (s SoftDeletedUpdateClause) Name() string
Click to show internal directories.
Click to hide internal directories.