petshopmodel

package
v0.746.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by sysl DO NOT EDIT.

Code generated by sysl DO NOT EDIT.

Code generated by sysl DO NOT EDIT.

Code generated by sysl DO NOT EDIT.

Code generated by sysl DO NOT EDIT.

Code generated by sysl DO NOT EDIT.

Code generated by sysl DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Breed

type Breed struct {
	// contains filtered or unexported fields
}

Breed is the public representation tuple in the model.

func (Breed) AvgLifespan

func (t Breed) AvgLifespan() *decimal.Decimal64

AvgLifespan gets the avgLifespan attribute from the Breed.

func (Breed) AvgWeight

func (t Breed) AvgWeight() *decimal.Decimal64

AvgWeight gets the avgWeight attribute from the Breed.

func (Breed) BreedID

func (t Breed) BreedID() int64

BreedID gets the breedId attribute from the Breed.

func (Breed) BreedName

func (t Breed) BreedName() *string

BreedName gets the breedName attribute from the Breed.

func (Breed) LegRank

func (t Breed) LegRank() *int64

LegRank gets the legRank attribute from the Breed.

func (Breed) NumLegs

func (t Breed) NumLegs() *int64

NumLegs gets the numLegs attribute from the Breed.

func (Breed) Species

func (t Breed) Species() *string

Species gets the species attribute from the Breed.

type BreedBuilder

type BreedBuilder struct {
	// contains filtered or unexported fields
}

BreedBuilder builds an instance of Breed in the model.

func (*BreedBuilder) Apply

func (b *BreedBuilder) Apply() (PetShopModel, Breed, error)

Apply applies the built Breed.

func (*BreedBuilder) WithAvgLifespan

func (b *BreedBuilder) WithAvgLifespan(value decimal.Decimal64) *BreedBuilder

WithAvgLifespan sets the avgLifespan attribute of the BreedBuilder.

func (*BreedBuilder) WithAvgWeight

func (b *BreedBuilder) WithAvgWeight(value decimal.Decimal64) *BreedBuilder

WithAvgWeight sets the avgWeight attribute of the BreedBuilder.

func (*BreedBuilder) WithBreedName

func (b *BreedBuilder) WithBreedName(value string) *BreedBuilder

WithBreedName sets the breedName attribute of the BreedBuilder.

func (*BreedBuilder) WithLegRank

func (b *BreedBuilder) WithLegRank(value int64) *BreedBuilder

WithLegRank sets the legRank attribute of the BreedBuilder.

func (*BreedBuilder) WithNumLegs

func (b *BreedBuilder) WithNumLegs(value int64) *BreedBuilder

WithNumLegs sets the numLegs attribute of the BreedBuilder.

func (*BreedBuilder) WithSpecies

func (b *BreedBuilder) WithSpecies(value string) *BreedBuilder

WithSpecies sets the species attribute of the BreedBuilder.

type BreedIterator

type BreedIterator interface {
	MoveNext() bool
	Current() Breed
}

breedIterator provides for iteration over a set of breedIterator tuples.

type BreedRelation

type BreedRelation struct {
	// contains filtered or unexported fields
}

BreedRelation represents a set of Breed.

func (BreedRelation) Count

func (d BreedRelation) Count() int

Count returns the number of tuples in d.

func (BreedRelation) Delete

func (r BreedRelation) Delete(t Breed) (PetShopModel, error)

Delete deletes t from the model.

func (BreedRelation) DeleteWhere

func (r BreedRelation) DeleteWhere(where func(t Breed) bool) (PetShopModel, error)

DeleteWhere deletes tuples matching `where` from r.

func (BreedRelation) Insert

func (r BreedRelation) Insert() *BreedBuilder

Insert creates a builder to insert a new Breed.

func (BreedRelation) Iterator

func (r BreedRelation) Iterator() BreedIterator

Iterator returns an iterator over Breed tuples in r.

func (BreedRelation) Lookup

func (r BreedRelation) Lookup(breedID int64) (Breed, bool)

