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 ¶
- type Breed
- type BreedBuilder
- func (b *BreedBuilder) Apply() (PetShopModel, Breed, error)
- func (b *BreedBuilder) WithAvgLifespan(value decimal.Decimal64) *BreedBuilder
- func (b *BreedBuilder) WithAvgWeight(value decimal.Decimal64) *BreedBuilder
- func (b *BreedBuilder) WithBreedName(value string) *BreedBuilder
- func (b *BreedBuilder) WithLegRank(value int64) *BreedBuilder
- func (b *BreedBuilder) WithNumLegs(value int64) *BreedBuilder
- func (b *BreedBuilder) WithSpecies(value string) *BreedBuilder
- type BreedIterator
- type BreedRelation
- func (d BreedRelation) Count() int
- func (r BreedRelation) Delete(t Breed) (PetShopModel, error)
- func (r BreedRelation) DeleteWhere(where func(t Breed) bool) (PetShopModel, error)
- func (r BreedRelation) Insert() *BreedBuilder
- func (r BreedRelation) Iterator() BreedIterator
- func (r BreedRelation) Lookup(breedID int64) (Breed, bool)
- func (d BreedRelation) MarshalJSON() ([]byte, error)
- func (d *BreedRelation) UnmarshalJSON(data []byte) error
- func (r BreedRelation) Update(t Breed) *BreedBuilder
- type Employee
- type EmployeeBuilder
- type EmployeeIterator
- type EmployeeManagesEmployee
- type EmployeeManagesEmployeeBuilder
- func (b *EmployeeManagesEmployeeBuilder) Apply() (PetShopModel, EmployeeManagesEmployee, error)
- func (b *EmployeeManagesEmployeeBuilder) WithEmployeeForBossID(t Employee) *EmployeeManagesEmployeeBuilder
- func (b *EmployeeManagesEmployeeBuilder) WithEmployeeForMinionID(t Employee) *EmployeeManagesEmployeeBuilder
- type EmployeeManagesEmployeeIterator
- type EmployeeManagesEmployeeRelation
- func (d EmployeeManagesEmployeeRelation) Count() int
- func (r EmployeeManagesEmployeeRelation) Delete(t EmployeeManagesEmployee) (PetShopModel, error)
- func (r EmployeeManagesEmployeeRelation) DeleteWhere(where func(t EmployeeManagesEmployee) bool) (PetShopModel, error)
- func (r EmployeeManagesEmployeeRelation) Insert() *EmployeeManagesEmployeeBuilder
- func (r EmployeeManagesEmployeeRelation) Iterator() EmployeeManagesEmployeeIterator
- func (r EmployeeManagesEmployeeRelation) Lookup(bossID int64, minionID int64) (EmployeeManagesEmployee, bool)
- func (d EmployeeManagesEmployeeRelation) MarshalJSON() ([]byte, error)
- func (d *EmployeeManagesEmployeeRelation) UnmarshalJSON(data []byte) error
- func (r EmployeeManagesEmployeeRelation) Update(t EmployeeManagesEmployee) *EmployeeManagesEmployeeBuilder
- type EmployeeRelation
- func (d EmployeeRelation) Count() int
- func (r EmployeeRelation) Delete(t Employee) (PetShopModel, error)
- func (r EmployeeRelation) DeleteWhere(where func(t Employee) bool) (PetShopModel, error)
- func (r EmployeeRelation) Insert() *EmployeeBuilder
- func (r EmployeeRelation) Iterator() EmployeeIterator
- func (r EmployeeRelation) Lookup(employeeID int64) (Employee, bool)
- func (d EmployeeRelation) MarshalJSON() ([]byte, error)
- func (d *EmployeeRelation) UnmarshalJSON(data []byte) error
- func (r EmployeeRelation) Update(t Employee) *EmployeeBuilder
- type EmployeeTendsPet
- type EmployeeTendsPetBuilder
- type EmployeeTendsPetIterator
- type EmployeeTendsPetRelation
- func (d EmployeeTendsPetRelation) Count() int
- func (r EmployeeTendsPetRelation) Delete(t EmployeeTendsPet) (PetShopModel, error)
- func (r EmployeeTendsPetRelation) DeleteWhere(where func(t EmployeeTendsPet) bool) (PetShopModel, error)
- func (r EmployeeTendsPetRelation) Insert() *EmployeeTendsPetBuilder
- func (r EmployeeTendsPetRelation) Iterator() EmployeeTendsPetIterator
- func (r EmployeeTendsPetRelation) Lookup(employeeID int64, petID int64) (EmployeeTendsPet, bool)
- func (d EmployeeTendsPetRelation) MarshalJSON() ([]byte, error)
- func (d *EmployeeTendsPetRelation) UnmarshalJSON(data []byte) error
- func (r EmployeeTendsPetRelation) Update(t EmployeeTendsPet) *EmployeeTendsPetBuilder
- type NoKeysAtAll
- type NoKeysAtAllBuilder
- type NoKeysAtAllIterator
- type NoKeysAtAllRelation
- type Pet
- type PetBuilder
- func (b *PetBuilder) Apply() (PetShopModel, Pet, error)
- func (b *PetBuilder) WithBreed(t Breed) *PetBuilder
- func (b *PetBuilder) WithDesexed(value bool) *PetBuilder
- func (b *PetBuilder) WithDob(value time.Time) *PetBuilder
- func (b *PetBuilder) WithName(value string) *PetBuilder
- func (b *PetBuilder) WithNumLegs(value int64) *PetBuilder
- type PetIterator
- type PetRelation
- func (d PetRelation) Count() int
- func (r PetRelation) Delete(t Pet) (PetShopModel, error)
- func (r PetRelation) DeleteWhere(where func(t Pet) bool) (PetShopModel, error)
- func (r PetRelation) Insert() *PetBuilder
- func (r PetRelation) Iterator() PetIterator
- func (r PetRelation) Lookup(petID int64) (Pet, bool)
- func (d PetRelation) MarshalJSON() ([]byte, error)
- func (d *PetRelation) UnmarshalJSON(data []byte) error
- func (r PetRelation) Update(t Pet) *PetBuilder
- type PetShopModel
- func (m PetShopModel) GetBreed() *BreedRelation
- func (m PetShopModel) GetEmployee() *EmployeeRelation
- func (m PetShopModel) GetEmployeeManagesEmployee() *EmployeeManagesEmployeeRelation
- func (m PetShopModel) GetEmployeeTendsPet() *EmployeeTendsPetRelation
- func (m PetShopModel) GetNoKeysAtAll() *NoKeysAtAllRelation
- func (m PetShopModel) GetPet() *PetRelation
- func (m PetShopModel) MarshalJSON() ([]byte, error)
- func (m *PetShopModel) UnmarshalJSON(data []byte) error
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 ¶
AvgLifespan gets the avgLifespan 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 ¶
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 ¶
MarshalJSON implements json.Marshaler.
func (*BreedRelation) UnmarshalJSON ¶
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) EmployeeID ¶
EmployeeID gets the employeeId 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 ¶
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 ¶
func (b *EmployeeManagesEmployeeBuilder) Apply() (PetShopModel, EmployeeManagesEmployee, error)
Apply applies the built EmployeeManagesEmployee.
func (*EmployeeManagesEmployeeBuilder) WithEmployeeForBossID ¶
func (b *EmployeeManagesEmployeeBuilder) WithEmployeeForBossID(t Employee) *EmployeeManagesEmployeeBuilder
WithEmployeeForBossID sets the bossId attribute of the EmployeeManagesEmployeeBuilder from t.
func (*EmployeeManagesEmployeeBuilder) WithEmployeeForMinionID ¶
func (b *EmployeeManagesEmployeeBuilder) WithEmployeeForMinionID(t Employee) *EmployeeManagesEmployeeBuilder
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 ¶
func (r EmployeeManagesEmployeeRelation) Delete(t EmployeeManagesEmployee) (PetShopModel, error)
Delete deletes t from the model.
func (EmployeeManagesEmployeeRelation) DeleteWhere ¶
func (r EmployeeManagesEmployeeRelation) DeleteWhere(where func(t EmployeeManagesEmployee) bool) (PetShopModel, error)
DeleteWhere deletes tuples matching `where` from r.
func (EmployeeManagesEmployeeRelation) Insert ¶
func (r EmployeeManagesEmployeeRelation) Insert() *EmployeeManagesEmployeeBuilder
Insert creates a builder to insert a new EmployeeManagesEmployee.
func (EmployeeManagesEmployeeRelation) Iterator ¶
func (r EmployeeManagesEmployeeRelation) Iterator() EmployeeManagesEmployeeIterator
Iterator returns an iterator over EmployeeManagesEmployee tuples in r.
func (EmployeeManagesEmployeeRelation) Lookup ¶
func (r EmployeeManagesEmployeeRelation) Lookup(bossID int64, minionID int64) (EmployeeManagesEmployee, bool)
Lookup searches EmployeeManagesEmployee by primary key.
func (EmployeeManagesEmployeeRelation) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*EmployeeManagesEmployeeRelation) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (EmployeeManagesEmployeeRelation) Update ¶
func (r EmployeeManagesEmployeeRelation) Update(t EmployeeManagesEmployee) *EmployeeManagesEmployeeBuilder
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 ¶
func (r EmployeeRelation) Delete(t Employee) (PetShopModel, error)
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 ¶
MarshalJSON implements json.Marshaler.
func (*EmployeeRelation) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (EmployeeRelation) Update ¶
func (r EmployeeRelation) Update(t Employee) *EmployeeBuilder
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 ¶
func (b *EmployeeTendsPetBuilder) Apply() (PetShopModel, EmployeeTendsPet, error)
Apply applies the built EmployeeTendsPet.
func (*EmployeeTendsPetBuilder) WithEmployee ¶
func (b *EmployeeTendsPetBuilder) WithEmployee(t Employee) *EmployeeTendsPetBuilder
WithEmployee sets the employeeId attribute of the EmployeeTendsPetBuilder from t.
func (*EmployeeTendsPetBuilder) WithPet ¶
func (b *EmployeeTendsPetBuilder) WithPet(t Pet) *EmployeeTendsPetBuilder
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 ¶
func (r EmployeeTendsPetRelation) Delete(t EmployeeTendsPet) (PetShopModel, error)
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 ¶
func (r EmployeeTendsPetRelation) Insert() *EmployeeTendsPetBuilder
Insert creates a builder to insert a new EmployeeTendsPet.
func (EmployeeTendsPetRelation) Iterator ¶
func (r EmployeeTendsPetRelation) Iterator() EmployeeTendsPetIterator
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 ¶
MarshalJSON implements json.Marshaler.
func (*EmployeeTendsPetRelation) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (EmployeeTendsPetRelation) Update ¶
func (r EmployeeTendsPetRelation) Update(t EmployeeTendsPet) *EmployeeTendsPetBuilder
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 ¶
func (b *NoKeysAtAllBuilder) Apply() (PetShopModel, NoKeysAtAll, error)
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 ¶
func (r NoKeysAtAllRelation) Iterator() NoKeysAtAllIterator
Iterator returns an iterator over NoKeysAtAll tuples in r.
func (NoKeysAtAllRelation) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*NoKeysAtAllRelation) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type Pet ¶
type Pet struct {
// contains filtered or unexported fields
}
Pet is the public representation tuple in the model.
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 ¶
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 ¶
MarshalJSON implements json.Marshaler.
func (*PetRelation) UnmarshalJSON ¶
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.