models

package
v0.0.0-...-345574f Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var JobColumns = struct {
	ID          string
	Title       string
	Description string
	Location    string
	Status      string
	PersonID    string
	CreatedAt   string
	JobLink     string
}{
	ID:          "id",
	Title:       "title",
	Description: "description",
	Location:    "location",
	Status:      "status",
	PersonID:    "person_id",
	CreatedAt:   "created_at",
	JobLink:     "job_link",
}
View Source
var JobProviderColumns = struct {
	PersonID    string
	Title       string
	WebsiteURL  string
	HuntingMode string
	CreatedAt   string
}{
	PersonID:    "person_id",
	Title:       "title",
	WebsiteURL:  "website_url",
	HuntingMode: "hunting_mode",
	CreatedAt:   "created_at",
}
View Source
var JobProviderFavColumns = struct {
	ID               string
	ProviderPersonID string
	SeekerPersonID   string
}{
	ID:               "id",
	ProviderPersonID: "provider_person_id",
	SeekerPersonID:   "seeker_person_id",
}
View Source
var JobProviderFavRels = struct {
	ProviderPerson string
	SeekerPerson   string
}{
	ProviderPerson: "ProviderPerson",
	SeekerPerson:   "SeekerPerson",
}

JobProviderFavRels is where relationship names are stored.