Lookup searches Breed by primary key.

func (BreedRelation) MarshalJSON

func (d BreedRelation) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*BreedRelation) UnmarshalJSON

func (d *BreedRelation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (BreedRelation) Update

func (r BreedRelation) Update(t Breed) *BreedBuilder

Update creates a builder to update t in the model.

type Employee

type Employee struct {
	// contains filtered or unexported fields
}

Employee is the public representation tuple in the model.

func (Employee) Dob

func (t Employee) Dob() *time.Time

Dob gets the dob attribute from the Employee.

func (Employee) EmployeeID

func (t Employee) EmployeeID() int64

EmployeeID gets the employeeId attribute from the Employee.

func (Employee) Error

func (t Employee) Error() int64

Error gets the error attribute from the Employee.

func (Employee) Name

func (t Employee) Name() *string

Name gets the name attribute from the Employee.

type EmployeeBuilder

type EmployeeBuilder struct {
	// contains filtered or unexported fields
}

EmployeeBuilder builds an instance of Employee in the model.

func (*EmployeeBuilder) Apply

func (b *EmployeeBuilder) Apply() (PetShopModel, Employee, error)

Apply applies the built Employee.

func (*EmployeeBuilder) WithDob

func (b *EmployeeBuilder) WithDob(value time.Time) *EmployeeBuilder

WithDob sets the dob attribute of the EmployeeBuilder.

func (*EmployeeBuilder) WithError

func (b *EmployeeBuilder) WithError(value int64) *EmployeeBuilder

WithError sets the error attribute of the EmployeeBuilder.

func (*EmployeeBuilder) WithName

func (b *EmployeeBuilder) WithName(value string) *EmployeeBuilder

WithName sets the name attribute of the EmployeeBuilder.

type EmployeeIterator

type EmployeeIterator interface {
	MoveNext() bool
	Current() Employee
}

employeeIterator provides for iteration over a set of employeeIterator tuples.

type EmployeeManagesEmployee

type EmployeeManagesEmployee struct {
	// contains filtered or unexported fields
}

EmployeeManagesEmployee is the public representation tuple in the model.

func (EmployeeManagesEmployee) EmployeeViaBossID

func (t EmployeeManagesEmployee) EmployeeViaBossID() Employee

EmployeeViaBossID gets the Employee corresponding to the bossId attribute from t.

func (EmployeeManagesEmployee) EmployeeViaMinionID

func (t EmployeeManagesEmployee) EmployeeViaMinionID() Employee

EmployeeViaMinionID gets the Employee corresponding to the minionId attribute from t.

type EmployeeManagesEmployeeBuilder

type EmployeeManagesEmployeeBuilder struct {
	// contains filtered or unexported fields
}

EmployeeManagesEmployeeBuilder builds an instance of EmployeeManagesEmployee in the model.

func (*EmployeeManagesEmployeeBuilder) Apply

Apply applies the built EmployeeManagesEmployee.

func (*EmployeeManagesEmployeeBuilder) WithEmployeeForBossID

WithEmployeeForBossID sets the bossId attribute of the EmployeeManagesEmployeeBuilder from t.

func (*EmployeeManagesEmployeeBuilder) WithEmployeeForMinionID

WithEmployeeForMinionID sets the minionId attribute of the EmployeeManagesEmployeeBuilder from t.

type EmployeeManagesEmployeeIterator

type EmployeeManagesEmployeeIterator interface {
	MoveNext() bool
	Current() EmployeeManagesEmployee
}

employeeManagesEmployeeIterator provides for iteration over a set of employeeManagesEmployeeIterator tuples.

type EmployeeManagesEmployeeRelation

type EmployeeManagesEmployeeRelation struct {
	// contains filtered or unexported fields
}

EmployeeManagesEmployeeRelation represents a set of EmployeeManagesEmployee.

func (EmployeeManagesEmployeeRelation) Count

func (d EmployeeManagesEmployeeRelation) Count() int

Count returns the number of tuples in d.

func (EmployeeManagesEmployeeRelation) Delete

Delete deletes t from the model.

func (EmployeeManagesEmployeeRelation) DeleteWhere

DeleteWhere deletes tuples matching `where` from r.

func (EmployeeManagesEmployeeRelation) Insert

Insert creates a builder to insert a new EmployeeManagesEmployee.

func (EmployeeManagesEmployeeRelation) Iterator

Iterator returns an iterator over EmployeeManagesEmployee tuples in r.

func (EmployeeManagesEmployeeRelation) Lookup

Lookup searches EmployeeManagesEmployee by primary key.

func (EmployeeManagesEmployeeRelation) MarshalJSON

func (d EmployeeManagesEmployeeRelation) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*EmployeeManagesEmployeeRelation) UnmarshalJSON

