orm

package
v1.13.9 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 5 Imported by: 10

Documentation

Index

Constants

View Source
const Associations = clause.Associations

Variables

View Source
var ErrRecordNotFound = errors.New("record not found")
View Source
var Observers = make([]Observer, 0)

Functions

This section is empty.

Types

type Model

type Model struct {
	ID uint `gorm:"primaryKey"`
	Timestamps
}

type Observer added in v1.11.0

type Observer struct {
	Model    any
	Observer contractsorm.Observer
}

type SoftDeletes

type SoftDeletes struct {
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at"`
}

type Timestamps added in v1.0.0

type Timestamps struct {
	CreatedAt carbon.DateTime `gorm:"autoCreateTime;column:created_at"`
	UpdatedAt carbon.DateTime `gorm:"autoUpdateTime;column:updated_at"`
}

Jump to

Keyboard shortcuts

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