Documentation ¶
Index ¶
- Constants
- func CountAddressByCity(ctx context.Context, city string) uint
- func CountAddressByID(ctx context.Context, id string) uint
- func CountAddressByPersonID(ctx context.Context, personID string) uint
- func CountAddressByStreet(ctx context.Context, street string) uint
- func CountLoginByID(ctx context.Context, id string) uint
- func CountLoginByIsEnabled(ctx context.Context, isEnabled bool) uint
- func CountLoginByPassword(ctx context.Context, password string) uint
- func CountLoginByPersonID(ctx context.Context, personID string) uint
- func CountLoginByUsername(ctx context.Context, username string) uint
- func CountMilestoneByID(ctx context.Context, id string) uint
- func CountMilestoneByName(ctx context.Context, name string) uint
- func CountMilestoneByProjectID(ctx context.Context, projectID string) uint
- func CountPersonByFirstName(ctx context.Context, firstName string) uint
- func CountPersonByID(ctx context.Context, id string) uint
- func CountPersonByLastName(ctx context.Context, lastName string) uint
- func CountPersonWithLockByFirstName(ctx context.Context, firstName string) uint
- func CountPersonWithLockByID(ctx context.Context, id string) uint
- func CountPersonWithLockByLastName(ctx context.Context, lastName string) uint
- func CountPersonWithLockBySysTimestamp(ctx context.Context, sysTimestamp datetime.DateTime) uint
- func CountProjectByBudget(ctx context.Context, budget string) uint
- func CountProjectByDescription(ctx context.Context, description string) uint
- func CountProjectByEndDate(ctx context.Context, endDate datetime.DateTime) uint
- func CountProjectByID(ctx context.Context, id string) uint
- func CountProjectByManagerID(ctx context.Context, managerID string) uint
- func CountProjectByName(ctx context.Context, name string) uint
- func CountProjectByNum(ctx context.Context, num int) uint
- func CountProjectByProjectStatusTypeID(ctx context.Context, projectStatusTypeID uint) uint
- func CountProjectBySpent(ctx context.Context, spent string) uint
- func CountProjectByStartDate(ctx context.Context, startDate datetime.DateTime) uint
- func CountTmpByD(ctx context.Context, d string) uint
- func CountTmpByI(ctx context.Context, i int) uint
- func CountTypeTestByDate(ctx context.Context, date datetime.DateTime) uint
- func CountTypeTestByDateTime(ctx context.Context, dateTime datetime.DateTime) uint
- func CountTypeTestByID(ctx context.Context, id string) uint
- func CountTypeTestByTestBit(ctx context.Context, testBit bool) uint
- func CountTypeTestByTestFloat(ctx context.Context, testFloat float32) uint
- func CountTypeTestByTestInt(ctx context.Context, testInt int) uint
- func CountTypeTestByTestText(ctx context.Context, testText string) uint
- func CountTypeTestByTestVarchar(ctx context.Context, testVarchar string) uint
- func CountTypeTestByTime(ctx context.Context, time datetime.DateTime) uint
- func CountTypeTestByTs(ctx context.Context, ts datetime.DateTime) uint
- func CountUnsupportedTypesByTypeBig(ctx context.Context, typeBig int64) uint
- func CountUnsupportedTypesByTypeBinary(ctx context.Context, typeBinary string) uint
- func CountUnsupportedTypesByTypeDecimal(ctx context.Context, typeDecimal string) uint
- func CountUnsupportedTypesByTypeDouble(ctx context.Context, typeDouble float32) uint
- func CountUnsupportedTypesByTypeEnum(ctx context.Context, typeEnum string) uint
- func CountUnsupportedTypesByTypeGeo(ctx context.Context, typeGeo string) uint
- func CountUnsupportedTypesByTypeLongtext(ctx context.Context, typeLongtext string) uint
- func CountUnsupportedTypesByTypeMedium(ctx context.Context, typeMedium int) uint
- func CountUnsupportedTypesByTypeMediumBlob(ctx context.Context, typeMediumBlob []byte) uint
- func CountUnsupportedTypesByTypeMultfk1(ctx context.Context, typeMultfk1 string) uint
- func CountUnsupportedTypesByTypeMultifk2(ctx context.Context, typeMultifk2 string) uint
- func CountUnsupportedTypesByTypePolygon(ctx context.Context, typePolygon string) uint
- func CountUnsupportedTypesByTypeSerial(ctx context.Context, typeSerial string) uint
- func CountUnsupportedTypesByTypeSet(ctx context.Context, typeSet string) uint
- func CountUnsupportedTypesByTypeSmall(ctx context.Context, typeSmall int) uint
- func CountUnsupportedTypesByTypeTinyBlob(ctx context.Context, typeTinyBlob []byte) uint
- func CountUnsupportedTypesByTypeUnsigned(ctx context.Context, typeUnsigned uint) uint
- func CountUnsupportedTypesByTypeVarbinary(ctx context.Context, typeVarbinary string) uint
- func DeleteAddress(ctx context.Context, pk string)
- func DeleteLogin(ctx context.Context, pk string)
- func DeleteMilestone(ctx context.Context, pk string)
- func DeletePerson(ctx context.Context, pk string)
- func DeletePersonWithLock(ctx context.Context, pk string)
- func DeleteProject(ctx context.Context, pk string)
- func DeleteTmp(ctx context.Context, pk string)
- func DeleteTypeTest(ctx context.Context, pk string)
- func DeleteUnsupportedTypes(ctx context.Context, pk string)
- func PersonTypeNames() []string
- func ProjectStatusTypeDescriptions() []string
- func ProjectStatusTypeGuidelines() []string
- func ProjectStatusTypeIsActives() []bool
- func ProjectStatusTypeNames() []string
- type Address
- func (o *Address) City() string
- func (o *Address) CityIsNull() bool
- func (o *Address) CityIsValid() bool
- func (o *Address) Delete(ctx context.Context)
- func (o *Address) Get(key string) interface{}
- func (o *Address) GetAlias(key string) query.AliasValue
- func (o *Address) ID() string
- func (o *Address) IDIsValid() bool
- func (o *Address) Initialize(ctx context.Context)
- func (o *Address) Insert(ctx context.Context)
- func (o *Address) IsDirty() bool
- func (o *Address) LoadPerson(ctx context.Context) *Person
- func (o *Address) MarshalBinary() (data []byte, err error)
- func (o *Address) Person() *Person
- func (o *Address) PersonID() string
- func (o *Address) PersonIDIsNull() bool
- func (o *Address) PersonIDIsValid() bool
- func (o *Address) PrimaryKey() string
- func (o *Address) Save(ctx context.Context)
- func (o *Address) SetCity(i interface{})
- func (o *Address) SetPerson(v *Person)
- func (o *Address) SetPersonID(i interface{})
- func (o *Address) SetStreet(v string)
- func (o *Address) Street() string
- func (o *Address) StreetIsValid() bool
- func (o *Address) String() string
- func (o *Address) UnmarshalBinary(data []byte) (err error)
- func (o *Address) Update(ctx context.Context)
- type AddressesBuilder
- func (b *AddressesBuilder) Alias(name string, n query.NodeI) *AddressesBuilder
- func (b *AddressesBuilder) Count(ctx context.Context, distinct bool, nodes ...query.NodeI) uint
- func (b *AddressesBuilder) Delete(ctx context.Context)
- func (b *AddressesBuilder) Distinct() *AddressesBuilder
- func (b *AddressesBuilder) Expand(n query.NodeI) *AddressesBuilder
- func (b *AddressesBuilder) Get(ctx context.Context) *Address
- func (b *AddressesBuilder) GroupBy(nodes ...query.NodeI) *AddressesBuilder
- func (b *AddressesBuilder) Having(node query.NodeI) *AddressesBuilder
- func (b *AddressesBuilder) Join(n query.NodeI, conditions ...query.NodeI) *AddressesBuilder
- func (b *AddressesBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *AddressesBuilder
- func (b *AddressesBuilder) Limit(maxRowCount int, offset int) *AddressesBuilder
- func (b *AddressesBuilder) Load(ctx context.Context) (addressSlice []*Address)
- func (b *AddressesBuilder) LoadI(ctx context.Context) (addressSlice []interface{})
- func (b *AddressesBuilder) OrderBy(nodes ...query.NodeI) *AddressesBuilder
- func (b *AddressesBuilder) Select(nodes ...query.NodeI) *AddressesBuilder
- func (b *AddressesBuilder) Subquery() *query.SubqueryNode
- func (b *AddressesBuilder) Where(c query.NodeI) *AddressesBuilder
- type Login
- func LoadLogin(ctx context.Context, primaryKey string, joinOrSelectNodes ...query.NodeI) *Login
- func LoadLoginByPersonID(ctx context.Context, person_id string, joinOrSelectNodes ...query.NodeI) *Login
- func LoadLoginByUsername(ctx context.Context, username string, joinOrSelectNodes ...query.NodeI) *Login
- func NewLogin(ctx context.Context) *Login
- func (o *Login) Delete(ctx context.Context)
- func (o *Login) Get(key string) interface{}
- func (o *Login) GetAlias(key string) query.AliasValue
- func (o *Login) ID() string
- func (o *Login) IDIsValid() bool
- func (o *Login) Initialize(ctx context.Context)
- func (o *Login) Insert(ctx context.Context)
- func (o *Login) IsDirty() bool
- func (o *Login) IsEnabled() bool
- func (o *Login) IsEnabledIsValid() bool
- func (o *Login) LoadPerson(ctx context.Context) *Person
- func (o *Login) MarshalBinary() (data []byte, err error)
- func (o *Login) Password() string
- func (o *Login) PasswordIsNull() bool
- func (o *Login) PasswordIsValid() bool
- func (o *Login) Person() *Person
- func (o *Login) PersonID() string
- func (o *Login) PersonIDIsNull() bool
- func (o *Login) PersonIDIsValid() bool
- func (o *Login) PrimaryKey() string
- func (o *Login) Save(ctx context.Context)
- func (o *Login) SetIsEnabled(v bool)
- func (o *Login) SetPassword(i interface{})
- func (o *Login) SetPerson(v *Person)
- func (o *Login) SetPersonID(i interface{})
- func (o *Login) SetUsername(v string)
- func (o *Login) String() string
- func (o *Login) UnmarshalBinary(data []byte) (err error)
- func (o *Login) Update(ctx context.Context)
- func (o *Login) Username() string
- func (o *Login) UsernameIsValid() bool
- type LoginsBuilder
- func (b *LoginsBuilder) Alias(name string, n query.NodeI) *LoginsBuilder
- func (b *LoginsBuilder) Count(ctx context.Context, distinct bool, nodes ...query.NodeI) uint
- func (b *LoginsBuilder) Delete(ctx context.Context)
- func (b *LoginsBuilder) Distinct() *LoginsBuilder
- func (b *LoginsBuilder) Expand(n query.NodeI) *LoginsBuilder
- func (b *LoginsBuilder) Get(ctx context.Context) *Login
- func (b *LoginsBuilder) GroupBy(nodes ...query.NodeI) *LoginsBuilder
- func (b *LoginsBuilder) Having(node query.NodeI) *LoginsBuilder
- func (b *LoginsBuilder) Join(n query.NodeI, conditions ...query.NodeI) *LoginsBuilder
- func (b *LoginsBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *LoginsBuilder
- func (b *LoginsBuilder) Limit(maxRowCount int, offset int) *LoginsBuilder
- func (b *LoginsBuilder) Load(ctx context.Context) (loginSlice []*Login)
- func (b *LoginsBuilder) LoadI(ctx context.Context) (loginSlice []interface{})
- func (b *LoginsBuilder) OrderBy(nodes ...query.NodeI) *LoginsBuilder
- func (b *LoginsBuilder) Select(nodes ...query.NodeI) *LoginsBuilder
- func (b *LoginsBuilder) Subquery() *query.SubqueryNode
- func (b *LoginsBuilder) Where(c query.NodeI) *LoginsBuilder
- type Milestone
- func (o *Milestone) Delete(ctx context.Context)
- func (o *Milestone) Get(key string) interface{}
- func (o *Milestone) GetAlias(key string) query.AliasValue
- func (o *Milestone) ID() string
- func (o *Milestone) IDIsValid() bool
- func (o *Milestone) Initialize(ctx context.Context)
- func (o *Milestone) Insert(ctx context.Context)
- func (o *Milestone) IsDirty() bool
- func (o *Milestone) LoadProject(ctx context.Context) *Project
- func (o *Milestone) MarshalBinary() (data []byte, err error)
- func (o *Milestone) Name() string
- func (o *Milestone) NameIsValid() bool
- func (o *Milestone) PrimaryKey() string
- func (o *Milestone) Project() *Project
- func (o *Milestone) ProjectID() string
- func (o *Milestone) ProjectIDIsValid() bool
- func (o *Milestone) Save(ctx context.Context)
- func (o *Milestone) SetName(v string)
- func (o *Milestone) SetProject(v *Project)
- func (o *Milestone) SetProjectID(v string)
- func (o *Milestone) String() string
- func (o *Milestone) UnmarshalBinary(data []byte) (err error)
- func (o *Milestone) Update(ctx context.Context)
- type MilestonesBuilder
- func (b *MilestonesBuilder) Alias(name string, n query.NodeI) *MilestonesBuilder
- func (b *MilestonesBuilder) Count(ctx context.Context, distinct bool, nodes ...query.NodeI) uint
- func (b *MilestonesBuilder) Delete(ctx context.Context)
- func (b *MilestonesBuilder) Distinct() *MilestonesBuilder
- func (b *MilestonesBuilder) Expand(n query.NodeI) *MilestonesBuilder
- func (b *MilestonesBuilder) Get(ctx context.Context) *Milestone
- func (b *MilestonesBuilder) GroupBy(nodes ...query.NodeI) *MilestonesBuilder
- func (b *MilestonesBuilder) Having(node query.NodeI) *MilestonesBuilder
- func (b *MilestonesBuilder) Join(n query.NodeI, conditions ...query.NodeI) *MilestonesBuilder
- func (b *MilestonesBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *MilestonesBuilder
- func (b *MilestonesBuilder) Limit(maxRowCount int, offset int) *MilestonesBuilder
- func (b *MilestonesBuilder) Load(ctx context.Context) (milestoneSlice []*Milestone)
- func (b *MilestonesBuilder) LoadI(ctx context.Context) (milestoneSlice []interface{})
- func (b *MilestonesBuilder) OrderBy(nodes ...query.NodeI) *MilestonesBuilder
- func (b *MilestonesBuilder) Select(nodes ...query.NodeI) *MilestonesBuilder
- func (b *MilestonesBuilder) Subquery() *query.SubqueryNode
- func (b *MilestonesBuilder) Where(c query.NodeI) *MilestonesBuilder
- type PeopleBuilder
- func (b *PeopleBuilder) Alias(name string, n query.NodeI) *PeopleBuilder
- func (b *PeopleBuilder) Count(ctx context.Context, distinct bool, nodes ...query.NodeI) uint
- func (b *PeopleBuilder) Delete(ctx context.Context)
- func (b *PeopleBuilder) Distinct() *PeopleBuilder
- func (b *PeopleBuilder) Expand(n query.NodeI) *PeopleBuilder
- func (b *PeopleBuilder) Get(ctx context.Context) *Person
- func (b *PeopleBuilder) GroupBy(nodes ...query.NodeI) *PeopleBuilder
- func (b *PeopleBuilder) Having(node query.NodeI) *PeopleBuilder
- func (b *PeopleBuilder) Join(n query.NodeI, conditions ...query.NodeI) *PeopleBuilder
- func (b *PeopleBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *PeopleBuilder
- func (b *PeopleBuilder) Limit(maxRowCount int, offset int) *PeopleBuilder
- func (b *PeopleBuilder) Load(ctx context.Context) (personSlice []*Person)
- func (b *PeopleBuilder) LoadI(ctx context.Context) (personSlice []interface{})
- func (b *PeopleBuilder) OrderBy(nodes ...query.NodeI) *PeopleBuilder
- func (b *PeopleBuilder) Select(nodes ...query.NodeI) *PeopleBuilder
- func (b *PeopleBuilder) Subquery() *query.SubqueryNode
- func (b *PeopleBuilder) Where(c query.NodeI) *PeopleBuilder
- type Person
- func (o *Person) Address(pk string) *Address
- func (o *Person) Addresses() []*Address
- func (o *Person) Delete(ctx context.Context)
- func (o *Person) FirstName() string
- func (o *Person) FirstNameIsValid() bool
- func (o *Person) Get(key string) interface{}
- func (o *Person) GetAlias(key string) query.AliasValue
- func (o *Person) ID() string
- func (o *Person) IDIsValid() bool
- func (o *Person) Initialize(ctx context.Context)
- func (o *Person) Insert(ctx context.Context)
- func (o *Person) IsDirty() bool
- func (o *Person) LastName() string
- func (o *Person) LastNameIsValid() bool
- func (o *Person) LoadAddresses(ctx context.Context, conditions ...interface{}) []*Address
- func (o *Person) LoadLogin(ctx context.Context) *Login
- func (o *Person) LoadProjectsAsManager(ctx context.Context, conditions ...interface{}) []*Project
- func (o *Person) Login() *Login
- func (o *Person) MarshalBinary() (data []byte, err error)
- func (o *Person) PersonType() PersonType
- func (o *Person) PersonTypes() []PersonType
- func (o *Person) PrimaryKey() string
- func (o *Person) ProjectAsManager(pk string) *Project
- func (o *Person) ProjectAsTeamMember() *Project
- func (o *Person) ProjectsAsManager() []*Project
- func (o *Person) ProjectsAsTeamMember() []*Project
- func (o *Person) Save(ctx context.Context)
- func (o *Person) SetFirstName(v string)
- func (o *Person) SetLastName(v string)
- func (o *Person) String() string
- func (o *Person) UnmarshalBinary(data []byte) (err error)
- func (o *Person) Update(ctx context.Context)
- type PersonType
- type PersonWithLock
- func (o *PersonWithLock) Delete(ctx context.Context)
- func (o *PersonWithLock) FirstName() string
- func (o *PersonWithLock) FirstNameIsValid() bool
- func (o *PersonWithLock) Get(key string) interface{}
- func (o *PersonWithLock) GetAlias(key string) query.AliasValue
- func (o *PersonWithLock) ID() string
- func (o *PersonWithLock) IDIsValid() bool
- func (o *PersonWithLock) Initialize(ctx context.Context)
- func (o *PersonWithLock) Insert(ctx context.Context)
- func (o *PersonWithLock) IsDirty() bool
- func (o *PersonWithLock) LastName() string
- func (o *PersonWithLock) LastNameIsValid() bool
- func (o *PersonWithLock) MarshalBinary() (data []byte, err error)
- func (o *PersonWithLock) PrimaryKey() string
- func (o *PersonWithLock) Save(ctx context.Context)
- func (o *PersonWithLock) SetFirstName(v string)
- func (o *PersonWithLock) SetLastName(v string)
- func (o *PersonWithLock) SetSysTimestamp(i interface{})
- func (o *PersonWithLock) String() string
- func (o *PersonWithLock) SysTimestamp() datetime.DateTime
- func (o *PersonWithLock) SysTimestampIsNull() bool
- func (o *PersonWithLock) SysTimestampIsValid() bool
- func (o *PersonWithLock) UnmarshalBinary(data []byte) (err error)
- func (o *PersonWithLock) Update(ctx context.Context)
- type PersonWithLocksBuilder
- func (b *PersonWithLocksBuilder) Alias(name string, n query.NodeI) *PersonWithLocksBuilder
- func (b *PersonWithLocksBuilder) Count(ctx context.Context, distinct bool, nodes ...query.NodeI) uint
- func (b *PersonWithLocksBuilder) Delete(ctx context.Context)
- func (b *PersonWithLocksBuilder) Distinct() *PersonWithLocksBuilder
- func (b *PersonWithLocksBuilder) Expand(n query.NodeI) *PersonWithLocksBuilder
- func (b *PersonWithLocksBuilder) Get(ctx context.Context) *PersonWithLock
- func (b *PersonWithLocksBuilder) GroupBy(nodes ...query.NodeI) *PersonWithLocksBuilder
- func (b *PersonWithLocksBuilder) Having(node query.NodeI) *PersonWithLocksBuilder
- func (b *PersonWithLocksBuilder) Join(n query.NodeI, conditions ...query.NodeI) *PersonWithLocksBuilder
- func (b *PersonWithLocksBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *PersonWithLocksBuilder
- func (b *PersonWithLocksBuilder) Limit(maxRowCount int, offset int) *PersonWithLocksBuilder
- func (b *PersonWithLocksBuilder) Load(ctx context.Context) (personWithLockSlice []*PersonWithLock)
- func (b *PersonWithLocksBuilder) LoadI(ctx context.Context) (personWithLockSlice []interface{})
- func (b *PersonWithLocksBuilder) OrderBy(nodes ...query.NodeI) *PersonWithLocksBuilder
- func (b *PersonWithLocksBuilder) Select(nodes ...query.NodeI) *PersonWithLocksBuilder
- func (b *PersonWithLocksBuilder) Subquery() *query.SubqueryNode
- func (b *PersonWithLocksBuilder) Where(c query.NodeI) *PersonWithLocksBuilder
- type Project
- func (o *Project) Budget() string
- func (o *Project) BudgetIsNull() bool
- func (o *Project) BudgetIsValid() bool
- func (o *Project) ChildAsParent() *Project
- func (o *Project) ChildrenAsParent() []*Project
- func (o *Project) Delete(ctx context.Context)
- func (o *Project) Description() string
- func (o *Project) DescriptionIsNull() bool
- func (o *Project) DescriptionIsValid() bool
- func (o *Project) EndDate() datetime.DateTime
- func (o *Project) EndDateIsNull() bool
- func (o *Project) EndDateIsValid() bool
- func (o *Project) Get(key string) interface{}
- func (o *Project) GetAlias(key string) query.AliasValue
- func (o *Project) ID() string
- func (o *Project) IDIsValid() bool
- func (o *Project) Initialize(ctx context.Context)
- func (o *Project) Insert(ctx context.Context)
- func (o *Project) IsDirty() bool
- func (o *Project) LoadManager(ctx context.Context) *Person
- func (o *Project) LoadMilestones(ctx context.Context, conditions ...interface{}) []*Milestone
- func (o *Project) Manager() *Person
- func (o *Project) ManagerID() string
- func (o *Project) ManagerIDIsNull() bool
- func (o *Project) ManagerIDIsValid() bool
- func (o *Project) MarshalBinary() (data []byte, err error)
- func (o *Project) Milestone(pk string) *Milestone
- func (o *Project) Milestones() []*Milestone
- func (o *Project) Name() string
- func (o *Project) NameIsValid() bool
- func (o *Project) Num() int
- func (o *Project) NumIsValid() bool
- func (o *Project) ParentAsChild() *Project
- func (o *Project) ParentsAsChild() []*Project
- func (o *Project) PrimaryKey() string
- func (o *Project) ProjectStatusType() ProjectStatusType
- func (o *Project) Save(ctx context.Context)
- func (o *Project) SetBudget(i interface{})
- func (o *Project) SetDescription(i interface{})
- func (o *Project) SetEndDate(i interface{})
- func (o *Project) SetManager(v *Person)
- func (o *Project) SetManagerID(i interface{})
- func (o *Project) SetName(v string)
- func (o *Project) SetNum(v int)
- func (o *Project) SetProjectStatusType(v ProjectStatusType)
- func (o *Project) SetSpent(i interface{})
- func (o *Project) SetStartDate(i interface{})
- func (o *Project) Spent() string
- func (o *Project) SpentIsNull() bool
- func (o *Project) SpentIsValid() bool
- func (o *Project) StartDate() datetime.DateTime
- func (o *Project) StartDateIsNull() bool
- func (o *Project) StartDateIsValid() bool
- func (o *Project) String() string
- func (o *Project) TeamMember() *Person
- func (o *Project) TeamMembers() []*Person
- func (o *Project) UnmarshalBinary(data []byte) (err error)
- func (o *Project) Update(ctx context.Context)
- type ProjectStatusType
- type ProjectsBuilder
- func (b *ProjectsBuilder) Alias(name string, n query.NodeI) *ProjectsBuilder
- func (b *ProjectsBuilder) Count(ctx context.Context, distinct bool, nodes ...query.NodeI) uint
- func (b *ProjectsBuilder) Delete(ctx context.Context)
- func (b *ProjectsBuilder) Distinct() *ProjectsBuilder
- func (b *ProjectsBuilder) Expand(n query.NodeI) *ProjectsBuilder
- func (b *ProjectsBuilder) Get(ctx context.Context) *Project
- func (b *ProjectsBuilder) GroupBy(nodes ...query.NodeI) *ProjectsBuilder
- func (b *ProjectsBuilder) Having(node query.NodeI) *ProjectsBuilder
- func (b *ProjectsBuilder) Join(n query.NodeI, conditions ...query.NodeI) *ProjectsBuilder
- func (b *ProjectsBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *ProjectsBuilder
- func (b *ProjectsBuilder) Limit(maxRowCount int, offset int) *ProjectsBuilder
- func (b *ProjectsBuilder) Load(ctx context.Context) (projectSlice []*Project)
- func (b *ProjectsBuilder) LoadI(ctx context.Context) (projectSlice []interface{})
- func (b *ProjectsBuilder) OrderBy(nodes ...query.NodeI) *ProjectsBuilder
- func (b *ProjectsBuilder) Select(nodes ...query.NodeI) *ProjectsBuilder
- func (b *ProjectsBuilder) Subquery() *query.SubqueryNode
- func (b *ProjectsBuilder) Where(c query.NodeI) *ProjectsBuilder
- type Tmp
- func (o *Tmp) D() string
- func (o *Tmp) DIsValid() bool
- func (o *Tmp) Delete(ctx context.Context)
- func (o *Tmp) Get(key string) interface{}
- func (o *Tmp) GetAlias(key string) query.AliasValue
- func (o *Tmp) I() int
- func (o *Tmp) IIsValid() bool
- func (o *Tmp) Initialize(ctx context.Context)
- func (o *Tmp) Insert(ctx context.Context)
- func (o *Tmp) IsDirty() bool
- func (o *Tmp) MarshalBinary() (data []byte, err error)
- func (o *Tmp) PrimaryKey() string
- func (o *Tmp) Save(ctx context.Context)
- func (o *Tmp) SetD(v string)
- func (o *Tmp) SetI(v int)
- func (o *Tmp) String() string
- func (o *Tmp) UnmarshalBinary(data []byte) (err error)
- func (o *Tmp) Update(ctx context.Context)
- type TmpsBuilder
- func (b *TmpsBuilder) Alias(name string, n query.NodeI) *TmpsBuilder
- func (b *TmpsBuilder) Count(ctx context.Context, distinct bool, nodes ...query.NodeI) uint
- func (b *TmpsBuilder) Delete(ctx context.Context)
- func (b *TmpsBuilder) Distinct() *TmpsBuilder
- func (b *TmpsBuilder) Expand(n query.NodeI) *TmpsBuilder
- func (b *TmpsBuilder) Get(ctx context.Context) *Tmp
- func (b *TmpsBuilder) GroupBy(nodes ...query.NodeI) *TmpsBuilder
- func (b *TmpsBuilder) Having(node query.NodeI) *TmpsBuilder
- func (b *TmpsBuilder) Join(n query.NodeI, conditions ...query.NodeI) *TmpsBuilder
- func (b *TmpsBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *TmpsBuilder
- func (b *TmpsBuilder) Limit(maxRowCount int, offset int) *TmpsBuilder
- func (b *TmpsBuilder) Load(ctx context.Context) (tmpSlice []*Tmp)
- func (b *TmpsBuilder) LoadI(ctx context.Context) (tmpSlice []interface{})
- func (b *TmpsBuilder) OrderBy(nodes ...query.NodeI) *TmpsBuilder
- func (b *TmpsBuilder) Select(nodes ...query.NodeI) *TmpsBuilder
- func (b *TmpsBuilder) Subquery() *query.SubqueryNode
- func (b *TmpsBuilder) Where(c query.NodeI) *TmpsBuilder
- type TypeTest
- func (o *TypeTest) Date() datetime.DateTime
- func (o *TypeTest) DateIsNull() bool
- func (o *TypeTest) DateIsValid() bool
- func (o *TypeTest) DateTime() datetime.DateTime
- func (o *TypeTest) DateTimeIsNull() bool
- func (o *TypeTest) DateTimeIsValid() bool
- func (o *TypeTest) Delete(ctx context.Context)
- func (o *TypeTest) Get(key string) interface{}
- func (o *TypeTest) GetAlias(key string) query.AliasValue
- func (o *TypeTest) ID() string
- func (o *TypeTest) IDIsValid() bool
- func (o *TypeTest) Initialize(ctx context.Context)
- func (o *TypeTest) Insert(ctx context.Context)
- func (o *TypeTest) IsDirty() bool
- func (o *TypeTest) MarshalBinary() (data []byte, err error)
- func (o *TypeTest) PrimaryKey() string
- func (o *TypeTest) Save(ctx context.Context)
- func (o *TypeTest) SetDate(i interface{})
- func (o *TypeTest) SetDateTime(i interface{})
- func (o *TypeTest) SetTestBit(i interface{})
- func (o *TypeTest) SetTestFloat(i interface{})
- func (o *TypeTest) SetTestInt(i interface{})
- func (o *TypeTest) SetTestText(i interface{})
- func (o *TypeTest) SetTestVarchar(i interface{})
- func (o *TypeTest) SetTime(i interface{})
- func (o *TypeTest) SetTs(i interface{})
- func (o *TypeTest) String() string
- func (o *TypeTest) TestBit() bool
- func (o *TypeTest) TestBitIsNull() bool
- func (o *TypeTest) TestBitIsValid() bool
- func (o *TypeTest) TestFloat() float32
- func (o *TypeTest) TestFloatIsNull() bool
- func (o *TypeTest) TestFloatIsValid() bool
- func (o *TypeTest) TestInt() int
- func (o *TypeTest) TestIntIsNull() bool
- func (o *TypeTest) TestIntIsValid() bool
- func (o *TypeTest) TestText() string
- func (o *TypeTest) TestTextIsNull() bool
- func (o *TypeTest) TestTextIsValid() bool
- func (o *TypeTest) TestVarchar() string
- func (o *TypeTest) TestVarcharIsNull() bool
- func (o *TypeTest) TestVarcharIsValid() bool
- func (o *TypeTest) Time() datetime.DateTime
- func (o *TypeTest) TimeIsNull() bool
- func (o *TypeTest) TimeIsValid() bool
- func (o *TypeTest) Ts() datetime.DateTime
- func (o *TypeTest) TsIsNull() bool
- func (o *TypeTest) TsIsValid() bool
- func (o *TypeTest) UnmarshalBinary(data []byte) (err error)
- func (o *TypeTest) Update(ctx context.Context)
- type TypeTestsBuilder
- func (b *TypeTestsBuilder) Alias(name string, n query.NodeI) *TypeTestsBuilder
- func (b *TypeTestsBuilder) Count(ctx context.Context, distinct bool, nodes ...query.NodeI) uint
- func (b *TypeTestsBuilder) Delete(ctx context.Context)
- func (b *TypeTestsBuilder) Distinct() *TypeTestsBuilder
- func (b *TypeTestsBuilder) Expand(n query.NodeI) *TypeTestsBuilder
- func (b *TypeTestsBuilder) Get(ctx context.Context) *TypeTest
- func (b *TypeTestsBuilder) GroupBy(nodes ...query.NodeI) *TypeTestsBuilder
- func (b *TypeTestsBuilder) Having(node query.NodeI) *TypeTestsBuilder
- func (b *TypeTestsBuilder) Join(n query.NodeI, conditions ...query.NodeI) *TypeTestsBuilder
- func (b *TypeTestsBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *TypeTestsBuilder
- func (b *TypeTestsBuilder) Limit(maxRowCount int, offset int) *TypeTestsBuilder
- func (b *TypeTestsBuilder) Load(ctx context.Context) (typeTestSlice []*TypeTest)
- func (b *TypeTestsBuilder) LoadI(ctx context.Context) (typeTestSlice []interface{})
- func (b *TypeTestsBuilder) OrderBy(nodes ...query.NodeI) *TypeTestsBuilder
- func (b *TypeTestsBuilder) Select(nodes ...query.NodeI) *TypeTestsBuilder
- func (b *TypeTestsBuilder) Subquery() *query.SubqueryNode
- func (b *TypeTestsBuilder) Where(c query.NodeI) *TypeTestsBuilder
- type UnsupportedTypes
- func LoadUnsupportedTypes(ctx context.Context, primaryKey string, joinOrSelectNodes ...query.NodeI) *UnsupportedTypes
- func LoadUnsupportedTypesByTypeSerial(ctx context.Context, type_serial string, joinOrSelectNodes ...query.NodeI) *UnsupportedTypes
- func NewUnsupportedTypes(ctx context.Context) *UnsupportedTypes
- func (o *UnsupportedTypes) Delete(ctx context.Context)
- func (o *UnsupportedTypes) Get(key string) interface{}
- func (o *UnsupportedTypes) GetAlias(key string) query.AliasValue
- func (o *UnsupportedTypes) Initialize(ctx context.Context)
- func (o *UnsupportedTypes) Insert(ctx context.Context)
- func (o *UnsupportedTypes) IsDirty() bool
- func (o *UnsupportedTypes) MarshalBinary() (data []byte, err error)
- func (o *UnsupportedTypes) PrimaryKey() string
- func (o *UnsupportedTypes) Save(ctx context.Context)
- func (o *UnsupportedTypes) SetTypeBig(v int64)
- func (o *UnsupportedTypes) SetTypeBinary(v string)
- func (o *UnsupportedTypes) SetTypeDecimal(v string)
- func (o *UnsupportedTypes) SetTypeDouble(v float32)
- func (o *UnsupportedTypes) SetTypeEnum(v string)
- func (o *UnsupportedTypes) SetTypeGeo(v string)
- func (o *UnsupportedTypes) SetTypeLongtext(v string)
- func (o *UnsupportedTypes) SetTypeMedium(v int)
- func (o *UnsupportedTypes) SetTypeMediumBlob(v []byte)
- func (o *UnsupportedTypes) SetTypeMultfk1(v string)
- func (o *UnsupportedTypes) SetTypeMultifk2(v string)
- func (o *UnsupportedTypes) SetTypePolygon(v string)
- func (o *UnsupportedTypes) SetTypeSet(v string)
- func (o *UnsupportedTypes) SetTypeSmall(v int)
- func (o *UnsupportedTypes) SetTypeTinyBlob(v []byte)
- func (o *UnsupportedTypes) SetTypeUnsigned(v uint)
- func (o *UnsupportedTypes) SetTypeVarbinary(v string)
- func (o *UnsupportedTypes) String() string
- func (o *UnsupportedTypes) TypeBig() int64
- func (o *UnsupportedTypes) TypeBigIsValid() bool
- func (o *UnsupportedTypes) TypeBinary() string
- func (o *UnsupportedTypes) TypeBinaryIsValid() bool
- func (o *UnsupportedTypes) TypeDecimal() string
- func (o *UnsupportedTypes) TypeDecimalIsValid() bool
- func (o *UnsupportedTypes) TypeDouble() float32
- func (o *UnsupportedTypes) TypeDoubleIsValid() bool
- func (o *UnsupportedTypes) TypeEnum() string
- func (o *UnsupportedTypes) TypeEnumIsValid() bool
- func (o *UnsupportedTypes) TypeGeo() string
- func (o *UnsupportedTypes) TypeGeoIsValid() bool
- func (o *UnsupportedTypes) TypeLongtext() string
- func (o *UnsupportedTypes) TypeLongtextIsValid() bool
- func (o *UnsupportedTypes) TypeMedium() int
- func (o *UnsupportedTypes) TypeMediumBlob() []byte
- func (o *UnsupportedTypes) TypeMediumBlobIsValid() bool
- func (o *UnsupportedTypes) TypeMediumIsValid() bool
- func (o *UnsupportedTypes) TypeMultfk1() string
- func (o *UnsupportedTypes) TypeMultfk1IsValid() bool
- func (o *UnsupportedTypes) TypeMultifk2() string
- func (o *UnsupportedTypes) TypeMultifk2IsValid() bool
- func (o *UnsupportedTypes) TypePolygon() string
- func (o *UnsupportedTypes) TypePolygonIsValid() bool
- func (o *UnsupportedTypes) TypeSerial() string
- func (o *UnsupportedTypes) TypeSerialIsValid() bool
- func (o *UnsupportedTypes) TypeSet() string
- func (o *UnsupportedTypes) TypeSetIsValid() bool
- func (o *UnsupportedTypes) TypeSmall() int
- func (o *UnsupportedTypes) TypeSmallIsValid() bool
- func (o *UnsupportedTypes) TypeTinyBlob() []byte
- func (o *UnsupportedTypes) TypeTinyBlobIsValid() bool
- func (o *UnsupportedTypes) TypeUnsigned() uint
- func (o *UnsupportedTypes) TypeUnsignedIsValid() bool
- func (o *UnsupportedTypes) TypeVarbinary() string
- func (o *UnsupportedTypes) TypeVarbinaryIsValid() bool
- func (o *UnsupportedTypes) UnmarshalBinary(data []byte) (err error)
- func (o *UnsupportedTypes) Update(ctx context.Context)
- type UnsupportedTypesBuilder
- func (b *UnsupportedTypesBuilder) Alias(name string, n query.NodeI) *UnsupportedTypesBuilder
- func (b *UnsupportedTypesBuilder) Count(ctx context.Context, distinct bool, nodes ...query.NodeI) uint
- func (b *UnsupportedTypesBuilder) Delete(ctx context.Context)
- func (b *UnsupportedTypesBuilder) Distinct() *UnsupportedTypesBuilder
- func (b *UnsupportedTypesBuilder) Expand(n query.NodeI) *UnsupportedTypesBuilder
- func (b *UnsupportedTypesBuilder) Get(ctx context.Context) *UnsupportedTypes
- func (b *UnsupportedTypesBuilder) GroupBy(nodes ...query.NodeI) *UnsupportedTypesBuilder
- func (b *UnsupportedTypesBuilder) Having(node query.NodeI) *UnsupportedTypesBuilder
- func (b *UnsupportedTypesBuilder) Join(n query.NodeI, conditions ...query.NodeI) *UnsupportedTypesBuilder
- func (b *UnsupportedTypesBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *UnsupportedTypesBuilder
- func (b *UnsupportedTypesBuilder) Limit(maxRowCount int, offset int) *UnsupportedTypesBuilder
- func (b *UnsupportedTypesBuilder) Load(ctx context.Context) (unsupportedTypesSlice []*UnsupportedTypes)
- func (b *UnsupportedTypesBuilder) LoadI(ctx context.Context) (unsupportedTypesSlice []interface{})
- func (b *UnsupportedTypesBuilder) OrderBy(nodes ...query.NodeI) *UnsupportedTypesBuilder
- func (b *UnsupportedTypesBuilder) Select(nodes ...query.NodeI) *UnsupportedTypesBuilder
- func (b *UnsupportedTypesBuilder) Subquery() *query.SubqueryNode
- func (b *UnsupportedTypesBuilder) Where(c query.NodeI) *UnsupportedTypesBuilder
Constants ¶
const ( AddressIDDefault = "" AddressPersonIDDefault = "" AddressStreetDefault = "" AddressCityDefault = "" )
const ( AddressID = `ID` AddressPersonID = `PersonID` AddressPerson = `Person` AddressStreet = `Street` AddressCity = `City` )
const ( LoginIDDefault = "" LoginPersonIDDefault = "" LoginUsernameDefault = "" LoginPasswordDefault = "" LoginIsEnabledDefault = false )
const ( LoginID = `ID` LoginPersonID = `PersonID` LoginPerson = `Person` LoginUsername = `Username` LoginPassword = `Password` LoginIsEnabled = `IsEnabled` )
const ( MilestoneIDDefault = "" MilestoneProjectIDDefault = "" MilestoneNameDefault = "" )
const ( MilestoneID = `ID` MilestoneProjectID = `ProjectID` MilestoneProject = `Project` MilestoneName = `Name` )
const ( PersonIDDefault = "" PersonFirstNameDefault = "" PersonLastNameDefault = "" )
const ( PersonID = `ID` PersonFirstName = `FirstName` PersonLastName = `LastName` PersonProjectsAsManager = `ProjectsAsManager` PersonLogin = `Login` PersonAddresses = `Addresses` PersonPersonType = `PersonType` PersonPersonTypes = `PersonTypes` PersonProjectAsTeamMember = `ProjectAsTeamMember` PersonProjectsAsTeamMember = `ProjectsAsTeamMember` )
const ( PersonWithLockIDDefault = "" PersonWithLockFirstNameDefault = "" PersonWithLockLastNameDefault = "" PersonWithLockSysTimestampDefault = datetime.Zero )
const ( PersonWithLockID = `ID` PersonWithLockFirstName = `FirstName` PersonWithLockLastName = `LastName` PersonWithLockSysTimestamp = `SysTimestamp` )
const ( ProjectIDDefault = "" ProjectNumDefault = 0 ProjectProjectStatusTypeIDDefault = 0 ProjectManagerIDDefault = "" ProjectNameDefault = "" ProjectDescriptionDefault = "" ProjectStartDateDefault = datetime.Zero ProjectEndDateDefault = datetime.Zero ProjectBudgetDefault = "" ProjectSpentDefault = "" )
const ( ProjectID = `ID` ProjectNum = `Num` ProjectProjectStatusTypeID = `ProjectStatusTypeID` ProjectProjectStatusType = `ProjectStatusType` ProjectManagerID = `ManagerID` ProjectManager = `Manager` ProjectName = `Name` ProjectDescription = `Description` ProjectStartDate = `StartDate` ProjectEndDate = `EndDate` ProjectBudget = `Budget` ProjectSpent = `Spent` ProjectMilestones = `Milestones` ProjectChildAsParent = `ChildAsParent` ProjectChildrenAsParent = `ChildrenAsParent` ProjectParentAsChild = `ParentAsChild` ProjectParentsAsChild = `ParentsAsChild` ProjectTeamMember = `TeamMember` ProjectTeamMembers = `TeamMembers` )
const ( TmpDDefault = "" TmpIDefault = 0 )
const ( TmpD = `D` TmpI = `I` )
const ( TypeTestIDDefault = "" TypeTestDateDefault = datetime.Zero TypeTestTimeDefault = datetime.Zero TypeTestDateTimeDefault = datetime.Zero TypeTestTsDefault = datetime.Zero TypeTestTestIntDefault = 5 TypeTestTestFloatDefault = 0.0 TypeTestTestTextDefault = "" TypeTestTestBitDefault = false TypeTestTestVarcharDefault = "" )
const ( TypeTestID = `ID` TypeTestDate = `Date` TypeTestTime = `Time` TypeTestDateTime = `DateTime` TypeTestTs = `Ts` TypeTestTestInt = `TestInt` TypeTestTestFloat = `TestFloat` TypeTestTestText = `TestText` TypeTestTestBit = `TestBit` TypeTestTestVarchar = `TestVarchar` )
const ( UnsupportedTypesTypeSetDefault = "" UnsupportedTypesTypeEnumDefault = "" UnsupportedTypesTypeDecimalDefault = "" UnsupportedTypesTypeDoubleDefault = 0.0 UnsupportedTypesTypeGeoDefault = "" UnsupportedTypesTypeVarbinaryDefault = "" UnsupportedTypesTypeLongtextDefault = "" UnsupportedTypesTypeBinaryDefault = "" UnsupportedTypesTypeSmallDefault = 0 UnsupportedTypesTypeMediumDefault = 0 UnsupportedTypesTypeBigDefault = 0 UnsupportedTypesTypePolygonDefault = "" UnsupportedTypesTypeSerialDefault = "" UnsupportedTypesTypeUnsignedDefault = 0 UnsupportedTypesTypeMultfk1Default = "" UnsupportedTypesTypeMultifk2Default = "" )
const ( UnsupportedTypesTypeSet = `TypeSet` UnsupportedTypesTypeEnum = `TypeEnum` UnsupportedTypesTypeDecimal = `TypeDecimal` UnsupportedTypesTypeDouble = `TypeDouble` UnsupportedTypesTypeGeo = `TypeGeo` UnsupportedTypesTypeTinyBlob = `TypeTinyBlob` UnsupportedTypesTypeMediumBlob = `TypeMediumBlob` UnsupportedTypesTypeVarbinary = `TypeVarbinary` UnsupportedTypesTypeLongtext = `TypeLongtext` UnsupportedTypesTypeBinary = `TypeBinary` UnsupportedTypesTypeSmall = `TypeSmall` UnsupportedTypesTypeMedium = `TypeMedium` UnsupportedTypesTypeBig = `TypeBig` UnsupportedTypesTypePolygon = `TypePolygon` UnsupportedTypesTypeSerial = `TypeSerial` UnsupportedTypesTypeUnsigned = `TypeUnsigned` UnsupportedTypesTypeMultfk1 = `TypeMultfk1` UnsupportedTypesTypeMultifk2 = `TypeMultifk2` )
const PersonTypeMaxValue = 5
const ProjectStatusTypeMaxValue = 3
Variables ¶
This section is empty.
Functions ¶
func CountAddressByPersonID ¶
func CountPersonByFirstName ¶
func CountProjectByEndDate ¶
func CountProjectByManagerID ¶
func CountProjectByStartDate ¶
func CountTypeTestByDate ¶
func CountTypeTestByDateTime ¶
func CountTypeTestByTestText ¶
func CountTypeTestByTime ¶
func DeleteAddress ¶
DeleteAddress deletes the given record from the database. Note that you can also delete loaded Address objects by calling Delete on them.
func DeleteLogin ¶
DeleteLogin deletes the given record from the database. Note that you can also delete loaded Login objects by calling Delete on them.
func DeleteMilestone ¶
DeleteMilestone deletes the given record from the database. Note that you can also delete loaded Milestone objects by calling Delete on them.
func DeletePerson ¶
DeletePerson deletes the given record from the database. Note that you can also delete loaded Person objects by calling Delete on them.
func DeletePersonWithLock ¶
DeletePersonWithLock deletes the given record from the database. Note that you can also delete loaded PersonWithLock objects by calling Delete on them.
func DeleteProject ¶
DeleteProject deletes the given record from the database. Note that you can also delete loaded Project objects by calling Delete on them.
func DeleteTmp ¶
DeleteTmp deletes the given record from the database. Note that you can also delete loaded Tmp objects by calling Delete on them.
func DeleteTypeTest ¶
DeleteTypeTest deletes the given record from the database. Note that you can also delete loaded TypeTest objects by calling Delete on them.
func DeleteUnsupportedTypes ¶
DeleteUnsupportedTypes deletes the given record from the database. Note that you can also delete loaded UnsupportedTypes objects by calling Delete on them.
func PersonTypeNames ¶
func PersonTypeNames() []string
func ProjectStatusTypeDescriptions ¶
func ProjectStatusTypeDescriptions() []string
func ProjectStatusTypeGuidelines ¶
func ProjectStatusTypeGuidelines() []string
func ProjectStatusTypeIsActives ¶
func ProjectStatusTypeIsActives() []bool
func ProjectStatusTypeNames ¶
func ProjectStatusTypeNames() []string
Types ¶
type Address ¶
type Address struct {
// contains filtered or unexported fields
}
func LoadAddress ¶
Load returns a Address from the database. joinOrSelectNodes lets you provide nodes for joining to other tables or selecting specific fields. Table nodes will be considered Join nodes, and column nodes will be Select nodes. See Join() and Select() for more info.
func NewAddress ¶
Create a new Address object and initialize to default values.
func (*Address) CityIsNull ¶
func (o *Address) CityIsNull() bool
CityIsNull returns true if the related database value is null.
func (*Address) CityIsValid ¶
func (o *Address) CityIsValid() bool
CityIsValid returns true if the value was loaded from the database or has been set.
func (*Address) Get ¶
func (o *Address) Get(key string) interface{}
Get returns the value of a field in the object based on the field's name. It will also get related objects if they are loaded. Invalid fields and objects are returned as nil
func (*Address) GetAlias ¶
func (o *Address) GetAlias(key string) query.AliasValue
GetAlias returns the alias for the given key.
func (*Address) IDIsValid ¶
func (o *Address) IDIsValid() bool
IDIsValid returns true if the value was loaded from the database or has been set.
func (*Address) Initialize ¶
Initialize or re-initialize a Address database object to default values.
func (*Address) Insert ¶
Insert forces the object to be inserted into the database. If the object was loaded from the database originally, this will create a duplicate in the database.
func (*Address) LoadPerson ¶
LoadPerson returns the related Person. If it is not already loaded, it will attempt to load it first.
func (*Address) MarshalBinary ¶
MarshalBinary serializes the object into a buffer that is deserializable using UnmarshalBinary. It should be used for transmitting database object over the wire, or for temporary storage. It does not send a version number, so if the data format changes, its up to you to invalidate the old stored objects. The framework uses this to serialize the object when it is stored in a control.
func (*Address) Person ¶
func (o *Address) Person() *Person
Person returns the current value of the loaded Person, and nil if its not loaded.
func (*Address) PersonIDIsNull ¶
func (o *Address) PersonIDIsNull() bool
PersonIDIsNull returns true if the related database value is null.
func (*Address) PersonIDIsValid ¶
func (o *Address) PersonIDIsValid() bool
PersonIDIsValid returns true if the value was loaded from the database or has been set.
func (*Address) PrimaryKey ¶
func (o *Address) PrimaryKey() string
func (*Address) Save ¶
Save will update or insert the object, depending on the state of the object. If it has any auto-generated ids, those will be updated.
func (*Address) SetPersonID ¶
func (o *Address) SetPersonID(i interface{})
func (*Address) SetStreet ¶
func (o *Address) SetStreet(v string)
SetStreet sets the value of Street in the object, to be saved later using the Save() function.
func (*Address) StreetIsValid ¶
func (o *Address) StreetIsValid() bool
StreetIsValid returns true if the value was loaded from the database or has been set.
func (*Address) String ¶
String implements the Stringer interface and returns the default label for the object as it appears in html lists. Typically you would change this to whatever was pertinent to your application.
func (*Address) UnmarshalBinary ¶
type AddressesBuilder ¶
type AddressesBuilder struct {
// contains filtered or unexported fields
}
The AddressesBuilder uses the QueryBuilderI interface from the database to build a query. All query operations go through this query builder. End a query by calling either Load, Count, or Delete
func QueryAddresses ¶
func QueryAddresses(ctx context.Context) *AddressesBuilder
QueryAddresses returns a new builder that gives you general purpose access to the Address records in the database. Its here to give public access to the query builder, but you can remove it if you do not need it.
func (*AddressesBuilder) Alias ¶
func (b *AddressesBuilder) Alias(name string, n query.NodeI) *AddressesBuilder
Alias lets you add a node with a custom name. After the query, you can read out the data using GetAlias() on a returned object. Alias is useful for adding calculations or subqueries to the query.
func (*AddressesBuilder) Count ¶
Count terminates a query and returns just the number of items selected.
func (*AddressesBuilder) Delete ¶
func (b *AddressesBuilder) Delete(ctx context.Context)
Delete uses the query builder to delete a group of records that match the criteria
func (*AddressesBuilder) Distinct ¶
func (b *AddressesBuilder) Distinct() *AddressesBuilder
Distinct removes duplicates from the results of the query. Adding a Select() may help you get to the data you want, although using Distinct with joined tables is often not effective, since we force joined tables to include primary keys in the query, and this often ruins the effect of Distinct.
func (*AddressesBuilder) Expand ¶
func (b *AddressesBuilder) Expand(n query.NodeI) *AddressesBuilder
Expand expands an array type node so that it will produce individual rows instead of an array of items
func (*AddressesBuilder) Get ¶
func (b *AddressesBuilder) Get(ctx context.Context) *Address
Get is a convenience method to return only the first item found in a query. It is equivalent to adding Limit(1,0) to the query, and then getting the first item from the returned slice. Limits with joins do not currently work, so don't try it if you have a join TODO: Change this to Load1 to be more descriptive and avoid confusion with other Getters
func (*AddressesBuilder) GroupBy ¶
func (b *AddressesBuilder) GroupBy(nodes ...query.NodeI) *AddressesBuilder
GroupBy controls how results are grouped when using aggregate functions in an Alias() call.
func (*AddressesBuilder) Having ¶
func (b *AddressesBuilder) Having(node query.NodeI) *AddressesBuilder
Having does additional filtering on the results of the query.
func (*AddressesBuilder) Join ¶
func (b *AddressesBuilder) Join(n query.NodeI, conditions ...query.NodeI) *AddressesBuilder
Join adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*AddressesBuilder) JoinOn ¶
func (b *AddressesBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *AddressesBuilder
JoinOn adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*AddressesBuilder) Limit ¶
func (b *AddressesBuilder) Limit(maxRowCount int, offset int) *AddressesBuilder
Limit will return a subset of the data, limited to the offset and number of rows specified
func (*AddressesBuilder) Load ¶
func (b *AddressesBuilder) Load(ctx context.Context) (addressSlice []*Address)
Load terminates the query builder, performs the query, and returns a slice of Address objects. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice
func (*AddressesBuilder) LoadI ¶
func (b *AddressesBuilder) LoadI(ctx context.Context) (addressSlice []interface{})
LoadI terminates the query builder, performs the query, and returns a slice of interfaces. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice.
func (*AddressesBuilder) OrderBy ¶
func (b *AddressesBuilder) OrderBy(nodes ...query.NodeI) *AddressesBuilder
OrderBy specifies how the resulting data should be sorted.
func (*AddressesBuilder) Select ¶
func (b *AddressesBuilder) Select(nodes ...query.NodeI) *AddressesBuilder
Select optimizes the query to only return the specified fields. Once you put a Select in your query, you must specify all the fields that you will eventually read out. Be careful when selecting fields in joined tables, as joined tables will also contain pointers back to the parent table, and so the parent node should have the same field selected as the child node if you are querying those fields.
func (*AddressesBuilder) Subquery ¶
func (b *AddressesBuilder) Subquery() *query.SubqueryNode
Subquery uses the query builder to define a subquery within a larger query. You MUST include what you are selecting by adding Alias or Select functions on the subquery builder. Generally you would use this as a node to an Alias function on the surrounding query builder.
func (*AddressesBuilder) Where ¶
func (b *AddressesBuilder) Where(c query.NodeI) *AddressesBuilder
Where adds a condition to filter what gets selected.
type Login ¶
type Login struct {
// contains filtered or unexported fields
}
func LoadLogin ¶
Load returns a Login from the database. joinOrSelectNodes lets you provide nodes for joining to other tables or selecting specific fields. Table nodes will be considered Join nodes, and column nodes will be Select nodes. See Join() and Select() for more info.
func LoadLoginByPersonID ¶
func LoadLoginByPersonID(ctx context.Context, person_id string, joinOrSelectNodes ...query.NodeI) *Login
LoadLoginByPersonID queries for a single Login object by the given unique index values. joinOrSelectNodes lets you provide nodes for joining to other tables or selecting specific fields. Table nodes will be considered Join nodes, and column nodes will be Select nodes. See Join() and Select() for more info. If you need a more elaborate query, use QueryLogins() to start a query builder.
func LoadLoginByUsername ¶
func LoadLoginByUsername(ctx context.Context, username string, joinOrSelectNodes ...query.NodeI) *Login
LoadLoginByUsername queries for a single Login object by the given unique index values. joinOrSelectNodes lets you provide nodes for joining to other tables or selecting specific fields. Table nodes will be considered Join nodes, and column nodes will be Select nodes. See Join() and Select() for more info. If you need a more elaborate query, use QueryLogins() to start a query builder.
func (*Login) Get ¶
func (o *Login) Get(key string) interface{}
Get returns the value of a field in the object based on the field's name. It will also get related objects if they are loaded. Invalid fields and objects are returned as nil
func (*Login) GetAlias ¶
func (o *Login) GetAlias(key string) query.AliasValue
GetAlias returns the alias for the given key.
func (*Login) IDIsValid ¶
func (o *Login) IDIsValid() bool
IDIsValid returns true if the value was loaded from the database or has been set.
func (*Login) Initialize ¶
Initialize or re-initialize a Login database object to default values.
func (*Login) Insert ¶
Insert forces the object to be inserted into the database. If the object was loaded from the database originally, this will create a duplicate in the database.
func (*Login) IsEnabledIsValid ¶
func (o *Login) IsEnabledIsValid() bool
IsEnabledIsValid returns true if the value was loaded from the database or has been set.
func (*Login) LoadPerson ¶
LoadPerson returns the related Person. If it is not already loaded, it will attempt to load it first.
func (*Login) MarshalBinary ¶
MarshalBinary serializes the object into a buffer that is deserializable using UnmarshalBinary. It should be used for transmitting database object over the wire, or for temporary storage. It does not send a version number, so if the data format changes, its up to you to invalidate the old stored objects. The framework uses this to serialize the object when it is stored in a control.
func (*Login) PasswordIsNull ¶
func (o *Login) PasswordIsNull() bool
PasswordIsNull returns true if the related database value is null.
func (*Login) PasswordIsValid ¶
func (o *Login) PasswordIsValid() bool
PasswordIsValid returns true if the value was loaded from the database or has been set.
func (*Login) Person ¶
func (o *Login) Person() *Person
Person returns the current value of the loaded Person, and nil if its not loaded.
func (*Login) PersonIDIsNull ¶
func (o *Login) PersonIDIsNull() bool
PersonIDIsNull returns true if the related database value is null.
func (*Login) PersonIDIsValid ¶
func (o *Login) PersonIDIsValid() bool
PersonIDIsValid returns true if the value was loaded from the database or has been set.
func (*Login) PrimaryKey ¶
func (o *Login) PrimaryKey() string
func (*Login) Save ¶
Save will update or insert the object, depending on the state of the object. If it has any auto-generated ids, those will be updated.
func (*Login) SetIsEnabled ¶
func (o *Login) SetIsEnabled(v bool)
SetIsEnabled sets the value of IsEnabled in the object, to be saved later using the Save() function.
func (*Login) SetPassword ¶
func (o *Login) SetPassword(i interface{})
func (*Login) SetPersonID ¶
func (o *Login) SetPersonID(i interface{})
func (*Login) SetUsername ¶
func (o *Login) SetUsername(v string)
SetUsername sets the value of Username in the object, to be saved later using the Save() function.
func (*Login) String ¶
String implements the Stringer interface and returns the default label for the object as it appears in html lists. Typically you would change this to whatever was pertinent to your application.
func (*Login) UnmarshalBinary ¶
func (*Login) UsernameIsValid ¶
func (o *Login) UsernameIsValid() bool
UsernameIsValid returns true if the value was loaded from the database or has been set.
type LoginsBuilder ¶
type LoginsBuilder struct {
// contains filtered or unexported fields
}
The LoginsBuilder uses the QueryBuilderI interface from the database to build a query. All query operations go through this query builder. End a query by calling either Load, Count, or Delete
func QueryLogins ¶
func QueryLogins(ctx context.Context) *LoginsBuilder
QueryLogins returns a new builder that gives you general purpose access to the Login records in the database. Its here to give public access to the query builder, but you can remove it if you do not need it.
func (*LoginsBuilder) Alias ¶
func (b *LoginsBuilder) Alias(name string, n query.NodeI) *LoginsBuilder
Alias lets you add a node with a custom name. After the query, you can read out the data using GetAlias() on a returned object. Alias is useful for adding calculations or subqueries to the query.
func (*LoginsBuilder) Count ¶
Count terminates a query and returns just the number of items selected.
func (*LoginsBuilder) Delete ¶
func (b *LoginsBuilder) Delete(ctx context.Context)
Delete uses the query builder to delete a group of records that match the criteria
func (*LoginsBuilder) Distinct ¶
func (b *LoginsBuilder) Distinct() *LoginsBuilder
Distinct removes duplicates from the results of the query. Adding a Select() may help you get to the data you want, although using Distinct with joined tables is often not effective, since we force joined tables to include primary keys in the query, and this often ruins the effect of Distinct.
func (*LoginsBuilder) Expand ¶
func (b *LoginsBuilder) Expand(n query.NodeI) *LoginsBuilder
Expand expands an array type node so that it will produce individual rows instead of an array of items
func (*LoginsBuilder) Get ¶
func (b *LoginsBuilder) Get(ctx context.Context) *Login
Get is a convenience method to return only the first item found in a query. It is equivalent to adding Limit(1,0) to the query, and then getting the first item from the returned slice. Limits with joins do not currently work, so don't try it if you have a join TODO: Change this to Load1 to be more descriptive and avoid confusion with other Getters
func (*LoginsBuilder) GroupBy ¶
func (b *LoginsBuilder) GroupBy(nodes ...query.NodeI) *LoginsBuilder
GroupBy controls how results are grouped when using aggregate functions in an Alias() call.
func (*LoginsBuilder) Having ¶
func (b *LoginsBuilder) Having(node query.NodeI) *LoginsBuilder
Having does additional filtering on the results of the query.
func (*LoginsBuilder) Join ¶
func (b *LoginsBuilder) Join(n query.NodeI, conditions ...query.NodeI) *LoginsBuilder
Join adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*LoginsBuilder) JoinOn ¶
func (b *LoginsBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *LoginsBuilder
JoinOn adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*LoginsBuilder) Limit ¶
func (b *LoginsBuilder) Limit(maxRowCount int, offset int) *LoginsBuilder
Limit will return a subset of the data, limited to the offset and number of rows specified
func (*LoginsBuilder) Load ¶
func (b *LoginsBuilder) Load(ctx context.Context) (loginSlice []*Login)
Load terminates the query builder, performs the query, and returns a slice of Login objects. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice
func (*LoginsBuilder) LoadI ¶
func (b *LoginsBuilder) LoadI(ctx context.Context) (loginSlice []interface{})
LoadI terminates the query builder, performs the query, and returns a slice of interfaces. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice.
func (*LoginsBuilder) OrderBy ¶
func (b *LoginsBuilder) OrderBy(nodes ...query.NodeI) *LoginsBuilder
OrderBy specifies how the resulting data should be sorted.
func (*LoginsBuilder) Select ¶
func (b *LoginsBuilder) Select(nodes ...query.NodeI) *LoginsBuilder
Select optimizes the query to only return the specified fields. Once you put a Select in your query, you must specify all the fields that you will eventually read out. Be careful when selecting fields in joined tables, as joined tables will also contain pointers back to the parent table, and so the parent node should have the same field selected as the child node if you are querying those fields.
func (*LoginsBuilder) Subquery ¶
func (b *LoginsBuilder) Subquery() *query.SubqueryNode
Subquery uses the query builder to define a subquery within a larger query. You MUST include what you are selecting by adding Alias or Select functions on the subquery builder. Generally you would use this as a node to an Alias function on the surrounding query builder.
func (*LoginsBuilder) Where ¶
func (b *LoginsBuilder) Where(c query.NodeI) *LoginsBuilder
Where adds a condition to filter what gets selected.
type Milestone ¶
type Milestone struct {
// contains filtered or unexported fields
}
func LoadMilestone ¶
func LoadMilestone(ctx context.Context, primaryKey string, joinOrSelectNodes ...query.NodeI) *Milestone
Load returns a Milestone from the database. joinOrSelectNodes lets you provide nodes for joining to other tables or selecting specific fields. Table nodes will be considered Join nodes, and column nodes will be Select nodes. See Join() and Select() for more info.
func NewMilestone ¶
Create a new Milestone object and initialize to default values.
func (*Milestone) Get ¶
func (o *Milestone) Get(key string) interface{}
Get returns the value of a field in the object based on the field's name. It will also get related objects if they are loaded. Invalid fields and objects are returned as nil
func (*Milestone) GetAlias ¶
func (o *Milestone) GetAlias(key string) query.AliasValue
GetAlias returns the alias for the given key.
func (*Milestone) IDIsValid ¶
func (o *Milestone) IDIsValid() bool
IDIsValid returns true if the value was loaded from the database or has been set.
func (*Milestone) Initialize ¶
Initialize or re-initialize a Milestone database object to default values.
func (*Milestone) Insert ¶
Insert forces the object to be inserted into the database. If the object was loaded from the database originally, this will create a duplicate in the database.
func (*Milestone) LoadProject ¶
LoadProject returns the related Project. If it is not already loaded, it will attempt to load it first.
func (*Milestone) MarshalBinary ¶
MarshalBinary serializes the object into a buffer that is deserializable using UnmarshalBinary. It should be used for transmitting database object over the wire, or for temporary storage. It does not send a version number, so if the data format changes, its up to you to invalidate the old stored objects. The framework uses this to serialize the object when it is stored in a control.
func (*Milestone) NameIsValid ¶
func (o *Milestone) NameIsValid() bool
NameIsValid returns true if the value was loaded from the database or has been set.
func (*Milestone) PrimaryKey ¶
func (o *Milestone) PrimaryKey() string
func (*Milestone) Project ¶
func (o *Milestone) Project() *Project
Project returns the current value of the loaded Project, and nil if its not loaded.
func (*Milestone) ProjectIDIsValid ¶
func (o *Milestone) ProjectIDIsValid() bool
ProjectIDIsValid returns true if the value was loaded from the database or has been set.
func (*Milestone) Save ¶
Save will update or insert the object, depending on the state of the object. If it has any auto-generated ids, those will be updated.
func (*Milestone) SetName ¶
func (o *Milestone) SetName(v string)
SetName sets the value of Name in the object, to be saved later using the Save() function.
func (*Milestone) SetProject ¶
func (o *Milestone) SetProject(v *Project)
SetProject sets the value of Project in the object, to be saved later using the Save() function.
func (*Milestone) SetProjectID ¶
func (o *Milestone) SetProjectID(v string)
SetProjectID sets the value of ProjectID in the object, to be saved later using the Save() function.
func (*Milestone) String ¶
String implements the Stringer interface and returns the default label for the object as it appears in html lists. Typically you would change this to whatever was pertinent to your application.
func (*Milestone) UnmarshalBinary ¶
type MilestonesBuilder ¶
type MilestonesBuilder struct {
// contains filtered or unexported fields
}
The MilestonesBuilder uses the QueryBuilderI interface from the database to build a query. All query operations go through this query builder. End a query by calling either Load, Count, or Delete
func QueryMilestones ¶
func QueryMilestones(ctx context.Context) *MilestonesBuilder
QueryMilestones returns a new builder that gives you general purpose access to the Milestone records in the database. Its here to give public access to the query builder, but you can remove it if you do not need it.
func (*MilestonesBuilder) Alias ¶
func (b *MilestonesBuilder) Alias(name string, n query.NodeI) *MilestonesBuilder
Alias lets you add a node with a custom name. After the query, you can read out the data using GetAlias() on a returned object. Alias is useful for adding calculations or subqueries to the query.
func (*MilestonesBuilder) Count ¶
Count terminates a query and returns just the number of items selected.
func (*MilestonesBuilder) Delete ¶
func (b *MilestonesBuilder) Delete(ctx context.Context)
Delete uses the query builder to delete a group of records that match the criteria
func (*MilestonesBuilder) Distinct ¶
func (b *MilestonesBuilder) Distinct() *MilestonesBuilder
Distinct removes duplicates from the results of the query. Adding a Select() may help you get to the data you want, although using Distinct with joined tables is often not effective, since we force joined tables to include primary keys in the query, and this often ruins the effect of Distinct.
func (*MilestonesBuilder) Expand ¶
func (b *MilestonesBuilder) Expand(n query.NodeI) *MilestonesBuilder
Expand expands an array type node so that it will produce individual rows instead of an array of items
func (*MilestonesBuilder) Get ¶
func (b *MilestonesBuilder) Get(ctx context.Context) *Milestone
Get is a convenience method to return only the first item found in a query. It is equivalent to adding Limit(1,0) to the query, and then getting the first item from the returned slice. Limits with joins do not currently work, so don't try it if you have a join TODO: Change this to Load1 to be more descriptive and avoid confusion with other Getters
func (*MilestonesBuilder) GroupBy ¶
func (b *MilestonesBuilder) GroupBy(nodes ...query.NodeI) *MilestonesBuilder
GroupBy controls how results are grouped when using aggregate functions in an Alias() call.
func (*MilestonesBuilder) Having ¶
func (b *MilestonesBuilder) Having(node query.NodeI) *MilestonesBuilder
Having does additional filtering on the results of the query.
func (*MilestonesBuilder) Join ¶
func (b *MilestonesBuilder) Join(n query.NodeI, conditions ...query.NodeI) *MilestonesBuilder
Join adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*MilestonesBuilder) JoinOn ¶
func (b *MilestonesBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *MilestonesBuilder
JoinOn adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*MilestonesBuilder) Limit ¶
func (b *MilestonesBuilder) Limit(maxRowCount int, offset int) *MilestonesBuilder
Limit will return a subset of the data, limited to the offset and number of rows specified
func (*MilestonesBuilder) Load ¶
func (b *MilestonesBuilder) Load(ctx context.Context) (milestoneSlice []*Milestone)
Load terminates the query builder, performs the query, and returns a slice of Milestone objects. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice
func (*MilestonesBuilder) LoadI ¶
func (b *MilestonesBuilder) LoadI(ctx context.Context) (milestoneSlice []interface{})
LoadI terminates the query builder, performs the query, and returns a slice of interfaces. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice.
func (*MilestonesBuilder) OrderBy ¶
func (b *MilestonesBuilder) OrderBy(nodes ...query.NodeI) *MilestonesBuilder
OrderBy specifies how the resulting data should be sorted.
func (*MilestonesBuilder) Select ¶
func (b *MilestonesBuilder) Select(nodes ...query.NodeI) *MilestonesBuilder
Select optimizes the query to only return the specified fields. Once you put a Select in your query, you must specify all the fields that you will eventually read out. Be careful when selecting fields in joined tables, as joined tables will also contain pointers back to the parent table, and so the parent node should have the same field selected as the child node if you are querying those fields.
func (*MilestonesBuilder) Subquery ¶
func (b *MilestonesBuilder) Subquery() *query.SubqueryNode
Subquery uses the query builder to define a subquery within a larger query. You MUST include what you are selecting by adding Alias or Select functions on the subquery builder. Generally you would use this as a node to an Alias function on the surrounding query builder.
func (*MilestonesBuilder) Where ¶
func (b *MilestonesBuilder) Where(c query.NodeI) *MilestonesBuilder
Where adds a condition to filter what gets selected.
type PeopleBuilder ¶
type PeopleBuilder struct {
// contains filtered or unexported fields
}
The PeopleBuilder uses the QueryBuilderI interface from the database to build a query. All query operations go through this query builder. End a query by calling either Load, Count, or Delete
func QueryPeople ¶
func QueryPeople(ctx context.Context) *PeopleBuilder
QueryPeople returns a new builder that gives you general purpose access to the Person records in the database. Its here to give public access to the query builder, but you can remove it if you do not need it.
func (*PeopleBuilder) Alias ¶
func (b *PeopleBuilder) Alias(name string, n query.NodeI) *PeopleBuilder
Alias lets you add a node with a custom name. After the query, you can read out the data using GetAlias() on a returned object. Alias is useful for adding calculations or subqueries to the query.
func (*PeopleBuilder) Count ¶
Count terminates a query and returns just the number of items selected.
func (*PeopleBuilder) Delete ¶
func (b *PeopleBuilder) Delete(ctx context.Context)
Delete uses the query builder to delete a group of records that match the criteria
func (*PeopleBuilder) Distinct ¶
func (b *PeopleBuilder) Distinct() *PeopleBuilder
Distinct removes duplicates from the results of the query. Adding a Select() may help you get to the data you want, although using Distinct with joined tables is often not effective, since we force joined tables to include primary keys in the query, and this often ruins the effect of Distinct.
func (*PeopleBuilder) Expand ¶
func (b *PeopleBuilder) Expand(n query.NodeI) *PeopleBuilder
Expand expands an array type node so that it will produce individual rows instead of an array of items
func (*PeopleBuilder) Get ¶
func (b *PeopleBuilder) Get(ctx context.Context) *Person
Get is a convenience method to return only the first item found in a query. It is equivalent to adding Limit(1,0) to the query, and then getting the first item from the returned slice. Limits with joins do not currently work, so don't try it if you have a join TODO: Change this to Load1 to be more descriptive and avoid confusion with other Getters
func (*PeopleBuilder) GroupBy ¶
func (b *PeopleBuilder) GroupBy(nodes ...query.NodeI) *PeopleBuilder
GroupBy controls how results are grouped when using aggregate functions in an Alias() call.
func (*PeopleBuilder) Having ¶
func (b *PeopleBuilder) Having(node query.NodeI) *PeopleBuilder
Having does additional filtering on the results of the query.
func (*PeopleBuilder) Join ¶
func (b *PeopleBuilder) Join(n query.NodeI, conditions ...query.NodeI) *PeopleBuilder
Join adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*PeopleBuilder) JoinOn ¶
func (b *PeopleBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *PeopleBuilder
JoinOn adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*PeopleBuilder) Limit ¶
func (b *PeopleBuilder) Limit(maxRowCount int, offset int) *PeopleBuilder
Limit will return a subset of the data, limited to the offset and number of rows specified
func (*PeopleBuilder) Load ¶
func (b *PeopleBuilder) Load(ctx context.Context) (personSlice []*Person)
Load terminates the query builder, performs the query, and returns a slice of Person objects. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice
func (*PeopleBuilder) LoadI ¶
func (b *PeopleBuilder) LoadI(ctx context.Context) (personSlice []interface{})
LoadI terminates the query builder, performs the query, and returns a slice of interfaces. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice.
func (*PeopleBuilder) OrderBy ¶
func (b *PeopleBuilder) OrderBy(nodes ...query.NodeI) *PeopleBuilder
OrderBy specifies how the resulting data should be sorted.
func (*PeopleBuilder) Select ¶
func (b *PeopleBuilder) Select(nodes ...query.NodeI) *PeopleBuilder
Select optimizes the query to only return the specified fields. Once you put a Select in your query, you must specify all the fields that you will eventually read out. Be careful when selecting fields in joined tables, as joined tables will also contain pointers back to the parent table, and so the parent node should have the same field selected as the child node if you are querying those fields.
func (*PeopleBuilder) Subquery ¶
func (b *PeopleBuilder) Subquery() *query.SubqueryNode
Subquery uses the query builder to define a subquery within a larger query. You MUST include what you are selecting by adding Alias or Select functions on the subquery builder. Generally you would use this as a node to an Alias function on the surrounding query builder.
func (*PeopleBuilder) Where ¶
func (b *PeopleBuilder) Where(c query.NodeI) *PeopleBuilder
Where adds a condition to filter what gets selected.
type Person ¶
type Person struct {
// contains filtered or unexported fields
}
func LoadPerson ¶
Load returns a Person from the database. joinOrSelectNodes lets you provide nodes for joining to other tables or selecting specific fields. Table nodes will be considered Join nodes, and column nodes will be Select nodes. See Join() and Select() for more info.
func (*Person) Address ¶
Address returns a single Address object by primary key, if one was loaded. Otherwise, it will return nil.
func (*Person) Addresses ¶
func (o *Person) Addresses() []*Address
Addresses returns a slice of Address objects if loaded.
func (*Person) FirstNameIsValid ¶
func (o *Person) FirstNameIsValid() bool
FirstNameIsValid returns true if the value was loaded from the database or has been set.
func (*Person) Get ¶
func (o *Person) Get(key string) interface{}
Get returns the value of a field in the object based on the field's name. It will also get related objects if they are loaded. Invalid fields and objects are returned as nil
func (*Person) GetAlias ¶
func (o *Person) GetAlias(key string) query.AliasValue
GetAlias returns the alias for the given key.
func (*Person) IDIsValid ¶
func (o *Person) IDIsValid() bool
IDIsValid returns true if the value was loaded from the database or has been set.
func (*Person) Initialize ¶
Initialize or re-initialize a Person database object to default values.
func (*Person) Insert ¶
Insert forces the object to be inserted into the database. If the object was loaded from the database originally, this will create a duplicate in the database.
func (*Person) LastNameIsValid ¶
func (o *Person) LastNameIsValid() bool
LastNameIsValid returns true if the value was loaded from the database or has been set.
func (*Person) LoadAddresses ¶
LoadAddresses loads a new slice of Address objects and returns it.
func (*Person) LoadLogin ¶
LoadLogin returns the connected Login object, if one was loaded otherwise, it will return nil.
func (*Person) LoadProjectsAsManager ¶
LoadProjectsAsManager loads a new slice of Project objects and returns it.
func (*Person) Login ¶
func (o *Person) Login() *Login
Login returns the connected Login object, if one was loaded otherwise, it will return nil.
func (*Person) MarshalBinary ¶
MarshalBinary serializes the object into a buffer that is deserializable using UnmarshalBinary. It should be used for transmitting database object over the wire, or for temporary storage. It does not send a version number, so if the data format changes, its up to you to invalidate the old stored objects. The framework uses this to serialize the object when it is stored in a control.
func (*Person) PersonType ¶
func (o *Person) PersonType() PersonType
PersonType returns a single PersonType object, if one was loaded otherwise, it will return zero.
func (*Person) PersonTypes ¶
func (o *Person) PersonTypes() []PersonType
PersonTypes returns a slice of PersonType objects if loaded.
func (*Person) PrimaryKey ¶
func (o *Person) PrimaryKey() string
func (*Person) ProjectAsManager ¶
ProjectAsManager returns a single Project object by primary key, if one was loaded. Otherwise, it will return nil.
func (*Person) ProjectAsTeamMember ¶
func (o *Person) ProjectAsTeamMember() *Project
ProjectAsTeamMember returns a single Project object, if one was loaded otherwise, it will return nil.
func (*Person) ProjectsAsManager ¶
func (o *Person) ProjectsAsManager() []*Project
ProjectsAsManager returns a slice of Project objects if loaded.
func (*Person) ProjectsAsTeamMember ¶
func (o *Person) ProjectsAsTeamMember() []*Project
ProjectsAsTeamMember returns a slice of Project objects if loaded. If not loaded, will return nil.
func (*Person) Save ¶
Save will update or insert the object, depending on the state of the object. If it has any auto-generated ids, those will be updated.
func (*Person) SetFirstName ¶
func (o *Person) SetFirstName(v string)
SetFirstName sets the value of FirstName in the object, to be saved later using the Save() function.
func (*Person) SetLastName ¶
func (o *Person) SetLastName(v string)
SetLastName sets the value of LastName in the object, to be saved later using the Save() function.
func (*Person) String ¶
String implements the Stringer interface and returns the default label for the object as it appears in html lists. Typically you would change this to whatever was pertinent to your application.
func (*Person) UnmarshalBinary ¶
type PersonType ¶
type PersonType uint
const ( PersonTypeContractor PersonType = 1 PersonTypeManager PersonType = 2 PersonTypeInactive PersonType = 3 PersonTypeCompanyCar PersonType = 4 PersonTypeWorksFromHome PersonType = 5 )
func PersonTypes ¶
func PersonTypes() (values []PersonType)
func (PersonType) ID ¶
func (p PersonType) ID() string
ID returns a string representation of the id and satisfies the IDer interface
func (PersonType) String ¶
func (p PersonType) String() string
String returns the name value of the type and satisfies the fmt.Stringer interface
type PersonWithLock ¶
type PersonWithLock struct {
// contains filtered or unexported fields
}
func LoadPersonWithLock ¶
func LoadPersonWithLock(ctx context.Context, primaryKey string, joinOrSelectNodes ...query.NodeI) *PersonWithLock
Load returns a PersonWithLock from the database. joinOrSelectNodes lets you provide nodes for joining to other tables or selecting specific fields. Table nodes will be considered Join nodes, and column nodes will be Select nodes. See Join() and Select() for more info.
func NewPersonWithLock ¶
func NewPersonWithLock(ctx context.Context) *PersonWithLock
Create a new PersonWithLock object and initialize to default values.
func (*PersonWithLock) FirstNameIsValid ¶
func (o *PersonWithLock) FirstNameIsValid() bool
FirstNameIsValid returns true if the value was loaded from the database or has been set.
func (*PersonWithLock) Get ¶
func (o *PersonWithLock) Get(key string) interface{}
Get returns the value of a field in the object based on the field's name. It will also get related objects if they are loaded. Invalid fields and objects are returned as nil
func (*PersonWithLock) GetAlias ¶
func (o *PersonWithLock) GetAlias(key string) query.AliasValue
GetAlias returns the alias for the given key.
func (*PersonWithLock) IDIsValid ¶
func (o *PersonWithLock) IDIsValid() bool
IDIsValid returns true if the value was loaded from the database or has been set.
func (*PersonWithLock) Initialize ¶
func (o *PersonWithLock) Initialize(ctx context.Context)
Initialize or re-initialize a PersonWithLock database object to default values.
func (*PersonWithLock) Insert ¶
Insert forces the object to be inserted into the database. If the object was loaded from the database originally, this will create a duplicate in the database.
func (*PersonWithLock) LastNameIsValid ¶
func (o *PersonWithLock) LastNameIsValid() bool
LastNameIsValid returns true if the value was loaded from the database or has been set.
func (*PersonWithLock) MarshalBinary ¶
MarshalBinary serializes the object into a buffer that is deserializable using UnmarshalBinary. It should be used for transmitting database object over the wire, or for temporary storage. It does not send a version number, so if the data format changes, its up to you to invalidate the old stored objects. The framework uses this to serialize the object when it is stored in a control.
func (*PersonWithLock) PrimaryKey ¶
func (o *PersonWithLock) PrimaryKey() string
func (*PersonWithLock) Save ¶
Save will update or insert the object, depending on the state of the object. If it has any auto-generated ids, those will be updated.
func (*PersonWithLock) SetFirstName ¶
func (o *PersonWithLock) SetFirstName(v string)
SetFirstName sets the value of FirstName in the object, to be saved later using the Save() function.
func (*PersonWithLock) SetLastName ¶
func (o *PersonWithLock) SetLastName(v string)
SetLastName sets the value of LastName in the object, to be saved later using the Save() function.
func (*PersonWithLock) SetSysTimestamp ¶
func (o *PersonWithLock) SetSysTimestamp(i interface{})
func (*PersonWithLock) String ¶
func (o *PersonWithLock) String() string
String implements the Stringer interface and returns the default label for the object as it appears in html lists. Typically you would change this to whatever was pertinent to your application.
func (*PersonWithLock) SysTimestamp ¶
func (*PersonWithLock) SysTimestampIsNull ¶
func (o *PersonWithLock) SysTimestampIsNull() bool
SysTimestampIsNull returns true if the related database value is null.
func (*PersonWithLock) SysTimestampIsValid ¶
func (o *PersonWithLock) SysTimestampIsValid() bool
SysTimestampIsValid returns true if the value was loaded from the database or has been set.
func (*PersonWithLock) UnmarshalBinary ¶
type PersonWithLocksBuilder ¶
type PersonWithLocksBuilder struct {
// contains filtered or unexported fields
}
The PersonWithLocksBuilder uses the QueryBuilderI interface from the database to build a query. All query operations go through this query builder. End a query by calling either Load, Count, or Delete
func QueryPersonWithLocks ¶
func QueryPersonWithLocks(ctx context.Context) *PersonWithLocksBuilder
QueryPersonWithLocks returns a new builder that gives you general purpose access to the PersonWithLock records in the database. Its here to give public access to the query builder, but you can remove it if you do not need it.
func (*PersonWithLocksBuilder) Alias ¶
func (b *PersonWithLocksBuilder) Alias(name string, n query.NodeI) *PersonWithLocksBuilder
Alias lets you add a node with a custom name. After the query, you can read out the data using GetAlias() on a returned object. Alias is useful for adding calculations or subqueries to the query.
func (*PersonWithLocksBuilder) Count ¶
func (b *PersonWithLocksBuilder) Count(ctx context.Context, distinct bool, nodes ...query.NodeI) uint
Count terminates a query and returns just the number of items selected.
func (*PersonWithLocksBuilder) Delete ¶
func (b *PersonWithLocksBuilder) Delete(ctx context.Context)
Delete uses the query builder to delete a group of records that match the criteria
func (*PersonWithLocksBuilder) Distinct ¶
func (b *PersonWithLocksBuilder) Distinct() *PersonWithLocksBuilder
Distinct removes duplicates from the results of the query. Adding a Select() may help you get to the data you want, although using Distinct with joined tables is often not effective, since we force joined tables to include primary keys in the query, and this often ruins the effect of Distinct.
func (*PersonWithLocksBuilder) Expand ¶
func (b *PersonWithLocksBuilder) Expand(n query.NodeI) *PersonWithLocksBuilder
Expand expands an array type node so that it will produce individual rows instead of an array of items
func (*PersonWithLocksBuilder) Get ¶
func (b *PersonWithLocksBuilder) Get(ctx context.Context) *PersonWithLock
Get is a convenience method to return only the first item found in a query. It is equivalent to adding Limit(1,0) to the query, and then getting the first item from the returned slice. Limits with joins do not currently work, so don't try it if you have a join TODO: Change this to Load1 to be more descriptive and avoid confusion with other Getters
func (*PersonWithLocksBuilder) GroupBy ¶
func (b *PersonWithLocksBuilder) GroupBy(nodes ...query.NodeI) *PersonWithLocksBuilder
GroupBy controls how results are grouped when using aggregate functions in an Alias() call.
func (*PersonWithLocksBuilder) Having ¶
func (b *PersonWithLocksBuilder) Having(node query.NodeI) *PersonWithLocksBuilder
Having does additional filtering on the results of the query.
func (*PersonWithLocksBuilder) Join ¶
func (b *PersonWithLocksBuilder) Join(n query.NodeI, conditions ...query.NodeI) *PersonWithLocksBuilder
Join adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*PersonWithLocksBuilder) JoinOn ¶
func (b *PersonWithLocksBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *PersonWithLocksBuilder
JoinOn adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*PersonWithLocksBuilder) Limit ¶
func (b *PersonWithLocksBuilder) Limit(maxRowCount int, offset int) *PersonWithLocksBuilder
Limit will return a subset of the data, limited to the offset and number of rows specified
func (*PersonWithLocksBuilder) Load ¶
func (b *PersonWithLocksBuilder) Load(ctx context.Context) (personWithLockSlice []*PersonWithLock)
Load terminates the query builder, performs the query, and returns a slice of PersonWithLock objects. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice
func (*PersonWithLocksBuilder) LoadI ¶
func (b *PersonWithLocksBuilder) LoadI(ctx context.Context) (personWithLockSlice []interface{})
LoadI terminates the query builder, performs the query, and returns a slice of interfaces. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice.
func (*PersonWithLocksBuilder) OrderBy ¶
func (b *PersonWithLocksBuilder) OrderBy(nodes ...query.NodeI) *PersonWithLocksBuilder
OrderBy specifies how the resulting data should be sorted.
func (*PersonWithLocksBuilder) Select ¶
func (b *PersonWithLocksBuilder) Select(nodes ...query.NodeI) *PersonWithLocksBuilder
Select optimizes the query to only return the specified fields. Once you put a Select in your query, you must specify all the fields that you will eventually read out. Be careful when selecting fields in joined tables, as joined tables will also contain pointers back to the parent table, and so the parent node should have the same field selected as the child node if you are querying those fields.
func (*PersonWithLocksBuilder) Subquery ¶
func (b *PersonWithLocksBuilder) Subquery() *query.SubqueryNode
Subquery uses the query builder to define a subquery within a larger query. You MUST include what you are selecting by adding Alias or Select functions on the subquery builder. Generally you would use this as a node to an Alias function on the surrounding query builder.
func (*PersonWithLocksBuilder) Where ¶
func (b *PersonWithLocksBuilder) Where(c query.NodeI) *PersonWithLocksBuilder
Where adds a condition to filter what gets selected.
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func LoadProject ¶
Load returns a Project from the database. joinOrSelectNodes lets you provide nodes for joining to other tables or selecting specific fields. Table nodes will be considered Join nodes, and column nodes will be Select nodes. See Join() and Select() for more info.
func LoadProjectByNum ¶
LoadProjectByNum queries for a single Project object by the given unique index values. joinOrSelectNodes lets you provide nodes for joining to other tables or selecting specific fields. Table nodes will be considered Join nodes, and column nodes will be Select nodes. See Join() and Select() for more info. If you need a more elaborate query, use QueryProjects() to start a query builder.
func NewProject ¶
Create a new Project object and initialize to default values.
func (*Project) BudgetIsNull ¶
func (o *Project) BudgetIsNull() bool
BudgetIsNull returns true if the related database value is null.
func (*Project) BudgetIsValid ¶
func (o *Project) BudgetIsValid() bool
BudgetIsValid returns true if the value was loaded from the database or has been set.
func (*Project) ChildAsParent ¶
func (o *Project) ChildAsParent() *Project
ChildAsParent returns a single Project object, if one was loaded otherwise, it will return nil.
func (*Project) ChildrenAsParent ¶
func (o *Project) ChildrenAsParent() []*Project
ChildrenAsParent returns a slice of Project objects if loaded. If not loaded, will return nil.
func (*Project) Description ¶
func (o *Project) Description() string
func (*Project) DescriptionIsNull ¶
func (o *Project) DescriptionIsNull() bool
DescriptionIsNull returns true if the related database value is null.
func (*Project) DescriptionIsValid ¶
func (o *Project) DescriptionIsValid() bool
DescriptionIsValid returns true if the value was loaded from the database or has been set.
func (*Project) EndDateIsNull ¶
func (o *Project) EndDateIsNull() bool
EndDateIsNull returns true if the related database value is null.
func (*Project) EndDateIsValid ¶
func (o *Project) EndDateIsValid() bool
EndDateIsValid returns true if the value was loaded from the database or has been set.
func (*Project) Get ¶
func (o *Project) Get(key string) interface{}
Get returns the value of a field in the object based on the field's name. It will also get related objects if they are loaded. Invalid fields and objects are returned as nil
func (*Project) GetAlias ¶
func (o *Project) GetAlias(key string) query.AliasValue
GetAlias returns the alias for the given key.
func (*Project) IDIsValid ¶
func (o *Project) IDIsValid() bool
IDIsValid returns true if the value was loaded from the database or has been set.
func (*Project) Initialize ¶
Initialize or re-initialize a Project database object to default values.
func (*Project) Insert ¶
Insert forces the object to be inserted into the database. If the object was loaded from the database originally, this will create a duplicate in the database.
func (*Project) LoadManager ¶
LoadManager returns the related Manager. If it is not already loaded, it will attempt to load it first.
func (*Project) LoadMilestones ¶
LoadMilestones loads a new slice of Milestone objects and returns it.
func (*Project) Manager ¶
func (o *Project) Manager() *Person
Manager returns the current value of the loaded Manager, and nil if its not loaded.
func (*Project) ManagerIDIsNull ¶
func (o *Project) ManagerIDIsNull() bool
ManagerIDIsNull returns true if the related database value is null.
func (*Project) ManagerIDIsValid ¶
func (o *Project) ManagerIDIsValid() bool
ManagerIDIsValid returns true if the value was loaded from the database or has been set.
func (*Project) MarshalBinary ¶
MarshalBinary serializes the object into a buffer that is deserializable using UnmarshalBinary. It should be used for transmitting database object over the wire, or for temporary storage. It does not send a version number, so if the data format changes, its up to you to invalidate the old stored objects. The framework uses this to serialize the object when it is stored in a control.
func (*Project) Milestone ¶
Milestone returns a single Milestone object by primary key, if one was loaded. Otherwise, it will return nil.
func (*Project) Milestones ¶
func (o *Project) Milestones() []*Milestone
Milestones returns a slice of Milestone objects if loaded.
func (*Project) NameIsValid ¶
func (o *Project) NameIsValid() bool
NameIsValid returns true if the value was loaded from the database or has been set.
func (*Project) NumIsValid ¶
func (o *Project) NumIsValid() bool
NumIsValid returns true if the value was loaded from the database or has been set.
func (*Project) ParentAsChild ¶
func (o *Project) ParentAsChild() *Project
ParentAsChild returns a single Project object, if one was loaded otherwise, it will return nil.
func (*Project) ParentsAsChild ¶
func (o *Project) ParentsAsChild() []*Project
ParentsAsChild returns a slice of Project objects if loaded. If not loaded, will return nil.
func (*Project) PrimaryKey ¶
func (o *Project) PrimaryKey() string
func (*Project) ProjectStatusType ¶
func (o *Project) ProjectStatusType() ProjectStatusType
func (*Project) Save ¶
Save will update or insert the object, depending on the state of the object. If it has any auto-generated ids, those will be updated.
func (*Project) SetDescription ¶
func (o *Project) SetDescription(i interface{})
func (*Project) SetEndDate ¶
func (o *Project) SetEndDate(i interface{})
func (*Project) SetManager ¶
func (o *Project) SetManager(v *Person)
func (*Project) SetManagerID ¶
func (o *Project) SetManagerID(i interface{})
func (*Project) SetName ¶
func (o *Project) SetName(v string)
SetName sets the value of Name in the object, to be saved later using the Save() function.
func (*Project) SetNum ¶
func (o *Project) SetNum(v int)
SetNum sets the value of Num in the object, to be saved later using the Save() function.
func (*Project) SetProjectStatusType ¶
func (o *Project) SetProjectStatusType(v ProjectStatusType)
func (*Project) SetStartDate ¶
func (o *Project) SetStartDate(i interface{})
func (*Project) SpentIsNull ¶
func (o *Project) SpentIsNull() bool
SpentIsNull returns true if the related database value is null.
func (*Project) SpentIsValid ¶
func (o *Project) SpentIsValid() bool
SpentIsValid returns true if the value was loaded from the database or has been set.
func (*Project) StartDateIsNull ¶
func (o *Project) StartDateIsNull() bool
StartDateIsNull returns true if the related database value is null.
func (*Project) StartDateIsValid ¶
func (o *Project) StartDateIsValid() bool
StartDateIsValid returns true if the value was loaded from the database or has been set.
func (*Project) String ¶
String implements the Stringer interface and returns the default label for the object as it appears in html lists. Typically you would change this to whatever was pertinent to your application.
func (*Project) TeamMember ¶
func (o *Project) TeamMember() *Person
TeamMember returns a single Person object, if one was loaded otherwise, it will return nil.
func (*Project) TeamMembers ¶
func (o *Project) TeamMembers() []*Person
TeamMembers returns a slice of Person objects if loaded. If not loaded, will return nil.
func (*Project) UnmarshalBinary ¶
type ProjectStatusType ¶
type ProjectStatusType uint
const ( ProjectStatusTypeOpen ProjectStatusType = 1 ProjectStatusTypeCancelled ProjectStatusType = 2 ProjectStatusTypeCompleted ProjectStatusType = 3 )
func ProjectStatusTypes ¶
func ProjectStatusTypes() (values []ProjectStatusType)
func (ProjectStatusType) Description ¶
func (p ProjectStatusType) Description() string
func (ProjectStatusType) Guidelines ¶
func (p ProjectStatusType) Guidelines() string
func (ProjectStatusType) ID ¶
func (p ProjectStatusType) ID() string
ID returns a string representation of the id and satisfies the IDer interface
func (ProjectStatusType) IsActive ¶
func (p ProjectStatusType) IsActive() bool
func (ProjectStatusType) String ¶
func (p ProjectStatusType) String() string
String returns the name value of the type and satisfies the fmt.Stringer interface
type ProjectsBuilder ¶
type ProjectsBuilder struct {
// contains filtered or unexported fields
}
The ProjectsBuilder uses the QueryBuilderI interface from the database to build a query. All query operations go through this query builder. End a query by calling either Load, Count, or Delete
func QueryProjects ¶
func QueryProjects(ctx context.Context) *ProjectsBuilder
QueryProjects returns a new builder that gives you general purpose access to the Project records in the database. Its here to give public access to the query builder, but you can remove it if you do not need it.
func (*ProjectsBuilder) Alias ¶
func (b *ProjectsBuilder) Alias(name string, n query.NodeI) *ProjectsBuilder
Alias lets you add a node with a custom name. After the query, you can read out the data using GetAlias() on a returned object. Alias is useful for adding calculations or subqueries to the query.
func (*ProjectsBuilder) Count ¶
Count terminates a query and returns just the number of items selected.
func (*ProjectsBuilder) Delete ¶
func (b *ProjectsBuilder) Delete(ctx context.Context)
Delete uses the query builder to delete a group of records that match the criteria
func (*ProjectsBuilder) Distinct ¶
func (b *ProjectsBuilder) Distinct() *ProjectsBuilder
Distinct removes duplicates from the results of the query. Adding a Select() may help you get to the data you want, although using Distinct with joined tables is often not effective, since we force joined tables to include primary keys in the query, and this often ruins the effect of Distinct.
func (*ProjectsBuilder) Expand ¶
func (b *ProjectsBuilder) Expand(n query.NodeI) *ProjectsBuilder
Expand expands an array type node so that it will produce individual rows instead of an array of items
func (*ProjectsBuilder) Get ¶
func (b *ProjectsBuilder) Get(ctx context.Context) *Project
Get is a convenience method to return only the first item found in a query. It is equivalent to adding Limit(1,0) to the query, and then getting the first item from the returned slice. Limits with joins do not currently work, so don't try it if you have a join TODO: Change this to Load1 to be more descriptive and avoid confusion with other Getters
func (*ProjectsBuilder) GroupBy ¶
func (b *ProjectsBuilder) GroupBy(nodes ...query.NodeI) *ProjectsBuilder
GroupBy controls how results are grouped when using aggregate functions in an Alias() call.
func (*ProjectsBuilder) Having ¶
func (b *ProjectsBuilder) Having(node query.NodeI) *ProjectsBuilder
Having does additional filtering on the results of the query.
func (*ProjectsBuilder) Join ¶
func (b *ProjectsBuilder) Join(n query.NodeI, conditions ...query.NodeI) *ProjectsBuilder
Join adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*ProjectsBuilder) JoinOn ¶
func (b *ProjectsBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *ProjectsBuilder
JoinOn adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*ProjectsBuilder) Limit ¶
func (b *ProjectsBuilder) Limit(maxRowCount int, offset int) *ProjectsBuilder
Limit will return a subset of the data, limited to the offset and number of rows specified
func (*ProjectsBuilder) Load ¶
func (b *ProjectsBuilder) Load(ctx context.Context) (projectSlice []*Project)
Load terminates the query builder, performs the query, and returns a slice of Project objects. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice
func (*ProjectsBuilder) LoadI ¶
func (b *ProjectsBuilder) LoadI(ctx context.Context) (projectSlice []interface{})
LoadI terminates the query builder, performs the query, and returns a slice of interfaces. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice.
func (*ProjectsBuilder) OrderBy ¶
func (b *ProjectsBuilder) OrderBy(nodes ...query.NodeI) *ProjectsBuilder
OrderBy specifies how the resulting data should be sorted.
func (*ProjectsBuilder) Select ¶
func (b *ProjectsBuilder) Select(nodes ...query.NodeI) *ProjectsBuilder
Select optimizes the query to only return the specified fields. Once you put a Select in your query, you must specify all the fields that you will eventually read out. Be careful when selecting fields in joined tables, as joined tables will also contain pointers back to the parent table, and so the parent node should have the same field selected as the child node if you are querying those fields.
func (*ProjectsBuilder) Subquery ¶
func (b *ProjectsBuilder) Subquery() *query.SubqueryNode
Subquery uses the query builder to define a subquery within a larger query. You MUST include what you are selecting by adding Alias or Select functions on the subquery builder. Generally you would use this as a node to an Alias function on the surrounding query builder.
func (*ProjectsBuilder) Where ¶
func (b *ProjectsBuilder) Where(c query.NodeI) *ProjectsBuilder
Where adds a condition to filter what gets selected.
type Tmp ¶
type Tmp struct {
// contains filtered or unexported fields
}
func LoadTmp ¶
Load returns a Tmp from the database. joinOrSelectNodes lets you provide nodes for joining to other tables or selecting specific fields. Table nodes will be considered Join nodes, and column nodes will be Select nodes. See Join() and Select() for more info.
func LoadTmpByD ¶
LoadTmpByD queries for a single Tmp object by the given unique index values. joinOrSelectNodes lets you provide nodes for joining to other tables or selecting specific fields. Table nodes will be considered Join nodes, and column nodes will be Select nodes. See Join() and Select() for more info. If you need a more elaborate query, use QueryTmps() to start a query builder.
func (*Tmp) DIsValid ¶
func (o *Tmp) DIsValid() bool
DIsValid returns true if the value was loaded from the database or has been set.
func (*Tmp) Get ¶
func (o *Tmp) Get(key string) interface{}
Get returns the value of a field in the object based on the field's name. It will also get related objects if they are loaded. Invalid fields and objects are returned as nil
func (*Tmp) GetAlias ¶
func (o *Tmp) GetAlias(key string) query.AliasValue
GetAlias returns the alias for the given key.
func (*Tmp) IIsValid ¶
func (o *Tmp) IIsValid() bool
IIsValid returns true if the value was loaded from the database or has been set.
func (*Tmp) Initialize ¶
Initialize or re-initialize a Tmp database object to default values.
func (*Tmp) Insert ¶
Insert forces the object to be inserted into the database. If the object was loaded from the database originally, this will create a duplicate in the database.
func (*Tmp) MarshalBinary ¶
MarshalBinary serializes the object into a buffer that is deserializable using UnmarshalBinary. It should be used for transmitting database object over the wire, or for temporary storage. It does not send a version number, so if the data format changes, its up to you to invalidate the old stored objects. The framework uses this to serialize the object when it is stored in a control.
func (*Tmp) PrimaryKey ¶
func (o *Tmp) PrimaryKey() string
func (*Tmp) Save ¶
Save will update or insert the object, depending on the state of the object. If it has any auto-generated ids, those will be updated.
func (*Tmp) SetD ¶
func (o *Tmp) SetD(v string)
SetD sets the value of D in the object, to be saved later using the Save() function.
func (*Tmp) SetI ¶
func (o *Tmp) SetI(v int)
SetI sets the value of I in the object, to be saved later using the Save() function.
func (*Tmp) String ¶
String implements the Stringer interface and returns the default label for the object as it appears in html lists. Typically you would change this to whatever was pertinent to your application.
func (*Tmp) UnmarshalBinary ¶
type TmpsBuilder ¶
type TmpsBuilder struct {
// contains filtered or unexported fields
}
The TmpsBuilder uses the QueryBuilderI interface from the database to build a query. All query operations go through this query builder. End a query by calling either Load, Count, or Delete
func QueryTmps ¶
func QueryTmps(ctx context.Context) *TmpsBuilder
QueryTmps returns a new builder that gives you general purpose access to the Tmp records in the database. Its here to give public access to the query builder, but you can remove it if you do not need it.
func (*TmpsBuilder) Alias ¶
func (b *TmpsBuilder) Alias(name string, n query.NodeI) *TmpsBuilder
Alias lets you add a node with a custom name. After the query, you can read out the data using GetAlias() on a returned object. Alias is useful for adding calculations or subqueries to the query.
func (*TmpsBuilder) Delete ¶
func (b *TmpsBuilder) Delete(ctx context.Context)
Delete uses the query builder to delete a group of records that match the criteria
func (*TmpsBuilder) Distinct ¶
func (b *TmpsBuilder) Distinct() *TmpsBuilder
Distinct removes duplicates from the results of the query. Adding a Select() may help you get to the data you want, although using Distinct with joined tables is often not effective, since we force joined tables to include primary keys in the query, and this often ruins the effect of Distinct.
func (*TmpsBuilder) Expand ¶
func (b *TmpsBuilder) Expand(n query.NodeI) *TmpsBuilder
Expand expands an array type node so that it will produce individual rows instead of an array of items
func (*TmpsBuilder) Get ¶
func (b *TmpsBuilder) Get(ctx context.Context) *Tmp
Get is a convenience method to return only the first item found in a query. It is equivalent to adding Limit(1,0) to the query, and then getting the first item from the returned slice. Limits with joins do not currently work, so don't try it if you have a join TODO: Change this to Load1 to be more descriptive and avoid confusion with other Getters
func (*TmpsBuilder) GroupBy ¶
func (b *TmpsBuilder) GroupBy(nodes ...query.NodeI) *TmpsBuilder
GroupBy controls how results are grouped when using aggregate functions in an Alias() call.
func (*TmpsBuilder) Having ¶
func (b *TmpsBuilder) Having(node query.NodeI) *TmpsBuilder
Having does additional filtering on the results of the query.
func (*TmpsBuilder) Join ¶
func (b *TmpsBuilder) Join(n query.NodeI, conditions ...query.NodeI) *TmpsBuilder
Join adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*TmpsBuilder) JoinOn ¶
func (b *TmpsBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *TmpsBuilder
JoinOn adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*TmpsBuilder) Limit ¶
func (b *TmpsBuilder) Limit(maxRowCount int, offset int) *TmpsBuilder
Limit will return a subset of the data, limited to the offset and number of rows specified
func (*TmpsBuilder) Load ¶
func (b *TmpsBuilder) Load(ctx context.Context) (tmpSlice []*Tmp)
Load terminates the query builder, performs the query, and returns a slice of Tmp objects. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice
func (*TmpsBuilder) LoadI ¶
func (b *TmpsBuilder) LoadI(ctx context.Context) (tmpSlice []interface{})
LoadI terminates the query builder, performs the query, and returns a slice of interfaces. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice.
func (*TmpsBuilder) OrderBy ¶
func (b *TmpsBuilder) OrderBy(nodes ...query.NodeI) *TmpsBuilder
OrderBy specifies how the resulting data should be sorted.
func (*TmpsBuilder) Select ¶
func (b *TmpsBuilder) Select(nodes ...query.NodeI) *TmpsBuilder
Select optimizes the query to only return the specified fields. Once you put a Select in your query, you must specify all the fields that you will eventually read out. Be careful when selecting fields in joined tables, as joined tables will also contain pointers back to the parent table, and so the parent node should have the same field selected as the child node if you are querying those fields.
func (*TmpsBuilder) Subquery ¶
func (b *TmpsBuilder) Subquery() *query.SubqueryNode
Subquery uses the query builder to define a subquery within a larger query. You MUST include what you are selecting by adding Alias or Select functions on the subquery builder. Generally you would use this as a node to an Alias function on the surrounding query builder.
func (*TmpsBuilder) Where ¶
func (b *TmpsBuilder) Where(c query.NodeI) *TmpsBuilder
Where adds a condition to filter what gets selected.
type TypeTest ¶
type TypeTest struct {
// contains filtered or unexported fields
}
func LoadTypeTest ¶
func LoadTypeTest(ctx context.Context, primaryKey string, joinOrSelectNodes ...query.NodeI) *TypeTest
Load returns a TypeTest from the database. joinOrSelectNodes lets you provide nodes for joining to other tables or selecting specific fields. Table nodes will be considered Join nodes, and column nodes will be Select nodes. See Join() and Select() for more info.
func NewTypeTest ¶
Create a new TypeTest object and initialize to default values.
func (*TypeTest) DateIsNull ¶
func (o *TypeTest) DateIsNull() bool
DateIsNull returns true if the related database value is null.
func (*TypeTest) DateIsValid ¶
func (o *TypeTest) DateIsValid() bool
DateIsValid returns true if the value was loaded from the database or has been set.
func (*TypeTest) DateTimeIsNull ¶
func (o *TypeTest) DateTimeIsNull() bool
DateTimeIsNull returns true if the related database value is null.
func (*TypeTest) DateTimeIsValid ¶
func (o *TypeTest) DateTimeIsValid() bool
DateTimeIsValid returns true if the value was loaded from the database or has been set.
func (*TypeTest) Get ¶
func (o *TypeTest) Get(key string) interface{}
Get returns the value of a field in the object based on the field's name. It will also get related objects if they are loaded. Invalid fields and objects are returned as nil
func (*TypeTest) GetAlias ¶
func (o *TypeTest) GetAlias(key string) query.AliasValue
GetAlias returns the alias for the given key.
func (*TypeTest) IDIsValid ¶
func (o *TypeTest) IDIsValid() bool
IDIsValid returns true if the value was loaded from the database or has been set.
func (*TypeTest) Initialize ¶
Initialize or re-initialize a TypeTest database object to default values.
func (*TypeTest) Insert ¶
Insert forces the object to be inserted into the database. If the object was loaded from the database originally, this will create a duplicate in the database.
func (*TypeTest) MarshalBinary ¶
MarshalBinary serializes the object into a buffer that is deserializable using UnmarshalBinary. It should be used for transmitting database object over the wire, or for temporary storage. It does not send a version number, so if the data format changes, its up to you to invalidate the old stored objects. The framework uses this to serialize the object when it is stored in a control.
func (*TypeTest) PrimaryKey ¶
func (o *TypeTest) PrimaryKey() string
func (*TypeTest) Save ¶
Save will update or insert the object, depending on the state of the object. If it has any auto-generated ids, those will be updated.
func (*TypeTest) SetDateTime ¶
func (o *TypeTest) SetDateTime(i interface{})
func (*TypeTest) SetTestBit ¶
func (o *TypeTest) SetTestBit(i interface{})
func (*TypeTest) SetTestFloat ¶
func (o *TypeTest) SetTestFloat(i interface{})
func (*TypeTest) SetTestInt ¶
func (o *TypeTest) SetTestInt(i interface{})
func (*TypeTest) SetTestText ¶
func (o *TypeTest) SetTestText(i interface{})
func (*TypeTest) SetTestVarchar ¶
func (o *TypeTest) SetTestVarchar(i interface{})
func (*TypeTest) String ¶
String implements the Stringer interface and returns the default label for the object as it appears in html lists. Typically you would change this to whatever was pertinent to your application.
func (*TypeTest) TestBitIsNull ¶
func (o *TypeTest) TestBitIsNull() bool
TestBitIsNull returns true if the related database value is null.
func (*TypeTest) TestBitIsValid ¶
func (o *TypeTest) TestBitIsValid() bool
TestBitIsValid returns true if the value was loaded from the database or has been set.
func (*TypeTest) TestFloatIsNull ¶
func (o *TypeTest) TestFloatIsNull() bool
TestFloatIsNull returns true if the related database value is null.
func (*TypeTest) TestFloatIsValid ¶
func (o *TypeTest) TestFloatIsValid() bool
TestFloatIsValid returns true if the value was loaded from the database or has been set.
func (*TypeTest) TestIntIsNull ¶
func (o *TypeTest) TestIntIsNull() bool
TestIntIsNull returns true if the related database value is null.
func (*TypeTest) TestIntIsValid ¶
func (o *TypeTest) TestIntIsValid() bool
TestIntIsValid returns true if the value was loaded from the database or has been set.
func (*TypeTest) TestTextIsNull ¶
func (o *TypeTest) TestTextIsNull() bool
TestTextIsNull returns true if the related database value is null.
func (*TypeTest) TestTextIsValid ¶
func (o *TypeTest) TestTextIsValid() bool
TestTextIsValid returns true if the value was loaded from the database or has been set.
func (*TypeTest) TestVarchar ¶
func (o *TypeTest) TestVarchar() string
func (*TypeTest) TestVarcharIsNull ¶
func (o *TypeTest) TestVarcharIsNull() bool
TestVarcharIsNull returns true if the related database value is null.
func (*TypeTest) TestVarcharIsValid ¶
func (o *TypeTest) TestVarcharIsValid() bool
TestVarcharIsValid returns true if the value was loaded from the database or has been set.
func (*TypeTest) TimeIsNull ¶
func (o *TypeTest) TimeIsNull() bool
TimeIsNull returns true if the related database value is null.
func (*TypeTest) TimeIsValid ¶
func (o *TypeTest) TimeIsValid() bool
TimeIsValid returns true if the value was loaded from the database or has been set.
func (*TypeTest) TsIsNull ¶
func (o *TypeTest) TsIsNull() bool
TsIsNull returns true if the related database value is null.
func (*TypeTest) TsIsValid ¶
func (o *TypeTest) TsIsValid() bool
TsIsValid returns true if the value was loaded from the database or has been set.
func (*TypeTest) UnmarshalBinary ¶
type TypeTestsBuilder ¶
type TypeTestsBuilder struct {
// contains filtered or unexported fields
}
The TypeTestsBuilder uses the QueryBuilderI interface from the database to build a query. All query operations go through this query builder. End a query by calling either Load, Count, or Delete
func QueryTypeTests ¶
func QueryTypeTests(ctx context.Context) *TypeTestsBuilder
QueryTypeTests returns a new builder that gives you general purpose access to the TypeTest records in the database. Its here to give public access to the query builder, but you can remove it if you do not need it.
func (*TypeTestsBuilder) Alias ¶
func (b *TypeTestsBuilder) Alias(name string, n query.NodeI) *TypeTestsBuilder
Alias lets you add a node with a custom name. After the query, you can read out the data using GetAlias() on a returned object. Alias is useful for adding calculations or subqueries to the query.
func (*TypeTestsBuilder) Count ¶
Count terminates a query and returns just the number of items selected.
func (*TypeTestsBuilder) Delete ¶
func (b *TypeTestsBuilder) Delete(ctx context.Context)
Delete uses the query builder to delete a group of records that match the criteria
func (*TypeTestsBuilder) Distinct ¶
func (b *TypeTestsBuilder) Distinct() *TypeTestsBuilder
Distinct removes duplicates from the results of the query. Adding a Select() may help you get to the data you want, although using Distinct with joined tables is often not effective, since we force joined tables to include primary keys in the query, and this often ruins the effect of Distinct.
func (*TypeTestsBuilder) Expand ¶
func (b *TypeTestsBuilder) Expand(n query.NodeI) *TypeTestsBuilder
Expand expands an array type node so that it will produce individual rows instead of an array of items
func (*TypeTestsBuilder) Get ¶
func (b *TypeTestsBuilder) Get(ctx context.Context) *TypeTest
Get is a convenience method to return only the first item found in a query. It is equivalent to adding Limit(1,0) to the query, and then getting the first item from the returned slice. Limits with joins do not currently work, so don't try it if you have a join TODO: Change this to Load1 to be more descriptive and avoid confusion with other Getters
func (*TypeTestsBuilder) GroupBy ¶
func (b *TypeTestsBuilder) GroupBy(nodes ...query.NodeI) *TypeTestsBuilder
GroupBy controls how results are grouped when using aggregate functions in an Alias() call.
func (*TypeTestsBuilder) Having ¶
func (b *TypeTestsBuilder) Having(node query.NodeI) *TypeTestsBuilder
Having does additional filtering on the results of the query.
func (*TypeTestsBuilder) Join ¶
func (b *TypeTestsBuilder) Join(n query.NodeI, conditions ...query.NodeI) *TypeTestsBuilder
Join adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*TypeTestsBuilder) JoinOn ¶
func (b *TypeTestsBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *TypeTestsBuilder
JoinOn adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*TypeTestsBuilder) Limit ¶
func (b *TypeTestsBuilder) Limit(maxRowCount int, offset int) *TypeTestsBuilder
Limit will return a subset of the data, limited to the offset and number of rows specified
func (*TypeTestsBuilder) Load ¶
func (b *TypeTestsBuilder) Load(ctx context.Context) (typeTestSlice []*TypeTest)
Load terminates the query builder, performs the query, and returns a slice of TypeTest objects. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice
func (*TypeTestsBuilder) LoadI ¶
func (b *TypeTestsBuilder) LoadI(ctx context.Context) (typeTestSlice []interface{})
LoadI terminates the query builder, performs the query, and returns a slice of interfaces. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice.
func (*TypeTestsBuilder) OrderBy ¶
func (b *TypeTestsBuilder) OrderBy(nodes ...query.NodeI) *TypeTestsBuilder
OrderBy specifies how the resulting data should be sorted.
func (*TypeTestsBuilder) Select ¶
func (b *TypeTestsBuilder) Select(nodes ...query.NodeI) *TypeTestsBuilder
Select optimizes the query to only return the specified fields. Once you put a Select in your query, you must specify all the fields that you will eventually read out. Be careful when selecting fields in joined tables, as joined tables will also contain pointers back to the parent table, and so the parent node should have the same field selected as the child node if you are querying those fields.
func (*TypeTestsBuilder) Subquery ¶
func (b *TypeTestsBuilder) Subquery() *query.SubqueryNode
Subquery uses the query builder to define a subquery within a larger query. You MUST include what you are selecting by adding Alias or Select functions on the subquery builder. Generally you would use this as a node to an Alias function on the surrounding query builder.
func (*TypeTestsBuilder) Where ¶
func (b *TypeTestsBuilder) Where(c query.NodeI) *TypeTestsBuilder
Where adds a condition to filter what gets selected.
type UnsupportedTypes ¶
type UnsupportedTypes struct {
// contains filtered or unexported fields
}
func LoadUnsupportedTypes ¶
func LoadUnsupportedTypes(ctx context.Context, primaryKey string, joinOrSelectNodes ...query.NodeI) *UnsupportedTypes
Load returns a UnsupportedTypes from the database. joinOrSelectNodes lets you provide nodes for joining to other tables or selecting specific fields. Table nodes will be considered Join nodes, and column nodes will be Select nodes. See Join() and Select() for more info.
func LoadUnsupportedTypesByTypeSerial ¶
func LoadUnsupportedTypesByTypeSerial(ctx context.Context, type_serial string, joinOrSelectNodes ...query.NodeI) *UnsupportedTypes
LoadUnsupportedTypesByTypeSerial queries for a single UnsupportedTypes object by the given unique index values. joinOrSelectNodes lets you provide nodes for joining to other tables or selecting specific fields. Table nodes will be considered Join nodes, and column nodes will be Select nodes. See Join() and Select() for more info. If you need a more elaborate query, use QueryUnsupportedTypes() to start a query builder.
func NewUnsupportedTypes ¶
func NewUnsupportedTypes(ctx context.Context) *UnsupportedTypes
Create a new UnsupportedTypes object and initialize to default values.
func (*UnsupportedTypes) Get ¶
func (o *UnsupportedTypes) Get(key string) interface{}
Get returns the value of a field in the object based on the field's name. It will also get related objects if they are loaded. Invalid fields and objects are returned as nil
func (*UnsupportedTypes) GetAlias ¶
func (o *UnsupportedTypes) GetAlias(key string) query.AliasValue
GetAlias returns the alias for the given key.
func (*UnsupportedTypes) Initialize ¶
func (o *UnsupportedTypes) Initialize(ctx context.Context)
Initialize or re-initialize a UnsupportedTypes database object to default values.
func (*UnsupportedTypes) Insert ¶
Insert forces the object to be inserted into the database. If the object was loaded from the database originally, this will create a duplicate in the database.
func (*UnsupportedTypes) MarshalBinary ¶
MarshalBinary serializes the object into a buffer that is deserializable using UnmarshalBinary. It should be used for transmitting database object over the wire, or for temporary storage. It does not send a version number, so if the data format changes, its up to you to invalidate the old stored objects. The framework uses this to serialize the object when it is stored in a control.
func (*UnsupportedTypes) PrimaryKey ¶
func (o *UnsupportedTypes) PrimaryKey() string
func (*UnsupportedTypes) Save ¶
Save will update or insert the object, depending on the state of the object. If it has any auto-generated ids, those will be updated.
func (*UnsupportedTypes) SetTypeBig ¶
func (o *UnsupportedTypes) SetTypeBig(v int64)
SetTypeBig sets the value of TypeBig in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) SetTypeBinary ¶
func (o *UnsupportedTypes) SetTypeBinary(v string)
SetTypeBinary sets the value of TypeBinary in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) SetTypeDecimal ¶
func (o *UnsupportedTypes) SetTypeDecimal(v string)
SetTypeDecimal sets the value of TypeDecimal in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) SetTypeDouble ¶
func (o *UnsupportedTypes) SetTypeDouble(v float32)
SetTypeDouble sets the value of TypeDouble in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) SetTypeEnum ¶
func (o *UnsupportedTypes) SetTypeEnum(v string)
SetTypeEnum sets the value of TypeEnum in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) SetTypeGeo ¶
func (o *UnsupportedTypes) SetTypeGeo(v string)
SetTypeGeo sets the value of TypeGeo in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) SetTypeLongtext ¶
func (o *UnsupportedTypes) SetTypeLongtext(v string)
SetTypeLongtext sets the value of TypeLongtext in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) SetTypeMedium ¶
func (o *UnsupportedTypes) SetTypeMedium(v int)
SetTypeMedium sets the value of TypeMedium in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) SetTypeMediumBlob ¶
func (o *UnsupportedTypes) SetTypeMediumBlob(v []byte)
SetTypeMediumBlob sets the value of TypeMediumBlob in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) SetTypeMultfk1 ¶
func (o *UnsupportedTypes) SetTypeMultfk1(v string)
SetTypeMultfk1 sets the value of TypeMultfk1 in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) SetTypeMultifk2 ¶
func (o *UnsupportedTypes) SetTypeMultifk2(v string)
SetTypeMultifk2 sets the value of TypeMultifk2 in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) SetTypePolygon ¶
func (o *UnsupportedTypes) SetTypePolygon(v string)
SetTypePolygon sets the value of TypePolygon in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) SetTypeSet ¶
func (o *UnsupportedTypes) SetTypeSet(v string)
SetTypeSet sets the value of TypeSet in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) SetTypeSmall ¶
func (o *UnsupportedTypes) SetTypeSmall(v int)
SetTypeSmall sets the value of TypeSmall in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) SetTypeTinyBlob ¶
func (o *UnsupportedTypes) SetTypeTinyBlob(v []byte)
SetTypeTinyBlob sets the value of TypeTinyBlob in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) SetTypeUnsigned ¶
func (o *UnsupportedTypes) SetTypeUnsigned(v uint)
SetTypeUnsigned sets the value of TypeUnsigned in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) SetTypeVarbinary ¶
func (o *UnsupportedTypes) SetTypeVarbinary(v string)
SetTypeVarbinary sets the value of TypeVarbinary in the object, to be saved later using the Save() function.
func (*UnsupportedTypes) String ¶
func (o *UnsupportedTypes) String() string
String implements the Stringer interface and returns the default label for the object as it appears in html lists. Typically you would change this to whatever was pertinent to your application.
func (*UnsupportedTypes) TypeBigIsValid ¶
func (o *UnsupportedTypes) TypeBigIsValid() bool
TypeBigIsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypeBinary ¶
func (o *UnsupportedTypes) TypeBinary() string
func (*UnsupportedTypes) TypeBinaryIsValid ¶
func (o *UnsupportedTypes) TypeBinaryIsValid() bool
TypeBinaryIsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypeDecimal ¶
func (o *UnsupportedTypes) TypeDecimal() string
func (*UnsupportedTypes) TypeDecimalIsValid ¶
func (o *UnsupportedTypes) TypeDecimalIsValid() bool
TypeDecimalIsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypeDouble ¶
func (o *UnsupportedTypes) TypeDouble() float32
func (*UnsupportedTypes) TypeDoubleIsValid ¶
func (o *UnsupportedTypes) TypeDoubleIsValid() bool
TypeDoubleIsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypeEnumIsValid ¶
func (o *UnsupportedTypes) TypeEnumIsValid() bool
TypeEnumIsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypeGeoIsValid ¶
func (o *UnsupportedTypes) TypeGeoIsValid() bool
TypeGeoIsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypeLongtext ¶
func (o *UnsupportedTypes) TypeLongtext() string
func (*UnsupportedTypes) TypeLongtextIsValid ¶
func (o *UnsupportedTypes) TypeLongtextIsValid() bool
TypeLongtextIsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypeMedium ¶
func (o *UnsupportedTypes) TypeMedium() int
func (*UnsupportedTypes) TypeMediumBlob ¶
func (o *UnsupportedTypes) TypeMediumBlob() []byte
func (*UnsupportedTypes) TypeMediumBlobIsValid ¶
func (o *UnsupportedTypes) TypeMediumBlobIsValid() bool
TypeMediumBlobIsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypeMediumIsValid ¶
func (o *UnsupportedTypes) TypeMediumIsValid() bool
TypeMediumIsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypeMultfk1 ¶
func (o *UnsupportedTypes) TypeMultfk1() string
func (*UnsupportedTypes) TypeMultfk1IsValid ¶
func (o *UnsupportedTypes) TypeMultfk1IsValid() bool
TypeMultfk1IsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypeMultifk2 ¶
func (o *UnsupportedTypes) TypeMultifk2() string
func (*UnsupportedTypes) TypeMultifk2IsValid ¶
func (o *UnsupportedTypes) TypeMultifk2IsValid() bool
TypeMultifk2IsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypePolygon ¶
func (o *UnsupportedTypes) TypePolygon() string
func (*UnsupportedTypes) TypePolygonIsValid ¶
func (o *UnsupportedTypes) TypePolygonIsValid() bool
TypePolygonIsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypeSerial ¶
func (o *UnsupportedTypes) TypeSerial() string
TypeSerial returns the loaded value of TypeSerial.
func (*UnsupportedTypes) TypeSerialIsValid ¶
func (o *UnsupportedTypes) TypeSerialIsValid() bool
TypeSerialIsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypeSetIsValid ¶
func (o *UnsupportedTypes) TypeSetIsValid() bool
TypeSetIsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypeSmallIsValid ¶
func (o *UnsupportedTypes) TypeSmallIsValid() bool
TypeSmallIsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypeTinyBlob ¶
func (o *UnsupportedTypes) TypeTinyBlob() []byte
func (*UnsupportedTypes) TypeTinyBlobIsValid ¶
func (o *UnsupportedTypes) TypeTinyBlobIsValid() bool
TypeTinyBlobIsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypeUnsigned ¶
func (o *UnsupportedTypes) TypeUnsigned() uint
func (*UnsupportedTypes) TypeUnsignedIsValid ¶
func (o *UnsupportedTypes) TypeUnsignedIsValid() bool
TypeUnsignedIsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) TypeVarbinary ¶
func (o *UnsupportedTypes) TypeVarbinary() string
func (*UnsupportedTypes) TypeVarbinaryIsValid ¶
func (o *UnsupportedTypes) TypeVarbinaryIsValid() bool
TypeVarbinaryIsValid returns true if the value was loaded from the database or has been set.
func (*UnsupportedTypes) UnmarshalBinary ¶
type UnsupportedTypesBuilder ¶
type UnsupportedTypesBuilder struct {
// contains filtered or unexported fields
}
The UnsupportedTypesBuilder uses the QueryBuilderI interface from the database to build a query. All query operations go through this query builder. End a query by calling either Load, Count, or Delete
func QueryUnsupportedTypes ¶
func QueryUnsupportedTypes(ctx context.Context) *UnsupportedTypesBuilder
QueryUnsupportedTypes returns a new builder that gives you general purpose access to the UnsupportedTypes records in the database. Its here to give public access to the query builder, but you can remove it if you do not need it.
func (*UnsupportedTypesBuilder) Alias ¶
func (b *UnsupportedTypesBuilder) Alias(name string, n query.NodeI) *UnsupportedTypesBuilder
Alias lets you add a node with a custom name. After the query, you can read out the data using GetAlias() on a returned object. Alias is useful for adding calculations or subqueries to the query.
func (*UnsupportedTypesBuilder) Count ¶
func (b *UnsupportedTypesBuilder) Count(ctx context.Context, distinct bool, nodes ...query.NodeI) uint
Count terminates a query and returns just the number of items selected.
func (*UnsupportedTypesBuilder) Delete ¶
func (b *UnsupportedTypesBuilder) Delete(ctx context.Context)
Delete uses the query builder to delete a group of records that match the criteria
func (*UnsupportedTypesBuilder) Distinct ¶
func (b *UnsupportedTypesBuilder) Distinct() *UnsupportedTypesBuilder
Distinct removes duplicates from the results of the query. Adding a Select() may help you get to the data you want, although using Distinct with joined tables is often not effective, since we force joined tables to include primary keys in the query, and this often ruins the effect of Distinct.
func (*UnsupportedTypesBuilder) Expand ¶
func (b *UnsupportedTypesBuilder) Expand(n query.NodeI) *UnsupportedTypesBuilder
Expand expands an array type node so that it will produce individual rows instead of an array of items
func (*UnsupportedTypesBuilder) Get ¶
func (b *UnsupportedTypesBuilder) Get(ctx context.Context) *UnsupportedTypes
Get is a convenience method to return only the first item found in a query. It is equivalent to adding Limit(1,0) to the query, and then getting the first item from the returned slice. Limits with joins do not currently work, so don't try it if you have a join TODO: Change this to Load1 to be more descriptive and avoid confusion with other Getters
func (*UnsupportedTypesBuilder) GroupBy ¶
func (b *UnsupportedTypesBuilder) GroupBy(nodes ...query.NodeI) *UnsupportedTypesBuilder
GroupBy controls how results are grouped when using aggregate functions in an Alias() call.
func (*UnsupportedTypesBuilder) Having ¶
func (b *UnsupportedTypesBuilder) Having(node query.NodeI) *UnsupportedTypesBuilder
Having does additional filtering on the results of the query.
func (*UnsupportedTypesBuilder) Join ¶
func (b *UnsupportedTypesBuilder) Join(n query.NodeI, conditions ...query.NodeI) *UnsupportedTypesBuilder
Join adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*UnsupportedTypesBuilder) JoinOn ¶
func (b *UnsupportedTypesBuilder) JoinOn(n query.NodeI, conditions ...query.NodeI) *UnsupportedTypesBuilder
JoinOn adds a node to the node tree so that its fields will appear in the query. Optionally add conditions to filter what gets included. The conditions will be AND'd with the basic condition matching the primary keys of the join.
func (*UnsupportedTypesBuilder) Limit ¶
func (b *UnsupportedTypesBuilder) Limit(maxRowCount int, offset int) *UnsupportedTypesBuilder
Limit will return a subset of the data, limited to the offset and number of rows specified
func (*UnsupportedTypesBuilder) Load ¶
func (b *UnsupportedTypesBuilder) Load(ctx context.Context) (unsupportedTypesSlice []*UnsupportedTypes)
Load terminates the query builder, performs the query, and returns a slice of UnsupportedTypes objects. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice
func (*UnsupportedTypesBuilder) LoadI ¶
func (b *UnsupportedTypesBuilder) LoadI(ctx context.Context) (unsupportedTypesSlice []interface{})
LoadI terminates the query builder, performs the query, and returns a slice of interfaces. If there are any errors, they are returned in the context object. If no results come back from the query, it will return an empty slice.
func (*UnsupportedTypesBuilder) OrderBy ¶
func (b *UnsupportedTypesBuilder) OrderBy(nodes ...query.NodeI) *UnsupportedTypesBuilder
OrderBy specifies how the resulting data should be sorted.
func (*UnsupportedTypesBuilder) Select ¶
func (b *UnsupportedTypesBuilder) Select(nodes ...query.NodeI) *UnsupportedTypesBuilder
Select optimizes the query to only return the specified fields. Once you put a Select in your query, you must specify all the fields that you will eventually read out. Be careful when selecting fields in joined tables, as joined tables will also contain pointers back to the parent table, and so the parent node should have the same field selected as the child node if you are querying those fields.
func (*UnsupportedTypesBuilder) Subquery ¶
func (b *UnsupportedTypesBuilder) Subquery() *query.SubqueryNode
Subquery uses the query builder to define a subquery within a larger query. You MUST include what you are selecting by adding Alias or Select functions on the subquery builder. Generally you would use this as a node to an Alias function on the surrounding query builder.
func (*UnsupportedTypesBuilder) Where ¶
func (b *UnsupportedTypesBuilder) Where(c query.NodeI) *UnsupportedTypesBuilder
Where adds a condition to filter what gets selected.
Source Files ¶
- Address.base.go
- Address.go
- Login.base.go
- Login.go
- Milestone.base.go
- Milestone.go
- Person.base.go
- Person.go
- PersonType.base.go
- PersonWithLock.base.go
- PersonWithLock.go
- Project.base.go
- Project.go
- ProjectStatusType.base.go
- Tmp.base.go
- Tmp.go
- TypeTest.base.go
- TypeTest.go
- UnsupportedTypes.base.go
- UnsupportedTypes.go