demo

package
v0.12.8 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateModels

func CreateModels(db_ DB)

func Run

func Run()

Types

type Car

type Car struct {
	ID    uint   `json:"id"`
	Model string `json:"model"`
	Color string `json:"color"`
	City  string `json:"city"`
}

func Create

func Create(db_ DB, carStr string) *Car

func (Car) Create

func (car Car) Create(db_ DB, carStr string) Model

func (*Car) Delete added in v0.10.0

func (car *Car) Delete(db_ DB) error

func (Car) Id

func (car Car) Id() any

func (*Car) Save

func (car *Car) Save(bct Table) error

type Catalog added in v0.12.0

type Catalog struct {
	ID     uint
	CarsId []uint

	Cars []*Car `json:"-"`
}

func (Catalog) Create added in v0.12.0

func (Catalog) Create(db_ DB, str string) Model

func (*Catalog) Delete added in v0.12.0

func (cat *Catalog) Delete(db_ DB) error

func (*Catalog) Id added in v0.12.0

func (cat *Catalog) Id() any

func (*Catalog) Save added in v0.12.0

func (cat *Catalog) Save(bct Table) error

type RedCar_withHand added in v0.12.0

type RedCar_withHand struct {
	ID    uint
	Hand  bool
	CarId uint

	Car *Car `json:"-"`
}

func (RedCar_withHand) Create added in v0.12.0

func (RedCar_withHand) Create(db_ DB, carStr string) Model

func (*RedCar_withHand) Delete added in v0.12.0

func (car *RedCar_withHand) Delete(db_ DB) error

func (*RedCar_withHand) Id added in v0.12.0

func (car *RedCar_withHand) Id() any

func (*RedCar_withHand) Save added in v0.12.0

func (car *RedCar_withHand) Save(bct Table) error

Jump to

Keyboard shortcuts

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