orm

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 5 Imported by: 0

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.10.2

type Observer struct {
	Model    any
	Observer contractsorm.Observer
}

type SoftDeletes

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

type Timestamps

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