View Source
var JobProviderFavWhere = struct {
	ID               whereHelperstring
	ProviderPersonID whereHelperstring
	SeekerPersonID   whereHelperstring
}{
	ID:               whereHelperstring{/* contains filtered or unexported fields */},
	ProviderPersonID: whereHelperstring{/* contains filtered or unexported fields */},
	SeekerPersonID:   whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var JobProviderRels = struct {
	Person string
}{
	Person: "Person",
}

JobProviderRels is where relationship names are stored.

View Source
var JobProviderWhere = struct {
	PersonID    whereHelperstring
	Title       whereHelperstring
	WebsiteURL  whereHelpernull_String
	HuntingMode whereHelpernull_Int
	CreatedAt   whereHelpertime_Time
}{
	PersonID:    whereHelperstring{/* contains filtered or unexported fields */},
	Title:       whereHelperstring{/* contains filtered or unexported fields */},
	WebsiteURL:  whereHelpernull_String{/* contains filtered or unexported fields */},
	HuntingMode: whereHelpernull_Int{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var JobRels = struct {
	Person        string
	JobSeekerFavs string
}{
	Person:        "Person",
	JobSeekerFavs: "JobSeekerFavs",
}

JobRels is where relationship names are stored.

View Source
var JobSeekerColumns = struct {
	ID          string
	PersonID    string
	Title       string
	Headline    string
	City        string
	SeekingMode string
	CreatedAt   string
}{
	ID:          "id",
	PersonID:    "person_id",
	Title:       "title",
	Headline:    "headline",
	City:        "city",
	SeekingMode: "seeking_mode",
	CreatedAt:   "created_at",
}
View Source
var JobSeekerFavColumns = struct {
	ID       string
	PersonID string
	JobID    string
}{
	ID:       "id",
	PersonID: "person_id",
	JobID:    "job_id",
}
View Source
var JobSeekerFavRels = struct {
	Job    string
	Person string
}{
	Job:    "Job",
	Person: "Person",
}

JobSeekerFavRels is where relationship names are stored.

View Source
var JobSeekerFavWhere = struct {
	ID       whereHelperstring
	PersonID whereHelperstring
	JobID    whereHelperstring
}{
	ID:       whereHelperstring{/* contains filtered or unexported fields */},
	PersonID: whereHelperstring{/* contains filtered or unexported fields */},
	JobID:    whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var JobSeekerRels = struct {
	Person string
}{
	Person: "Person",
}

JobSeekerRels is where relationship names are stored.

View Source
var JobSeekerWhere = struct {
	ID          whereHelperstring
	PersonID    whereHelperstring
	Title       whereHelperstring
	Headline    whereHelpernull_String
	City        whereHelpernull_String
	SeekingMode whereHelpernull_Int
	CreatedAt   whereHelpertime_Time
}{
	ID:          whereHelperstring{/* contains filtered or unexported fields */},
	PersonID:    whereHelperstring{/* contains filtered or unexported fields */},
	Title:       whereHelperstring{/* contains filtered or unexported fields */},
	Headline:    whereHelpernull_String{/* contains filtered or unexported fields */},
	City:        whereHelpernull_String{/* contains filtered or unexported fields */},
	SeekingMode: whereHelpernull_Int{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var JobWhere = struct {
	ID          whereHelperstring
	Title       whereHelperstring
	Description whereHelperstring
	Location    whereHelperstring
	Status      whereHelperint
	PersonID    whereHelperstring
	CreatedAt   whereHelpertime_Time
	JobLink     whereHelperstring
}{
	ID:          whereHelperstring{/* contains filtered or unexported fields */},
	Title:       whereHelperstring{/* contains filtered or unexported fields */},
	Description: whereHelperstring{/* contains filtered or unexported fields */},
	Location:    whereHelperstring{/* contains filtered or unexported fields */},
	Status:      whereHelperint{/* contains filtered or unexported fields */},
	PersonID:    whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	JobLink:     whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var PersonColumns = struct {
	ID          string
	IamID       string
	FirstName   string
	LastName    string
	AvatarURL   string
	Email       string
	IamProvider string
	CreatedAt   string
}{
	ID:          "id",
	IamID:       "iam_id",
	FirstName:   "first_name",
	LastName:    "last_name",
	AvatarURL:   "avatar_url",
	Email:       "email",
	IamProvider: "iam_provider",
	CreatedAt:   "created_at",
}
View Source
var PersonProfileColumns = struct {
	ID          string
	PersonID    string
	ProfileURL  string
	Headline    string
	Website     string
	Company     string
	ProfileType string
}{
	ID:          "id",
	PersonID:    "person_id",
	ProfileURL:  "profile_url",
	Headline:    "headline",
	Website:     "website",
	Company:     "company",
	ProfileType: "profile_type",
}
View Source
var PersonProfileRels = struct {
	Person string
}{
	Person: "Person",
}

PersonProfileRels is where relationship names are stored.

View Source
var PersonProfileWhere = struct {
	ID          whereHelperstring
	PersonID    whereHelperstring
	ProfileURL  whereHelperstring
	Headline    whereHelpernull_String
	Website     whereHelpernull_String
	Company     whereHelpernull_String
	ProfileType whereHelpernull_String
}{
	ID:          whereHelperstring{/* contains filtered or unexported fields */},
	PersonID:    whereHelperstring{/* contains filtered or unexported fields */},
	ProfileURL:  whereHelperstring{/* contains filtered or unexported fields */},
	Headline:    whereHelpernull_String{/* contains filtered or unexported fields */},
	Website:     whereHelpernull_String{/* contains filtered or unexported fields */},
	Company:     whereHelpernull_String{/* contains filtered or unexported fields */},
	ProfileType: whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var PersonRels = struct {
	JobProvider                   string
	Jobs                          string
	ProviderPersonJobProviderFavs string
	SeekerPersonJobProviderFavs   string
	JobSeekers                    string
	JobSeekerFavs                 string
	PersonProfiles                string
}{
	JobProvider:                   "JobProvider",
	Jobs:                          "Jobs",
	ProviderPersonJobProviderFavs: "ProviderPersonJobProviderFavs",
	SeekerPersonJobProviderFavs:   "SeekerPersonJobProviderFavs",
	JobSeekers:                    "JobSeekers",
	JobSeekerFavs:                 "JobSeekerFavs",
	PersonProfiles:                "PersonProfiles",
}

PersonRels is where relationship names are stored.

View Source
var PersonWhere = struct {
	ID          whereHelperstring
	IamID       whereHelperstring
	FirstName   whereHelpernull_String
	LastName    whereHelpernull_String
	AvatarURL   whereHelpernull_String
	Email       whereHelperstring
	IamProvider whereHelperstring
	CreatedAt   whereHelpertime_Time
}{
	ID:          whereHelperstring{/* contains filtered or unexported fields */},
	IamID:       whereHelperstring{/* contains filtered or unexported fields */},
	FirstName:   whereHelpernull_String{/* contains filtered or unexported fields */},
	LastName:    whereHelpernull_String{/* contains filtered or unexported fields */},
	AvatarURL:   whereHelpernull_String{/* contains filtered or unexported fields */},
	Email:       whereHelperstring{/* contains filtered or unexported fields */},
	IamProvider: whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Job            string
	JobProvider    string
	JobProviderFav string
	JobSeeker      string
	JobSeekerFav   string
	Person         string
	PersonProfile  string
}{
	Job:            "job",
	JobProvider:    "job_provider",
	JobProviderFav: "job_provider_fav",
	JobSeeker:      "job_seeker",
	JobSeekerFav:   "job_seeker_fav",
	Person:         "person",
	PersonProfile:  "person_profile",
}

Functions

func AddJobHook

func AddJobHook(hookPoint boil.HookPoint, jobHook JobHook)

AddJobHook registers your hook function for all future operations.

func AddJobProviderFavHook

func AddJobProviderFavHook(hookPoint boil.HookPoint, jobProviderFavHook JobProviderFavHook)

AddJobProviderFavHook registers your hook function for all future operations.

func AddJobProviderHook

func AddJobProviderHook(hookPoint boil.HookPoint, jobProviderHook JobProviderHook)

AddJobProviderHook registers your hook function for all future operations.

func AddJobSeekerFavHook

func AddJobSeekerFavHook(hookPoint boil.HookPoint, jobSeekerFavHook JobSeekerFavHook)

AddJobSeekerFavHook registers your hook function for all future operations.

func AddJobSeekerHook

func AddJobSeekerHook(hookPoint boil.HookPoint, jobSeekerHook JobSeekerHook)

AddJobSeekerHook registers your hook function for all future operations.

func AddPersonHook

func AddPersonHook(hookPoint boil.HookPoint, personHook PersonHook)

AddPersonHook registers your hook function for all future operations.

func AddPersonProfileHook

func AddPersonProfileHook(hookPoint boil.HookPoint, personProfileHook PersonProfileHook)

AddPersonProfileHook registers your hook function for all future operations.

func JobExists

func JobExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

JobExists checks if the Job row exists.

func JobProviderExists

func JobProviderExists(ctx context.Context, exec boil.ContextExecutor, personID string) (bool, error)

JobProviderExists checks if the JobProvider row exists.

func JobProviderFavExists

func JobProviderFavExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

JobProviderFavExists checks if the JobProviderFav row exists.

func JobProviderFavs

func JobProviderFavs(mods ...qm.QueryMod) jobProviderFavQuery

JobProviderFavs retrieves all the records using an executor.

func JobProviders

func JobProviders(mods ...qm.QueryMod) jobProviderQuery

JobProviders retrieves all the records using an executor.

func JobSeekerExists

func JobSeekerExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

JobSeekerExists checks if the JobSeeker row exists.

func JobSeekerFavExists

func JobSeekerFavExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

JobSeekerFavExists checks if the JobSeekerFav row exists.

func JobSeekerFavs

func JobSeekerFavs(mods ...qm.QueryMod) jobSeekerFavQuery

JobSeekerFavs retrieves all the records using an executor.

func JobSeekers

func JobSeekers(mods ...qm.QueryMod) jobSeekerQuery

JobSeekers retrieves all the records using an executor.

func Jobs

func Jobs(mods ...qm.QueryMod) jobQuery

Jobs retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func People

func People(mods ...qm.QueryMod) personQuery

People retrieves all the records using an executor.

func PersonExists

func PersonExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

PersonExists checks if the Person row exists.

func PersonProfileExists

func PersonProfileExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

PersonProfileExists checks if the PersonProfile row exists.

func PersonProfiles

func PersonProfiles(mods ...qm.QueryMod) personProfileQuery

PersonProfiles retrieves all the records using an executor.

Types

type Job

type Job struct {
	ID          string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Title       string    `boil:"title" json:"title" toml:"title" yaml:"title"`
	Description string    `boil:"description" json:"description" toml:"description" yaml:"description"`
	Location    string    `boil:"location" json:"location" toml:"location" yaml:"location"`
	Status      int       `boil:"status" json:"status" toml:"status" yaml:"status"`
	PersonID    string    `boil:"person_id" json:"person_id" toml:"person_id" yaml:"person_id"`
	CreatedAt   time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	JobLink     string    `boil:"job_link" json:"job_link" toml:"job_link" yaml:"job_link"`

	R *jobR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L jobL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Job is an object representing the database table.

func FindJob

func FindJob(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Job, error)

FindJob retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Job) AddJobSeekerFavs

func (o *Job) AddJobSeekerFavs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*JobSeekerFav) error

AddJobSeekerFavs adds the given related objects to the existing relationships of the job, optionally inserting them as new records. Appends related to o.R.JobSeekerFavs. Sets related.R.Job appropriately.

func (*Job) Delete

func (o *Job) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Job record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Job) Insert

func (o *Job) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Job) JobSeekerFavs

func (o *Job) JobSeekerFavs(mods ...qm.QueryMod) jobSeekerFavQuery

JobSeekerFavs retrieves all the job_seeker_fav's JobSeekerFavs with an executor.

func (*Job) Person

func (o *Job) Person(mods ...qm.QueryMod) personQuery

Person pointed to by the foreign key.

func (*Job) Reload

func (o *Job) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Job) SetPerson

func (o *Job) SetPerson(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Person) error

SetPerson of the job to the related item. Sets o.R.Person to related. Adds o to related.R.Jobs.

func (*Job) Update

func (o *Job) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Job. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Job) Upsert

func (o *Job) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type JobHook

type JobHook func(context.Context, boil.ContextExecutor, *Job) error

JobHook is the signature for custom Job hook methods

type JobProvider

type JobProvider struct {
	PersonID    string      `boil:"person_id" json:"person_id" toml:"person_id" yaml:"person_id"`
	Title       string      `boil:"title" json:"title" toml:"title" yaml:"title"`
	WebsiteURL  null.String `boil:"website_url" json:"website_url,omitempty" toml:"website_url" yaml:"website_url,omitempty"`
	HuntingMode null.Int    `boil:"hunting_mode" json:"hunting_mode,omitempty" toml:"hunting_mode" yaml:"hunting_mode,omitempty"`
	CreatedAt   time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *jobProviderR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L jobProviderL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

JobProvider is an object representing the database table.

func FindJobProvider

func FindJobProvider(ctx context.Context, exec boil.ContextExecutor, personID string, selectCols ...string) (*JobProvider, error)

FindJobProvider retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*JobProvider) Delete

func (o *JobProvider) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single JobProvider record with an executor. Delete will match against the primary key column to find the record to delete.

func (*JobProvider) Insert

func (o *JobProvider) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*JobProvider) Person

func (o *JobProvider) Person(mods ...qm.QueryMod) personQuery

Person pointed to by the foreign key.

func (*JobProvider) Reload

func (o *JobProvider) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*JobProvider) SetPerson

func (o *JobProvider) SetPerson(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Person) error

SetPerson of the jobProvider to the related item. Sets o.R.Person to related. Adds o to related.R.JobProvider.

func (*JobProvider) Update

func (o *JobProvider) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the JobProvider. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*JobProvider) Upsert

