orm

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

type Relationship added in v1.0.0

type Relationship struct {
}

func (*Relationship) HasMany added in v1.0.0

func (r *Relationship) HasMany(dest, id interface{}, foreignKey string) error

func (*Relationship) HasOne added in v1.0.0

func (r *Relationship) HasOne(dest, id interface{}, foreignKey string) error

type SoftDeletes

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

type Timestamps added in v1.0.0

type Timestamps struct {
	CreatedAt time.Time
	UpdatedAt time.Time
}

Jump to

Keyboard shortcuts

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