func (d *EmployeeManagesEmployeeRelation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (EmployeeManagesEmployeeRelation) Update

Update creates a builder to update t in the model.

type EmployeeRelation

type EmployeeRelation struct {
	// contains filtered or unexported fields
}

EmployeeRelation represents a set of Employee.

func (EmployeeRelation) Count

func (d EmployeeRelation) Count() int

Count returns the number of tuples in d.

func (EmployeeRelation) Delete

Delete deletes t from the model.

func (EmployeeRelation) DeleteWhere

func (r EmployeeRelation) DeleteWhere(where func(t Employee) bool) (PetShopModel, error)

DeleteWhere deletes tuples matching `where` from r.

func (EmployeeRelation) Insert

func (r EmployeeRelation) Insert() *EmployeeBuilder

Insert creates a builder to insert a new Employee.

func (EmployeeRelation) Iterator

func (r EmployeeRelation) Iterator() EmployeeIterator

Iterator returns an iterator over Employee tuples in r.

func (EmployeeRelation) Lookup

func (r EmployeeRelation) Lookup(employeeID int64) (Employee, bool)

Lookup searches Employee by primary key.

func (EmployeeRelation) MarshalJSON

func (d EmployeeRelation) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*EmployeeRelation) UnmarshalJSON

func (d *EmployeeRelation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (EmployeeRelation) Update

Update creates a builder to update t in the model.

type EmployeeTendsPet

type EmployeeTendsPet struct {
	// contains filtered or unexported fields
}

EmployeeTendsPet is the public representation tuple in the model.

func (EmployeeTendsPet) Employee

func (t EmployeeTendsPet) Employee() Employee

Employee gets the Employee corresponding to the employeeId attribute from t.

func (EmployeeTendsPet) Pet

func (t EmployeeTendsPet) Pet() Pet

Pet gets the Pet corresponding to the petId attribute from t.

type EmployeeTendsPetBuilder

type EmployeeTendsPetBuilder struct {
	// contains filtered or unexported fields
}

EmployeeTendsPetBuilder builds an instance of EmployeeTendsPet in the model.

func (*EmployeeTendsPetBuilder) Apply

Apply applies the built EmployeeTendsPet.

func (*EmployeeTendsPetBuilder) WithEmployee

WithEmployee sets the employeeId attribute of the EmployeeTendsPetBuilder from t.

func (*EmployeeTendsPetBuilder) WithPet

WithPet sets the petId attribute of the EmployeeTendsPetBuilder from t.

type EmployeeTendsPetIterator

type EmployeeTendsPetIterator interface {
	MoveNext() bool
	Current() EmployeeTendsPet
}

employeeTendsPetIterator provides for iteration over a set of employeeTendsPetIterator tuples.

type EmployeeTendsPetRelation

type EmployeeTendsPetRelation struct {
	// contains filtered or unexported fields
}

EmployeeTendsPetRelation represents a set of EmployeeTendsPet.

func (EmployeeTendsPetRelation) Count

func (d EmployeeTendsPetRelation) Count() int

Count returns the number of tuples in d.

func (EmployeeTendsPetRelation) Delete

Delete deletes t from the model.

func (EmployeeTendsPetRelation) DeleteWhere

func (r EmployeeTendsPetRelation) DeleteWhere(where func(t EmployeeTendsPet) bool) (PetShopModel, error)

DeleteWhere deletes tuples matching `where` from r.

func (EmployeeTendsPetRelation) Insert

Insert creates a builder to insert a new EmployeeTendsPet.

func (EmployeeTendsPetRelation) Iterator

Iterator returns an iterator over EmployeeTendsPet tuples in r.

func (EmployeeTendsPetRelation) Lookup

func (r EmployeeTendsPetRelation) Lookup(employeeID int64, petID int64) (EmployeeTendsPet, bool)

Lookup searches EmployeeTendsPet by primary key.

func (EmployeeTendsPetRelation) MarshalJSON

func (d EmployeeTendsPetRelation) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*EmployeeTendsPetRelation) UnmarshalJSON