func (o *JobProvider) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type JobProviderFav

type JobProviderFav struct {
	ID               string `boil:"id" json:"id" toml:"id" yaml:"id"`
	ProviderPersonID string `boil:"provider_person_id" json:"provider_person_id" toml:"provider_person_id" yaml:"provider_person_id"`
	SeekerPersonID   string `boil:"seeker_person_id" json:"seeker_person_id" toml:"seeker_person_id" yaml:"seeker_person_id"`

	R *jobProviderFavR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L jobProviderFavL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

JobProviderFav is an object representing the database table.

func FindJobProviderFav

func FindJobProviderFav(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*JobProviderFav, error)

FindJobProviderFav retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*JobProviderFav) Delete

func (o *JobProviderFav) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single JobProviderFav record with an executor. Delete will match against the primary key column to find the record to delete.

func (*JobProviderFav) Insert

func (o *JobProviderFav) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*JobProviderFav) ProviderPerson

func (o *JobProviderFav) ProviderPerson(mods ...qm.QueryMod) personQuery

ProviderPerson pointed to by the foreign key.

func (*JobProviderFav) Reload

func (o *JobProviderFav) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*JobProviderFav) SeekerPerson

func (o *JobProviderFav) SeekerPerson(mods ...qm.QueryMod) personQuery

