Documentation ¶
Index ¶
- func NewDB(gormDB *gorm.DB) (*sql.DB, error)
- func NewGormDB(o *Options) (*gorm.DB, error)
- type Deleted
- func (Deleted) DeleteClauses(f *schema.Field) []clause.Interface
- func (n Deleted) MarshalJSON() ([]byte, error)
- func (Deleted) QueryClauses(f *schema.Field) []clause.Interface
- func (n *Deleted) Scan(value interface{}) error
- func (n *Deleted) UnmarshalJSON(b []byte) error
- func (Deleted) UpdateClauses(f *schema.Field) []clause.Interface
- func (n Deleted) Value() (driver.Value, error)
- type OptimisticLockUpdateClause
- type Options
- type SoftDeleteDeleteClause
- type SoftDeleteQueryClause
- type SoftDeleteUpdateClause
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deleted ¶ added in v0.3.0
func (Deleted) DeleteClauses ¶ added in v0.3.0
func (Deleted) MarshalJSON ¶ added in v0.3.0
func (Deleted) QueryClauses ¶ added in v0.3.0
func (*Deleted) UnmarshalJSON ¶ added in v0.3.0
func (Deleted) UpdateClauses ¶ added in v0.3.0
type OptimisticLockUpdateClause ¶ added in v0.3.0
func (OptimisticLockUpdateClause) Build ¶ added in v0.3.0
func (sd OptimisticLockUpdateClause) Build(clause.Builder)
func (OptimisticLockUpdateClause) MergeClause ¶ added in v0.3.0
func (sd OptimisticLockUpdateClause) MergeClause(*clause.Clause)
func (OptimisticLockUpdateClause) ModifyStatement ¶ added in v0.3.0
func (sd OptimisticLockUpdateClause) ModifyStatement(stmt *gorm.Statement)
func (OptimisticLockUpdateClause) Name ¶ added in v0.3.0
func (sd OptimisticLockUpdateClause) Name() string
type Options ¶
type SoftDeleteDeleteClause ¶ added in v0.3.0
func (SoftDeleteDeleteClause) Build ¶ added in v0.3.0
func (sd SoftDeleteDeleteClause) Build(clause.Builder)
func (SoftDeleteDeleteClause) MergeClause ¶ added in v0.3.0
func (sd SoftDeleteDeleteClause) MergeClause(*clause.Clause)
func (SoftDeleteDeleteClause) ModifyStatement ¶ added in v0.3.0
func (sd SoftDeleteDeleteClause) ModifyStatement(stmt *gorm.Statement)
func (SoftDeleteDeleteClause) Name ¶ added in v0.3.0
func (sd SoftDeleteDeleteClause) Name() string
type SoftDeleteQueryClause ¶ added in v0.3.0
func (SoftDeleteQueryClause) Build ¶ added in v0.3.0
func (sd SoftDeleteQueryClause) Build(clause.Builder)
func (SoftDeleteQueryClause) MergeClause ¶ added in v0.3.0
func (sd SoftDeleteQueryClause) MergeClause(*clause.Clause)
func (SoftDeleteQueryClause) ModifyStatement ¶ added in v0.3.0
func (sd SoftDeleteQueryClause) ModifyStatement(stmt *gorm.Statement)
func (SoftDeleteQueryClause) Name ¶ added in v0.3.0
func (sd SoftDeleteQueryClause) Name() string
type SoftDeleteUpdateClause ¶ added in v0.3.0
func (SoftDeleteUpdateClause) Build ¶ added in v0.3.0
func (sd SoftDeleteUpdateClause) Build(clause.Builder)
func (SoftDeleteUpdateClause) MergeClause ¶ added in v0.3.0
func (sd SoftDeleteUpdateClause) MergeClause(*clause.Clause)
func (SoftDeleteUpdateClause) ModifyStatement ¶ added in v0.3.0
func (sd SoftDeleteUpdateClause) ModifyStatement(stmt *gorm.Statement)
func (SoftDeleteUpdateClause) Name ¶ added in v0.3.0
func (sd SoftDeleteUpdateClause) Name() string
type Version ¶ added in v0.3.0
func (Version) MarshalJSON ¶ added in v0.3.0
func (*Version) UnmarshalJSON ¶ added in v0.3.0
func (Version) UpdateClauses ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.