func (d *EmployeeTendsPetRelation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (EmployeeTendsPetRelation) Update

Update creates a builder to update t in the model.

type NoKeysAtAll

type NoKeysAtAll struct {
	// contains filtered or unexported fields
}

NoKeysAtAll is the public representation tuple in the model.

func (NoKeysAtAll) Age

func (t NoKeysAtAll) Age() *int64

Age gets the age attribute from the NoKeysAtAll.

func (NoKeysAtAll) Name

func (t NoKeysAtAll) Name() string

Name gets the name attribute from the NoKeysAtAll.

type NoKeysAtAllBuilder

type NoKeysAtAllBuilder struct {
	// contains filtered or unexported fields
}

NoKeysAtAllBuilder builds an instance of NoKeysAtAll in the model.

func (*NoKeysAtAllBuilder) Apply

Apply applies the built NoKeysAtAll.

func (*NoKeysAtAllBuilder) WithAge

func (b *NoKeysAtAllBuilder) WithAge(value int64) *NoKeysAtAllBuilder

WithAge sets the age attribute of the NoKeysAtAllBuilder.

func (*NoKeysAtAllBuilder) WithName

func (b *NoKeysAtAllBuilder) WithName(value string) *NoKeysAtAllBuilder

WithName sets the name attribute of the NoKeysAtAllBuilder.

type NoKeysAtAllIterator

type NoKeysAtAllIterator interface {
	MoveNext() bool
	Current() NoKeysAtAll
}

noKeysAtAllIterator provides for iteration over a set of noKeysAtAllIterator tuples.

type NoKeysAtAllRelation

type NoKeysAtAllRelation struct {
	// contains filtered or unexported fields
}

NoKeysAtAllRelation represents a set of NoKeysAtAll.

func (NoKeysAtAllRelation) Count

func (d NoKeysAtAllRelation) Count() int

Count returns the number of tuples in d.

func (NoKeysAtAllRelation) Iterator

Iterator returns an iterator over NoKeysAtAll tuples in r.

func (NoKeysAtAllRelation) MarshalJSON

func (d NoKeysAtAllRelation) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*NoKeysAtAllRelation) UnmarshalJSON