SeekerPerson pointed to by the foreign key.

func (*JobProviderFav) SetProviderPerson

func (o *JobProviderFav) SetProviderPerson(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Person) error

SetProviderPerson of the jobProviderFav to the related item. Sets o.R.ProviderPerson to related. Adds o to related.R.ProviderPersonJobProviderFavs.

func (*JobProviderFav) SetSeekerPerson

func (o *JobProviderFav) SetSeekerPerson(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Person) error

SetSeekerPerson of the jobProviderFav to the related item. Sets o.R.SeekerPerson to related. Adds o to related.R.SeekerPersonJobProviderFavs.

func (*JobProviderFav) Update

func (o *JobProviderFav) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the JobProviderFav. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*JobProviderFav) Upsert

func (o *JobProviderFav) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type JobProviderFavHook

type JobProviderFavHook func(context.Context, boil.ContextExecutor, *JobProviderFav) error

JobProviderFavHook is the signature for custom JobProviderFav hook methods

type JobProviderFavSlice

type JobProviderFavSlice []*JobProviderFav

JobProviderFavSlice is an alias for a slice of pointers to JobProviderFav. This should generally be used opposed to []JobProviderFav.

func (JobProviderFavSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*JobProviderFavSlice) ReloadAll

func (o *JobProviderFavSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (JobProviderFavSlice) UpdateAll

func (o JobProviderFavSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type JobProviderHook

type JobProviderHook func(context.Context, boil.ContextExecutor, *JobProvider) error

JobProviderHook is the signature for custom JobProvider hook methods

type JobProviderSlice

type JobProviderSlice []*JobProvider

JobProviderSlice is an alias for a slice of pointers to JobProvider. This should generally be used opposed to []JobProvider.

func (JobProviderSlice) DeleteAll

func (o JobProviderSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*JobProviderSlice) ReloadAll

func (o *JobProviderSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (JobProviderSlice) UpdateAll

func (o JobProviderSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type JobSeeker

type JobSeeker struct {
	ID          string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	PersonID    string      `boil:"person_id" json:"person_id" toml:"person_id" yaml:"person_id"`
	Title       string      `boil:"title" json:"title" toml:"title" yaml:"title"`
	Headline    null.String `boil:"headline" json:"headline,omitempty" toml:"headline" yaml:"headline,omitempty"`
	City        null.String `boil:"city" json:"city,omitempty" toml:"city" yaml:"city,omitempty"`
	SeekingMode null.Int    `boil:"seeking_mode" json:"seeking_mode,omitempty" toml:"seeking_mode" yaml:"seeking_mode,omitempty"`
	CreatedAt   time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *jobSeekerR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L jobSeekerL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

JobSeeker is an object representing the database table.

func FindJobSeeker

func FindJobSeeker(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*JobSeeker, error)

FindJobSeeker retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*JobSeeker) Delete

func (o *JobSeeker) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single JobSeeker record with an executor. Delete will match against the primary key column to find the record to delete.

func (*JobSeeker) Insert

func (o *JobSeeker) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*JobSeeker) Person

func (o *JobSeeker) Person(mods ...qm.QueryMod) personQuery

Person pointed to by the foreign key.

func (*JobSeeker) Reload

func (o *JobSeeker) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*JobSeeker) SetPerson

func (o *JobSeeker) SetPerson(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Person) error

SetPerson of the jobSeeker to the related item. Sets o.R.Person to related. Adds o to related.R.JobSeekers.

func (*JobSeeker) Update

func (o *JobSeeker) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the JobSeeker. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*JobSeeker) Upsert

func (o *JobSeeker) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type JobSeekerFav

type JobSeekerFav struct {
	ID       string `boil:"id" json:"id" toml:"id" yaml:"id"`
	PersonID string `boil:"person_id" json:"person_id" toml:"person_id" yaml:"person_id"`
	JobID    string `boil:"job_id" json:"job_id" toml:"job_id" yaml:"job_id"`

	R *jobSeekerFavR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L jobSeekerFavL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

JobSeekerFav is an object representing the database table.

func FindJobSeekerFav

func FindJobSeekerFav(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*JobSeekerFav, error)

FindJobSeekerFav retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*JobSeekerFav) Delete

func (o *JobSeekerFav) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single JobSeekerFav record with an executor. Delete will match against the primary key column to find the record to delete.

func (*JobSeekerFav) Insert

func (o *JobSeekerFav) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*JobSeekerFav) Job

func (o *JobSeekerFav) Job(mods ...qm.QueryMod) jobQuery

Job pointed to by the foreign key.

func (*JobSeekerFav) Person

func (o *JobSeekerFav) Person(mods ...qm.QueryMod) personQuery

Person pointed to by the foreign key.

func (*JobSeekerFav) Reload

func (o *JobSeekerFav) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*JobSeekerFav) SetJob

func (o *JobSeekerFav) SetJob(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Job) error

SetJob of the jobSeekerFav to the related item. Sets o.R.Job to related. Adds o to related.R.JobSeekerFavs.

func (*JobSeekerFav) SetPerson

func (o *JobSeekerFav) SetPerson(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Person) error

SetPerson of the jobSeekerFav to the related item. Sets o.R.Person to related. Adds o to related.R.JobSeekerFavs.

func (*JobSeekerFav) Update

func (o *JobSeekerFav) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the JobSeekerFav. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*JobSeekerFav) Upsert

func (o *JobSeekerFav) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type JobSeekerFavHook

type JobSeekerFavHook func(context.Context, boil.ContextExecutor, *JobSeekerFav) error

JobSeekerFavHook is the signature for custom JobSeekerFav hook methods

type JobSeekerFavSlice

type JobSeekerFavSlice []*JobSeekerFav