func (d *NoKeysAtAllRelation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Pet

type Pet struct {
	// contains filtered or unexported fields
}

Pet is the public representation tuple in the model.

func (Pet) Breed

func (t Pet) Breed() Breed

Breed gets the Breed corresponding to the breedId attribute from t.

func (Pet) Desexed

func (t Pet) Desexed() *bool

Desexed gets the desexed attribute from the Pet.

func (Pet) Dob

func (t Pet) Dob() *time.Time

Dob gets the dob attribute from the Pet.

func (Pet) Name

func (t Pet) Name() *string

Name gets the name attribute from the Pet.

func (Pet) NumLegs

func (t Pet) NumLegs() *int64

NumLegs gets the numLegs attribute from the Pet.

func (Pet) PetID

func (t Pet) PetID() int64

PetID gets the petId attribute from the Pet.

type PetBuilder

type PetBuilder struct {
	// contains filtered or unexported fields
}

PetBuilder builds an instance of Pet in the model.

func (*PetBuilder) Apply

func (b *PetBuilder) Apply() (PetShopModel, Pet, error)

Apply applies the built Pet.

func (*PetBuilder) WithBreed

func (b *PetBuilder) WithBreed(t Breed) *PetBuilder

WithBreed sets the breedId attribute of the PetBuilder from t.

func (*PetBuilder) WithDesexed

func (b *PetBuilder) WithDesexed(value bool) *PetBuilder

WithDesexed sets the desexed attribute of the PetBuilder.

func (*PetBuilder) WithDob

func (b *PetBuilder) WithDob(value time.Time) *PetBuilder

WithDob sets the dob attribute of the PetBuilder.

func (*PetBuilder) WithName

func (b *PetBuilder) WithName(value string) *PetBuilder

WithName sets the name attribute of the PetBuilder.

func (*PetBuilder) WithNumLegs

func (b *PetBuilder) WithNumLegs(value int64) *PetBuilder

WithNumLegs sets the numLegs attribute of the PetBuilder.

type PetIterator

type PetIterator interface {
	MoveNext() bool
	Current() Pet
}

petIterator provides for iteration over a set of petIterator tuples.

type PetRelation

type PetRelation struct {
	// contains filtered or unexported fields
}

PetRelation represents a set of Pet.

func (PetRelation) Count

func (d PetRelation) Count() int

Count returns the number of tuples in d.

func (PetRelation) Delete

func (r PetRelation) Delete(t Pet) (PetShopModel, error)

Delete deletes t from the model.

func (PetRelation) DeleteWhere

func (r PetRelation) DeleteWhere(where func(t Pet) bool) (PetShopModel, error)

DeleteWhere deletes tuples matching `where` from r.

func (PetRelation) Insert

func (r PetRelation) Insert() *PetBuilder

Insert creates a builder to insert a new Pet.

func (PetRelation) Iterator

func (r PetRelation) Iterator() PetIterator

Iterator returns an iterator over Pet tuples in r.

func (PetRelation) Lookup

func (r PetRelation) Lookup(petID int64) (Pet, bool)

Lookup searches Pet by primary key.

func (PetRelation) MarshalJSON

func (d PetRelation) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*PetRelation) UnmarshalJSON

func (d *PetRelation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (PetRelation) Update

func (r PetRelation) Update(t Pet) *PetBuilder

Update creates a builder to update t in the model.

type PetShopModel

type PetShopModel struct {
	// contains filtered or unexported fields
}

func NewPetShopModel

func NewPetShopModel() PetShopModel

NewPetShopModel creates a new PetShopModel.

func (PetShopModel) GetBreed

func (m PetShopModel) GetBreed() *BreedRelation

Breed returns the model's Breed relation.

func (PetShopModel) GetEmployee

func (m PetShopModel) GetEmployee() *EmployeeRelation

Employee returns the model's Employee relation.

func (PetShopModel) GetEmployeeManagesEmployee

func (m PetShopModel) GetEmployeeManagesEmployee() *EmployeeManagesEmployeeRelation

EmployeeManagesEmployee returns the model's EmployeeManagesEmployee relation.

func (PetShopModel) GetEmployeeTendsPet

func (m PetShopModel) GetEmployeeTendsPet() *EmployeeTendsPetRelation

EmployeeTendsPet returns the model's EmployeeTendsPet relation.

func (PetShopModel) GetNoKeysAtAll

func (m PetShopModel) GetNoKeysAtAll() *NoKeysAtAllRelation

NoKeysAtAll returns the model's NoKeysAtAll relation.

func (PetShopModel) GetPet

func (m PetShopModel) GetPet() *PetRelation

Pet returns the model's Pet relation.

func (PetShopModel) MarshalJSON

func (m PetShopModel) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*PetShopModel) UnmarshalJSON

func (m *PetShopModel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

Jump to

Keyboard shortcuts

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