JobSeekerFavSlice is an alias for a slice of pointers to JobSeekerFav. This should generally be used opposed to []JobSeekerFav.

func (JobSeekerFavSlice) DeleteAll

func (o JobSeekerFavSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*JobSeekerFavSlice) ReloadAll

func (o *JobSeekerFavSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (JobSeekerFavSlice) UpdateAll

func (o JobSeekerFavSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type JobSeekerHook

type JobSeekerHook func(context.Context, boil.ContextExecutor, *JobSeeker) error

JobSeekerHook is the signature for custom JobSeeker hook methods

type JobSeekerSlice

type JobSeekerSlice []*JobSeeker

JobSeekerSlice is an alias for a slice of pointers to JobSeeker. This should generally be used opposed to []JobSeeker.

func (JobSeekerSlice) DeleteAll

func (o JobSeekerSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*JobSeekerSlice) ReloadAll

func (o *JobSeekerSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (JobSeekerSlice) UpdateAll

func (o JobSeekerSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type JobSlice

type JobSlice []*Job

JobSlice is an alias for a slice of pointers to Job. This should generally be used opposed to []Job.

func (JobSlice) DeleteAll

func (o JobSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*JobSlice) ReloadAll

func (o *JobSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (JobSlice) UpdateAll

func (o JobSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type Person

type Person struct {
	ID          string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	IamID       string      `boil:"iam_id" json:"iam_id" toml:"iam_id" yaml:"iam_id"`
	FirstName   null.String `boil:"first_name" json:"first_name,omitempty" toml:"first_name" yaml:"first_name,omitempty"`
	LastName    null.String `boil:"last_name" json:"last_name,omitempty" toml:"last_name" yaml:"last_name,omitempty"`
	AvatarURL   null.String `boil:"avatar_url" json:"avatar_url,omitempty" toml:"avatar_url" yaml:"avatar_url,omitempty"`
	Email       string      `boil:"email" json:"email" toml:"email" yaml:"email"`
	IamProvider string      `boil:"iam_provider" json:"iam_provider" toml:"iam_provider" yaml:"iam_provider"`
	CreatedAt   time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *personR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L personL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Person is an object representing the database table.

func FindPerson

func FindPerson(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Person, error)

FindPerson retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Person) AddJobSeekerFavs

func (o *Person) AddJobSeekerFavs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*JobSeekerFav) error

AddJobSeekerFavs adds the given related objects to the existing relationships of the person, optionally inserting them as new records. Appends related to o.R.JobSeekerFavs. Sets related.R.Person appropriately.

func (*Person) AddJobSeekers

func (o *Person) AddJobSeekers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*JobSeeker) error

AddJobSeekers adds the given related objects to the existing relationships of the person, optionally inserting them as new records. Appends related to o.R.JobSeekers. Sets related.R.Person appropriately.

func (*Person) AddJobs

func (o *Person) AddJobs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Job) error

AddJobs adds the given related objects to the existing relationships of the person, optionally inserting them as new records. Appends related to o.R.Jobs. Sets related.R.Person appropriately.

func (*Person) AddPersonProfiles

func (o *Person) AddPersonProfiles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PersonProfile) error

AddPersonProfiles adds the given related objects to the existing relationships of the person, optionally inserting them as new records. Appends related to o.R.PersonProfiles. Sets related.R.Person appropriately.

func (*Person) AddProviderPersonJobProviderFavs

func (o *Person) AddProviderPersonJobProviderFavs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*JobProviderFav) error

AddProviderPersonJobProviderFavs adds the given related objects to the existing relationships of the person, optionally inserting them as new records. Appends related to o.R.ProviderPersonJobProviderFavs. Sets related.R.ProviderPerson appropriately.

func (*Person) AddSeekerPersonJobProviderFavs

func (o *Person) AddSeekerPersonJobProviderFavs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*JobProviderFav) error

AddSeekerPersonJobProviderFavs adds the given related objects to the existing relationships of the person, optionally inserting them as new records. Appends related to o.R.SeekerPersonJobProviderFavs. Sets related.R.SeekerPerson appropriately.

func (*Person) Delete

func (o *Person) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Person record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Person) Insert

func (o *Person) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Person) JobProvider

func (o *Person) JobProvider(mods ...qm.QueryMod) jobProviderQuery

JobProvider pointed to by the foreign key.

func (*Person) JobSeekerFavs

func (o *Person) JobSeekerFavs(mods ...qm.QueryMod) jobSeekerFavQuery

JobSeekerFavs retrieves all the job_seeker_fav's JobSeekerFavs with an executor.

func (*Person) JobSeekers

func (o *Person) JobSeekers(mods ...qm.QueryMod) jobSeekerQuery

JobSeekers retrieves all the job_seeker's JobSeekers with an executor.

func (*Person) Jobs

func (o *Person) Jobs(mods ...qm.QueryMod) jobQuery

Jobs retrieves all the job's Jobs with an executor.

func (*Person) PersonProfiles

func (o *Person) PersonProfiles(mods ...qm.QueryMod) personProfileQuery

PersonProfiles retrieves all the person_profile's PersonProfiles with an executor.

func (*Person) ProviderPersonJobProviderFavs

func (o *Person) ProviderPersonJobProviderFavs(mods ...qm.QueryMod) jobProviderFavQuery

ProviderPersonJobProviderFavs retrieves all the job_provider_fav's JobProviderFavs with an executor via provider_person_id column.

func (*Person) Reload

func (o *Person) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Person) SeekerPersonJobProviderFavs

func (o *Person) SeekerPersonJobProviderFavs(mods ...qm.QueryMod) jobProviderFavQuery

SeekerPersonJobProviderFavs retrieves all the job_provider_fav's JobProviderFavs with an executor via seeker_person_id column.

func (*Person) SetJobProvider

func (o *Person) SetJobProvider(ctx context.Context, exec boil.ContextExecutor, insert bool, related *JobProvider) error

SetJobProvider of the person to the related item. Sets o.R.JobProvider to related. Adds o to related.R.Person.

func (*Person) Update

func (o *Person) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Person. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Person) Upsert

func (o *Person) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type PersonHook

type PersonHook func(context.Context, boil.ContextExecutor, *Person) error

PersonHook is the signature for custom Person hook methods

type PersonProfile

type PersonProfile struct {
	ID          string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	PersonID    string      `boil:"person_id" json:"person_id" toml:"person_id" yaml:"person_id"`
	ProfileURL  string      `boil:"profile_url" json:"profile_url" toml:"profile_url" yaml:"profile_url"`
	Headline    null.String `boil:"headline" json:"headline,omitempty" toml:"headline" yaml:"headline,omitempty"`
	Website     null.String `boil:"website" json:"website,omitempty" toml:"website" yaml:"website,omitempty"`
	Company     null.String `boil:"company" json:"company,omitempty" toml:"company" yaml:"company,omitempty"`
	ProfileType null.String `boil:"profile_type" json:"profile_type,omitempty" toml:"profile_type" yaml:"profile_type,omitempty"`

	R *personProfileR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L personProfileL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PersonProfile is an object representing the database table.

func FindPersonProfile

func FindPersonProfile(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*PersonProfile, error)

FindPersonProfile retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*PersonProfile) Delete

func (o *PersonProfile) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single PersonProfile record with an executor. Delete will match against the primary key column to find the record to delete.

func (*PersonProfile) Insert

func (o *PersonProfile) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*PersonProfile) Person

func (o *PersonProfile) Person(mods ...qm.QueryMod) personQuery

Person pointed to by the foreign key.

func (*PersonProfile) Reload

func (o *PersonProfile) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*PersonProfile) SetPerson

func (o *PersonProfile) SetPerson(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Person) error

SetPerson of the personProfile to the related item. Sets o.R.Person to related. Adds o to related.R.PersonProfiles.

func (*PersonProfile) Update

func (o *PersonProfile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the PersonProfile. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*PersonProfile) Upsert

func (o *PersonProfile) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type PersonProfileHook

type PersonProfileHook func(context.Context, boil.ContextExecutor, *PersonProfile) error

PersonProfileHook is the signature for custom PersonProfile hook methods

type PersonProfileSlice

type PersonProfileSlice []*PersonProfile

PersonProfileSlice is an alias for a slice of pointers to PersonProfile. This should generally be used opposed to []PersonProfile.

func (PersonProfileSlice) DeleteAll

func (o PersonProfileSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*PersonProfileSlice) ReloadAll

func (o *PersonProfileSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (PersonProfileSlice) UpdateAll

func (o PersonProfileSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type PersonSlice

type PersonSlice []*Person

PersonSlice is an alias for a slice of pointers to Person. This should generally be used opposed to []Person.

func (PersonSlice) DeleteAll

func (o PersonSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*PersonSlice) ReloadAll

func (o *PersonSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (PersonSlice) UpdateAll

func (o PersonSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

Jump to

Keyboard shortcuts

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