models

package
v0.0.0-...-bd615b4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2017 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DATE_FORMAT = "2006-01-02 15:04:05"
	DATE_REGEX  = "((19|20)\\d\\d)-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])"
)

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.

Functions

func AddOkakunHook

func AddOkakunHook(hookPoint boil.HookPoint, okakunHook OkakunHook)

AddOkakunHook registers your hook function for all future operations.

func AddOkprofileHook

func AddOkprofileHook(hookPoint boil.HookPoint, okprofileHook OkprofileHook)

AddOkprofileHook registers your hook function for all future operations.

func AddOkprojectHook

func AddOkprojectHook(hookPoint boil.HookPoint, okprojectHook OkprojectHook)

AddOkprojectHook registers your hook function for all future operations.

func AddOkprojecttaskHook

func AddOkprojecttaskHook(hookPoint boil.HookPoint, okprojecttaskHook OkprojecttaskHook)

AddOkprojecttaskHook registers your hook function for all future operations.

func AddOktaskHook

func AddOktaskHook(hookPoint boil.HookPoint, oktaskHook OktaskHook)

AddOktaskHook registers your hook function for all future operations.

func NewQuery

func NewQuery(exec boil.Executor, mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func NewQueryG

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

NewQueryG initializes a new Query using the passed in QueryMods

func NewResponse

func NewResponse(
	t time.Time,
	statuscode int,
	message string,
	data interface{},
	listError []ErrorModel,
	endpoint string,
	method string) gin.H

func OkakunExists

func OkakunExists(exec boil.Executor, idAkun int) (bool, error)

OkakunExists checks if the Okakun row exists.

func OkakunExistsG

func OkakunExistsG(idAkun int) (bool, error)

OkakunExistsG checks if the Okakun row exists.

func OkakunExistsGP

func OkakunExistsGP(idAkun int) bool

OkakunExistsGP checks if the Okakun row exists. Panics on error.

func OkakunExistsP

func OkakunExistsP(exec boil.Executor, idAkun int) bool

OkakunExistsP checks if the Okakun row exists. Panics on error.

func Okakuns

func Okakuns(exec boil.Executor, mods ...qm.QueryMod) okakunQuery

Okakuns retrieves all the records using an executor.

func OkakunsG

func OkakunsG(mods ...qm.QueryMod) okakunQuery

OkakunsG retrieves all records.

func OkprofileExists

func OkprofileExists(exec boil.Executor, idProfile int) (bool, error)

OkprofileExists checks if the Okprofile row exists.

func OkprofileExistsG

func OkprofileExistsG(idProfile int) (bool, error)

OkprofileExistsG checks if the Okprofile row exists.

func OkprofileExistsGP

func OkprofileExistsGP(idProfile int) bool

OkprofileExistsGP checks if the Okprofile row exists. Panics on error.

func OkprofileExistsP

func OkprofileExistsP(exec boil.Executor, idProfile int) bool

OkprofileExistsP checks if the Okprofile row exists. Panics on error.

func Okprofiles

func Okprofiles(exec boil.Executor, mods ...qm.QueryMod) okprofileQuery

Okprofiles retrieves all the records using an executor.

func OkprofilesG

func OkprofilesG(mods ...qm.QueryMod) okprofileQuery

OkprofilesG retrieves all records.

func OkprojectExists

func OkprojectExists(exec boil.Executor, idProject int) (bool, error)

OkprojectExists checks if the Okproject row exists.

func OkprojectExistsG

func OkprojectExistsG(idProject int) (bool, error)

OkprojectExistsG checks if the Okproject row exists.

func OkprojectExistsGP

func OkprojectExistsGP(idProject int) bool

OkprojectExistsGP checks if the Okproject row exists. Panics on error.

func OkprojectExistsP

func OkprojectExistsP(exec boil.Executor, idProject int) bool

OkprojectExistsP checks if the Okproject row exists. Panics on error.

func Okprojects

func Okprojects(exec boil.Executor, mods ...qm.QueryMod) okprojectQuery

Okprojects retrieves all the records using an executor.

func OkprojectsG

func OkprojectsG(mods ...qm.QueryMod) okprojectQuery

OkprojectsG retrieves all records.

func OkprojecttaskExists

func OkprojecttaskExists(exec boil.Executor, idPTask int) (bool, error)

OkprojecttaskExists checks if the Okprojecttask row exists.

func OkprojecttaskExistsG

func OkprojecttaskExistsG(idPTask int) (bool, error)

OkprojecttaskExistsG checks if the Okprojecttask row exists.

func OkprojecttaskExistsGP

func OkprojecttaskExistsGP(idPTask int) bool

OkprojecttaskExistsGP checks if the Okprojecttask row exists. Panics on error.

func OkprojecttaskExistsP

func OkprojecttaskExistsP(exec boil.Executor, idPTask int) bool

OkprojecttaskExistsP checks if the Okprojecttask row exists. Panics on error.

func Okprojecttasks

func Okprojecttasks(exec boil.Executor, mods ...qm.QueryMod) okprojecttaskQuery

Okprojecttasks retrieves all the records using an executor.

func OkprojecttasksG

func OkprojecttasksG(mods ...qm.QueryMod) okprojecttaskQuery

OkprojecttasksG retrieves all records.

func OktaskExists

func OktaskExists(exec boil.Executor, idTask int) (bool, error)

OktaskExists checks if the Oktask row exists.

func OktaskExistsG

func OktaskExistsG(idTask int) (bool, error)

OktaskExistsG checks if the Oktask row exists.

func OktaskExistsGP

func OktaskExistsGP(idTask int) bool

OktaskExistsGP checks if the Oktask row exists. Panics on error.

func OktaskExistsP

func OktaskExistsP(exec boil.Executor, idTask int) bool

OktaskExistsP checks if the Oktask row exists. Panics on error.

func Oktasks

func Oktasks(exec boil.Executor, mods ...qm.QueryMod) oktaskQuery

Oktasks retrieves all the records using an executor.

func OktasksG

func OktasksG(mods ...qm.QueryMod) oktaskQuery

OktasksG retrieves all records.

Types

type ClaimsData

type ClaimsData struct {
	JwtData `boil:"data" json:"data" toml:"data" yaml:"data"`
	jwt.StandardClaims
}

type ErrorModel

type ErrorModel struct {
	ErrorCode int    `boil:"error_code" json:"error_code" toml:"error_code" yaml:"error_code"`
	Text      string `boil:"text" json:"text" toml:"text" yaml:"text"`
	Hints     string `boil:"hints" json:"hints" toml:"hints" yaml:"hints"`
	Info      string `boil:"info" json:"info" toml:"info" yaml:"info"`
}

type JwtData

type JwtData struct {
	UserName    string `boil:"username" json:"username" toml:"username" yaml:"username"`
	PhoneNumber string `boil:"phone_number" json:"phone_number" toml:"phone_number" yaml:"phone_number"`
	Email       string `boil:"email" json:"email" toml:"email" yaml:"email"`
	Name        string `boil:"name" json:"name" toml:"name" yaml:"name"`
	Role        string `boil:"role" json:"role" toml:"role" yaml:"role"`
	AkunId      int    `boil:"akun_id" json:"akun_id" toml:"akun_id" yaml:"akun_id"`
	ProfileId   int    `boil:"profile_id" json:"profile_id" toml:"profile_id" yaml:"profile_id"`
}

type LoginResponse

type LoginResponse struct {
	Statuscode int    `json:"statuscode"`
	Success    bool   `json:"success"`
	Message    string `json:"message"`
	Token      string `json:"token"`
}

type M

type M map[string]interface{}

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

type Okakun

type Okakun struct {
	IDAkun    int       `boil:"id_akun" json:"id_akun" toml:"id_akun" yaml:"id_akun"`
	Username  string    `boil:"username" json:"username" toml:"username" yaml:"username"`
	Password  string    `boil:"password" json:"password" toml:"password" yaml:"password"`
	Token     string    `boil:"token" json:"token" toml:"token" yaml:"token"`
	CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	Role      string    `boil:"role" json:"role" toml:"role" yaml:"role"`

	R *okakunR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L okakunL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Okakun is an object representing the database table.

func FindOkakun

func FindOkakun(exec boil.Executor, idAkun int, selectCols ...string) (*Okakun, error)

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

func FindOkakunG

func FindOkakunG(idAkun int, selectCols ...string) (*Okakun, error)

FindOkakunG retrieves a single record by ID.

func FindOkakunGP

func FindOkakunGP(idAkun int, selectCols ...string) *Okakun

FindOkakunGP retrieves a single record by ID, and panics on error.

func FindOkakunP

func FindOkakunP(exec boil.Executor, idAkun int, selectCols ...string) *Okakun

FindOkakunP retrieves a single record by ID with an executor, and panics on error.

func (*Okakun) AddAkunOkprofiles

func (o *Okakun) AddAkunOkprofiles(exec boil.Executor, insert bool, related ...*Okprofile) error

AddAkunOkprofiles adds the given related objects to the existing relationships of the okakun, optionally inserting them as new records. Appends related to o.R.AkunOkprofiles. Sets related.R.Akun appropriately.

func (*Okakun) AddAkunOkprofilesG

func (o *Okakun) AddAkunOkprofilesG(insert bool, related ...*Okprofile) error

AddAkunOkprofilesG adds the given related objects to the existing relationships of the okakun, optionally inserting them as new records. Appends related to o.R.AkunOkprofiles. Sets related.R.Akun appropriately. Uses the global database handle.

func (*Okakun) AddAkunOkprofilesGP

func (o *Okakun) AddAkunOkprofilesGP(insert bool, related ...*Okprofile)

AddAkunOkprofilesGP adds the given related objects to the existing relationships of the okakun, optionally inserting them as new records. Appends related to o.R.AkunOkprofiles. Sets related.R.Akun appropriately. Uses the global database handle and panics on error.

func (*Okakun) AddAkunOkprofilesP

func (o *Okakun) AddAkunOkprofilesP(exec boil.Executor, insert bool, related ...*Okprofile)

AddAkunOkprofilesP adds the given related objects to the existing relationships of the okakun, optionally inserting them as new records. Appends related to o.R.AkunOkprofiles. Sets related.R.Akun appropriately. Panics on error.

func (*Okakun) AkunOkprofiles

func (o *Okakun) AkunOkprofiles(exec boil.Executor, mods ...qm.QueryMod) okprofileQuery

AkunOkprofiles retrieves all the okprofile's okprofile with an executor via akun_id column.

func (*Okakun) AkunOkprofilesG

func (o *Okakun) AkunOkprofilesG(mods ...qm.QueryMod) okprofileQuery

AkunOkprofilesG retrieves all the okprofile's okprofile via akun_id column.

func (*Okakun) Delete

func (o *Okakun) Delete(exec boil.Executor) error

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

func (*Okakun) DeleteG

func (o *Okakun) DeleteG() error

DeleteG deletes a single Okakun record. DeleteG will match against the primary key column to find the record to delete.

func (*Okakun) DeleteGP

func (o *Okakun) DeleteGP()

DeleteGP deletes a single Okakun record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Okakun) DeleteP

func (o *Okakun) DeleteP(exec boil.Executor)

DeleteP deletes a single Okakun record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Okakun) Insert

func (o *Okakun) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Okakun) InsertG

func (o *Okakun) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Okakun) InsertGP

func (o *Okakun) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Okakun) InsertP

func (o *Okakun) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Okakun) Reload

func (o *Okakun) Reload(exec boil.Executor) error

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

func (*Okakun) ReloadG

func (o *Okakun) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Okakun) ReloadGP

func (o *Okakun) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Okakun) ReloadP

func (o *Okakun) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Okakun) Update

func (o *Okakun) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Okakun. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Okakun) UpdateG

func (o *Okakun) UpdateG(whitelist ...string) error

UpdateG a single Okakun record. See Update for whitelist behavior description.

func (*Okakun) UpdateGP

func (o *Okakun) UpdateGP(whitelist ...string)

UpdateGP a single Okakun record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Okakun) UpdateP

func (o *Okakun) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Okakun, and panics on error. See Update for whitelist behavior description.

func (*Okakun) Upsert

func (o *Okakun) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Okakun) UpsertG

func (o *Okakun) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Okakun) UpsertGP

func (o *Okakun) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Okakun) UpsertP

func (o *Okakun) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type OkakunHook

type OkakunHook func(boil.Executor, *Okakun) error

OkakunHook is the signature for custom Okakun hook methods

type OkakunSlice

type OkakunSlice []*Okakun

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

func (OkakunSlice) DeleteAll

func (o OkakunSlice) DeleteAll(exec boil.Executor) error

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

func (OkakunSlice) DeleteAllG

func (o OkakunSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (OkakunSlice) DeleteAllGP

func (o OkakunSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (OkakunSlice) DeleteAllP

func (o OkakunSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*OkakunSlice) ReloadAll

func (o *OkakunSlice) ReloadAll(exec boil.Executor) error

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

func (*OkakunSlice) ReloadAllG

func (o *OkakunSlice) ReloadAllG() error

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

func (*OkakunSlice) ReloadAllGP

func (o *OkakunSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*OkakunSlice) ReloadAllP

func (o *OkakunSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (OkakunSlice) UpdateAll

func (o OkakunSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (OkakunSlice) UpdateAllG

func (o OkakunSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (OkakunSlice) UpdateAllGP

func (o OkakunSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (OkakunSlice) UpdateAllP

func (o OkakunSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Okprofile

type Okprofile struct {
	IDProfile     int       `boil:"id_profile" json:"id_profile" toml:"id_profile" yaml:"id_profile"`
	AkunID        int       `boil:"akun_id" json:"akun_id" toml:"akun_id" yaml:"akun_id"`
	FirstName     string    `boil:"first_name" json:"first_name" toml:"first_name" yaml:"first_name"`
	LastName      string    `boil:"last_name" json:"last_name" toml:"last_name" yaml:"last_name"`
	Photo         string    `boil:"photo" json:"photo" toml:"photo" yaml:"photo"`
	CurrentStatus string    `boil:"current_status" json:"current_status" toml:"current_status" yaml:"current_status"`
	CreatedAt     null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt     null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`

	R *okprofileR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L okprofileL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Okprofile is an object representing the database table.

func FindOkprofile

func FindOkprofile(exec boil.Executor, idProfile int, selectCols ...string) (*Okprofile, error)

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

func FindOkprofileG

func FindOkprofileG(idProfile int, selectCols ...string) (*Okprofile, error)

FindOkprofileG retrieves a single record by ID.

func FindOkprofileGP

func FindOkprofileGP(idProfile int, selectCols ...string) *Okprofile

FindOkprofileGP retrieves a single record by ID, and panics on error.

func FindOkprofileP

func FindOkprofileP(exec boil.Executor, idProfile int, selectCols ...string) *Okprofile

FindOkprofileP retrieves a single record by ID with an executor, and panics on error.

func (*Okprofile) AddAssignedtoOkprojecttasks

func (o *Okprofile) AddAssignedtoOkprojecttasks(exec boil.Executor, insert bool, related ...*Okprojecttask) error

AddAssignedtoOkprojecttasks adds the given related objects to the existing relationships of the okprofile, optionally inserting them as new records. Appends related to o.R.AssignedtoOkprojecttasks. Sets related.R.Assignedto appropriately.

func (*Okprofile) AddAssignedtoOkprojecttasksG

func (o *Okprofile) AddAssignedtoOkprojecttasksG(insert bool, related ...*Okprojecttask) error

AddAssignedtoOkprojecttasksG adds the given related objects to the existing relationships of the okprofile, optionally inserting them as new records. Appends related to o.R.AssignedtoOkprojecttasks. Sets related.R.Assignedto appropriately. Uses the global database handle.

func (*Okprofile) AddAssignedtoOkprojecttasksGP

func (o *Okprofile) AddAssignedtoOkprojecttasksGP(insert bool, related ...*Okprojecttask)

AddAssignedtoOkprojecttasksGP adds the given related objects to the existing relationships of the okprofile, optionally inserting them as new records. Appends related to o.R.AssignedtoOkprojecttasks. Sets related.R.Assignedto appropriately. Uses the global database handle and panics on error.

func (*Okprofile) AddAssignedtoOkprojecttasksP

func (o *Okprofile) AddAssignedtoOkprojecttasksP(exec boil.Executor, insert bool, related ...*Okprojecttask)

AddAssignedtoOkprojecttasksP adds the given related objects to the existing relationships of the okprofile, optionally inserting them as new records. Appends related to o.R.AssignedtoOkprojecttasks. Sets related.R.Assignedto appropriately. Panics on error.

func (*Okprofile) AddAssignerOkprojecttasks

func (o *Okprofile) AddAssignerOkprojecttasks(exec boil.Executor, insert bool, related ...*Okprojecttask) error

AddAssignerOkprojecttasks adds the given related objects to the existing relationships of the okprofile, optionally inserting them as new records. Appends related to o.R.AssignerOkprojecttasks. Sets related.R.Assigner appropriately.

func (*Okprofile) AddAssignerOkprojecttasksG

func (o *Okprofile) AddAssignerOkprojecttasksG(insert bool, related ...*Okprojecttask) error

AddAssignerOkprojecttasksG adds the given related objects to the existing relationships of the okprofile, optionally inserting them as new records. Appends related to o.R.AssignerOkprojecttasks. Sets related.R.Assigner appropriately. Uses the global database handle.

func (*Okprofile) AddAssignerOkprojecttasksGP

func (o *Okprofile) AddAssignerOkprojecttasksGP(insert bool, related ...*Okprojecttask)

AddAssignerOkprojecttasksGP adds the given related objects to the existing relationships of the okprofile, optionally inserting them as new records. Appends related to o.R.AssignerOkprojecttasks. Sets related.R.Assigner appropriately. Uses the global database handle and panics on error.

func (*Okprofile) AddAssignerOkprojecttasksP

func (o *Okprofile) AddAssignerOkprojecttasksP(exec boil.Executor, insert bool, related ...*Okprojecttask)

AddAssignerOkprojecttasksP adds the given related objects to the existing relationships of the okprofile, optionally inserting them as new records. Appends related to o.R.AssignerOkprojecttasks. Sets related.R.Assigner appropriately. Panics on error.

func (*Okprofile) Akun

func (o *Okprofile) Akun(exec boil.Executor, mods ...qm.QueryMod) okakunQuery

Akun pointed to by the foreign key.

func (*Okprofile) AkunG

func (o *Okprofile) AkunG(mods ...qm.QueryMod) okakunQuery

AkunG pointed to by the foreign key.

func (*Okprofile) AssignedtoOkprojecttasks

func (o *Okprofile) AssignedtoOkprojecttasks(exec boil.Executor, mods ...qm.QueryMod) okprojecttaskQuery

AssignedtoOkprojecttasks retrieves all the okprojecttask's okprojecttask with an executor via assignedto_id column.

func (*Okprofile) AssignedtoOkprojecttasksG

func (o *Okprofile) AssignedtoOkprojecttasksG(mods ...qm.QueryMod) okprojecttaskQuery

AssignedtoOkprojecttasksG retrieves all the okprojecttask's okprojecttask via assignedto_id column.

func (*Okprofile) AssignerOkprojecttasks

func (o *Okprofile) AssignerOkprojecttasks(exec boil.Executor, mods ...qm.QueryMod) okprojecttaskQuery

AssignerOkprojecttasks retrieves all the okprojecttask's okprojecttask with an executor via assigner_id column.

func (*Okprofile) AssignerOkprojecttasksG

func (o *Okprofile) AssignerOkprojecttasksG(mods ...qm.QueryMod) okprojecttaskQuery

AssignerOkprojecttasksG retrieves all the okprojecttask's okprojecttask via assigner_id column.

func (*Okprofile) Delete

func (o *Okprofile) Delete(exec boil.Executor) error

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

func (*Okprofile) DeleteG

func (o *Okprofile) DeleteG() error

DeleteG deletes a single Okprofile record. DeleteG will match against the primary key column to find the record to delete.

func (*Okprofile) DeleteGP

func (o *Okprofile) DeleteGP()

DeleteGP deletes a single Okprofile record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Okprofile) DeleteP

func (o *Okprofile) DeleteP(exec boil.Executor)

DeleteP deletes a single Okprofile record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Okprofile) Insert

func (o *Okprofile) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Okprofile) InsertG

func (o *Okprofile) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Okprofile) InsertGP

func (o *Okprofile) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Okprofile) InsertP

func (o *Okprofile) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Okprofile) Reload

func (o *Okprofile) Reload(exec boil.Executor) error

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

func (*Okprofile) ReloadG

func (o *Okprofile) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Okprofile) ReloadGP

func (o *Okprofile) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Okprofile) ReloadP

func (o *Okprofile) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Okprofile) SetAkun

func (o *Okprofile) SetAkun(exec boil.Executor, insert bool, related *Okakun) error

SetAkun of the okprofile to the related item. Sets o.R.Akun to related. Adds o to related.R.AkunOkprofiles.

func (*Okprofile) SetAkunG

func (o *Okprofile) SetAkunG(insert bool, related *Okakun) error

SetAkunG of the okprofile to the related item. Sets o.R.Akun to related. Adds o to related.R.AkunOkprofiles. Uses the global database handle.

func (*Okprofile) SetAkunGP

func (o *Okprofile) SetAkunGP(insert bool, related *Okakun)

SetAkunGP of the okprofile to the related item. Sets o.R.Akun to related. Adds o to related.R.AkunOkprofiles. Uses the global database handle and panics on error.

func (*Okprofile) SetAkunP

func (o *Okprofile) SetAkunP(exec boil.Executor, insert bool, related *Okakun)

SetAkunP of the okprofile to the related item. Sets o.R.Akun to related. Adds o to related.R.AkunOkprofiles. Panics on error.

func (*Okprofile) Update

func (o *Okprofile) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Okprofile. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Okprofile) UpdateG

func (o *Okprofile) UpdateG(whitelist ...string) error

UpdateG a single Okprofile record. See Update for whitelist behavior description.

func (*Okprofile) UpdateGP

func (o *Okprofile) UpdateGP(whitelist ...string)

UpdateGP a single Okprofile record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Okprofile) UpdateP

func (o *Okprofile) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Okprofile, and panics on error. See Update for whitelist behavior description.

func (*Okprofile) Upsert

func (o *Okprofile) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Okprofile) UpsertG

func (o *Okprofile) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Okprofile) UpsertGP

func (o *Okprofile) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Okprofile) UpsertP

func (o *Okprofile) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type OkprofileHook

type OkprofileHook func(boil.Executor, *Okprofile) error

OkprofileHook is the signature for custom Okprofile hook methods

type OkprofileSlice

type OkprofileSlice []*Okprofile

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

func (OkprofileSlice) DeleteAll

func (o OkprofileSlice) DeleteAll(exec boil.Executor) error

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

func (OkprofileSlice) DeleteAllG

func (o OkprofileSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (OkprofileSlice) DeleteAllGP

func (o OkprofileSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (OkprofileSlice) DeleteAllP

func (o OkprofileSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*OkprofileSlice) ReloadAll

func (o *OkprofileSlice) ReloadAll(exec boil.Executor) error

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

func (*OkprofileSlice) ReloadAllG

func (o *OkprofileSlice) ReloadAllG() error

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

func (*OkprofileSlice) ReloadAllGP

func (o *OkprofileSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*OkprofileSlice) ReloadAllP

func (o *OkprofileSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (OkprofileSlice) UpdateAll

func (o OkprofileSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (OkprofileSlice) UpdateAllG

func (o OkprofileSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (OkprofileSlice) UpdateAllGP

func (o OkprofileSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (OkprofileSlice) UpdateAllP

func (o OkprofileSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Okproject

type Okproject struct {
	IDProject   int         `boil:"id_project" json:"id_project" toml:"id_project" yaml:"id_project"`
	NamaProject string      `boil:"nama_project" json:"nama_project" toml:"nama_project" yaml:"nama_project"`
	Desc        null.String `boil:"desc" json:"desc,omitempty" toml:"desc" yaml:"desc,omitempty"`
	GitURL      string      `boil:"git_url" json:"git_url" toml:"git_url" yaml:"git_url"`

	R *okprojectR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L okprojectL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Okproject is an object representing the database table.

func FindOkproject

func FindOkproject(exec boil.Executor, idProject int, selectCols ...string) (*Okproject, error)

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

func FindOkprojectG

func FindOkprojectG(idProject int, selectCols ...string) (*Okproject, error)

FindOkprojectG retrieves a single record by ID.

func FindOkprojectGP

func FindOkprojectGP(idProject int, selectCols ...string) *Okproject

FindOkprojectGP retrieves a single record by ID, and panics on error.

func FindOkprojectP

func FindOkprojectP(exec boil.Executor, idProject int, selectCols ...string) *Okproject

FindOkprojectP retrieves a single record by ID with an executor, and panics on error.

func (*Okproject) AddProjectOkprojecttasks

func (o *Okproject) AddProjectOkprojecttasks(exec boil.Executor, insert bool, related ...*Okprojecttask) error

AddProjectOkprojecttasks adds the given related objects to the existing relationships of the okproject, optionally inserting them as new records. Appends related to o.R.ProjectOkprojecttasks. Sets related.R.Project appropriately.

func (*Okproject) AddProjectOkprojecttasksG

func (o *Okproject) AddProjectOkprojecttasksG(insert bool, related ...*Okprojecttask) error

AddProjectOkprojecttasksG adds the given related objects to the existing relationships of the okproject, optionally inserting them as new records. Appends related to o.R.ProjectOkprojecttasks. Sets related.R.Project appropriately. Uses the global database handle.

func (*Okproject) AddProjectOkprojecttasksGP

func (o *Okproject) AddProjectOkprojecttasksGP(insert bool, related ...*Okprojecttask)

AddProjectOkprojecttasksGP adds the given related objects to the existing relationships of the okproject, optionally inserting them as new records. Appends related to o.R.ProjectOkprojecttasks. Sets related.R.Project appropriately. Uses the global database handle and panics on error.

func (*Okproject) AddProjectOkprojecttasksP

func (o *Okproject) AddProjectOkprojecttasksP(exec boil.Executor, insert bool, related ...*Okprojecttask)

AddProjectOkprojecttasksP adds the given related objects to the existing relationships of the okproject, optionally inserting them as new records. Appends related to o.R.ProjectOkprojecttasks. Sets related.R.Project appropriately. Panics on error.

func (*Okproject) Delete

func (o *Okproject) Delete(exec boil.Executor) error

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

func (*Okproject) DeleteG

func (o *Okproject) DeleteG() error

DeleteG deletes a single Okproject record. DeleteG will match against the primary key column to find the record to delete.

func (*Okproject) DeleteGP

func (o *Okproject) DeleteGP()

DeleteGP deletes a single Okproject record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Okproject) DeleteP

func (o *Okproject) DeleteP(exec boil.Executor)

DeleteP deletes a single Okproject record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Okproject) Insert

func (o *Okproject) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Okproject) InsertG

func (o *Okproject) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Okproject) InsertGP

func (o *Okproject) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Okproject) InsertP

func (o *Okproject) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Okproject) ProjectOkprojecttasks

func (o *Okproject) ProjectOkprojecttasks(exec boil.Executor, mods ...qm.QueryMod) okprojecttaskQuery

ProjectOkprojecttasks retrieves all the okprojecttask's okprojecttask with an executor via project_id column.

func (*Okproject) ProjectOkprojecttasksG

func (o *Okproject) ProjectOkprojecttasksG(mods ...qm.QueryMod) okprojecttaskQuery

ProjectOkprojecttasksG retrieves all the okprojecttask's okprojecttask via project_id column.

func (*Okproject) Reload

func (o *Okproject) Reload(exec boil.Executor) error

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

func (*Okproject) ReloadG

func (o *Okproject) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Okproject) ReloadGP

func (o *Okproject) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Okproject) ReloadP

func (o *Okproject) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Okproject) Update

func (o *Okproject) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Okproject. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Okproject) UpdateG

func (o *Okproject) UpdateG(whitelist ...string) error

UpdateG a single Okproject record. See Update for whitelist behavior description.

func (*Okproject) UpdateGP

func (o *Okproject) UpdateGP(whitelist ...string)

UpdateGP a single Okproject record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Okproject) UpdateP

func (o *Okproject) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Okproject, and panics on error. See Update for whitelist behavior description.

func (*Okproject) Upsert

func (o *Okproject) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Okproject) UpsertG

func (o *Okproject) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Okproject) UpsertGP

func (o *Okproject) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Okproject) UpsertP

func (o *Okproject) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type OkprojectHook

type OkprojectHook func(boil.Executor, *Okproject) error

OkprojectHook is the signature for custom Okproject hook methods

type OkprojectSlice

type OkprojectSlice []*Okproject

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

func (OkprojectSlice) DeleteAll

func (o OkprojectSlice) DeleteAll(exec boil.Executor) error

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

func (OkprojectSlice) DeleteAllG

func (o OkprojectSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (OkprojectSlice) DeleteAllGP

func (o OkprojectSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (OkprojectSlice) DeleteAllP

func (o OkprojectSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*OkprojectSlice) ReloadAll

func (o *OkprojectSlice) ReloadAll(exec boil.Executor) error

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

func (*OkprojectSlice) ReloadAllG

func (o *OkprojectSlice) ReloadAllG() error

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

func (*OkprojectSlice) ReloadAllGP

func (o *OkprojectSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*OkprojectSlice) ReloadAllP

func (o *OkprojectSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (OkprojectSlice) UpdateAll

func (o OkprojectSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (OkprojectSlice) UpdateAllG

func (o OkprojectSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (OkprojectSlice) UpdateAllGP

func (o OkprojectSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (OkprojectSlice) UpdateAllP

func (o OkprojectSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Okprojecttask

type Okprojecttask struct {
	IDPTask      int       `boil:"id_p_task" json:"id_p_task" toml:"id_p_task" yaml:"id_p_task"`
	ProjectID    int       `boil:"project_id" json:"project_id" toml:"project_id" yaml:"project_id"`
	TaskID       int       `boil:"task_id" json:"task_id" toml:"task_id" yaml:"task_id"`
	AssignedtoID int       `boil:"assignedto_id" json:"assignedto_id" toml:"assignedto_id" yaml:"assignedto_id"`
	AssignerID   int       `boil:"assigner_id" json:"assigner_id" toml:"assigner_id" yaml:"assigner_id"`
	CreatedAt    null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt    null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	Status       string    `boil:"status" json:"status" toml:"status" yaml:"status"`
	DueDate      null.Time `boil:"due_date" json:"due_date,omitempty" toml:"due_date" yaml:"due_date,omitempty"`

	R *okprojecttaskR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L okprojecttaskL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Okprojecttask is an object representing the database table.

func FindOkprojecttask

func FindOkprojecttask(exec boil.Executor, idPTask int, selectCols ...string) (*Okprojecttask, error)

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

func FindOkprojecttaskG

func FindOkprojecttaskG(idPTask int, selectCols ...string) (*Okprojecttask, error)

FindOkprojecttaskG retrieves a single record by ID.

func FindOkprojecttaskGP

func FindOkprojecttaskGP(idPTask int, selectCols ...string) *Okprojecttask

FindOkprojecttaskGP retrieves a single record by ID, and panics on error.

func FindOkprojecttaskP

func FindOkprojecttaskP(exec boil.Executor, idPTask int, selectCols ...string) *Okprojecttask

FindOkprojecttaskP retrieves a single record by ID with an executor, and panics on error.

func (*Okprojecttask) Assignedto

func (o *Okprojecttask) Assignedto(exec boil.Executor, mods ...qm.QueryMod) okprofileQuery

Assignedto pointed to by the foreign key.

func (*Okprojecttask) AssignedtoG

func (o *Okprojecttask) AssignedtoG(mods ...qm.QueryMod) okprofileQuery

AssignedtoG pointed to by the foreign key.

func (*Okprojecttask) Assigner

func (o *Okprojecttask) Assigner(exec boil.Executor, mods ...qm.QueryMod) okprofileQuery

Assigner pointed to by the foreign key.

func (*Okprojecttask) AssignerG

func (o *Okprojecttask) AssignerG(mods ...qm.QueryMod) okprofileQuery

AssignerG pointed to by the foreign key.

func (*Okprojecttask) Delete

func (o *Okprojecttask) Delete(exec boil.Executor) error

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

func (*Okprojecttask) DeleteG

func (o *Okprojecttask) DeleteG() error

DeleteG deletes a single Okprojecttask record. DeleteG will match against the primary key column to find the record to delete.

func (*Okprojecttask) DeleteGP

func (o *Okprojecttask) DeleteGP()

DeleteGP deletes a single Okprojecttask record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Okprojecttask) DeleteP

func (o *Okprojecttask) DeleteP(exec boil.Executor)

DeleteP deletes a single Okprojecttask record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Okprojecttask) Insert

func (o *Okprojecttask) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Okprojecttask) InsertG

func (o *Okprojecttask) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Okprojecttask) InsertGP

func (o *Okprojecttask) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Okprojecttask) InsertP

func (o *Okprojecttask) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Okprojecttask) Project

func (o *Okprojecttask) Project(exec boil.Executor, mods ...qm.QueryMod) okprojectQuery

Project pointed to by the foreign key.

func (*Okprojecttask) ProjectG

func (o *Okprojecttask) ProjectG(mods ...qm.QueryMod) okprojectQuery

ProjectG pointed to by the foreign key.

func (*Okprojecttask) Reload

func (o *Okprojecttask) Reload(exec boil.Executor) error

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

func (*Okprojecttask) ReloadG

func (o *Okprojecttask) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Okprojecttask) ReloadGP

func (o *Okprojecttask) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Okprojecttask) ReloadP

func (o *Okprojecttask) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Okprojecttask) SetAssignedto

func (o *Okprojecttask) SetAssignedto(exec boil.Executor, insert bool, related *Okprofile) error

SetAssignedto of the okprojecttask to the related item. Sets o.R.Assignedto to related. Adds o to related.R.AssignedtoOkprojecttasks.

func (*Okprojecttask) SetAssignedtoG

func (o *Okprojecttask) SetAssignedtoG(insert bool, related *Okprofile) error

SetAssignedtoG of the okprojecttask to the related item. Sets o.R.Assignedto to related. Adds o to related.R.AssignedtoOkprojecttasks. Uses the global database handle.

func (*Okprojecttask) SetAssignedtoGP

func (o *Okprojecttask) SetAssignedtoGP(insert bool, related *Okprofile)

SetAssignedtoGP of the okprojecttask to the related item. Sets o.R.Assignedto to related. Adds o to related.R.AssignedtoOkprojecttasks. Uses the global database handle and panics on error.

func (*Okprojecttask) SetAssignedtoP

func (o *Okprojecttask) SetAssignedtoP(exec boil.Executor, insert bool, related *Okprofile)

SetAssignedtoP of the okprojecttask to the related item. Sets o.R.Assignedto to related. Adds o to related.R.AssignedtoOkprojecttasks. Panics on error.

func (*Okprojecttask) SetAssigner

func (o *Okprojecttask) SetAssigner(exec boil.Executor, insert bool, related *Okprofile) error

SetAssigner of the okprojecttask to the related item. Sets o.R.Assigner to related. Adds o to related.R.AssignerOkprojecttasks.

func (*Okprojecttask) SetAssignerG

func (o *Okprojecttask) SetAssignerG(insert bool, related *Okprofile) error

SetAssignerG of the okprojecttask to the related item. Sets o.R.Assigner to related. Adds o to related.R.AssignerOkprojecttasks. Uses the global database handle.

func (*Okprojecttask) SetAssignerGP

func (o *Okprojecttask) SetAssignerGP(insert bool, related *Okprofile)

SetAssignerGP of the okprojecttask to the related item. Sets o.R.Assigner to related. Adds o to related.R.AssignerOkprojecttasks. Uses the global database handle and panics on error.

func (*Okprojecttask) SetAssignerP

func (o *Okprojecttask) SetAssignerP(exec boil.Executor, insert bool, related *Okprofile)

SetAssignerP of the okprojecttask to the related item. Sets o.R.Assigner to related. Adds o to related.R.AssignerOkprojecttasks. Panics on error.

func (*Okprojecttask) SetProject

func (o *Okprojecttask) SetProject(exec boil.Executor, insert bool, related *Okproject) error

SetProject of the okprojecttask to the related item. Sets o.R.Project to related. Adds o to related.R.ProjectOkprojecttasks.

func (*Okprojecttask) SetProjectG

func (o *Okprojecttask) SetProjectG(insert bool, related *Okproject) error

SetProjectG of the okprojecttask to the related item. Sets o.R.Project to related. Adds o to related.R.ProjectOkprojecttasks. Uses the global database handle.

func (*Okprojecttask) SetProjectGP

func (o *Okprojecttask) SetProjectGP(insert bool, related *Okproject)

SetProjectGP of the okprojecttask to the related item. Sets o.R.Project to related. Adds o to related.R.ProjectOkprojecttasks. Uses the global database handle and panics on error.

func (*Okprojecttask) SetProjectP

func (o *Okprojecttask) SetProjectP(exec boil.Executor, insert bool, related *Okproject)

SetProjectP of the okprojecttask to the related item. Sets o.R.Project to related. Adds o to related.R.ProjectOkprojecttasks. Panics on error.

func (*Okprojecttask) SetTask

func (o *Okprojecttask) SetTask(exec boil.Executor, insert bool, related *Oktask) error

SetTask of the okprojecttask to the related item. Sets o.R.Task to related. Adds o to related.R.TaskOkprojecttasks.

func (*Okprojecttask) SetTaskG

func (o *Okprojecttask) SetTaskG(insert bool, related *Oktask) error

SetTaskG of the okprojecttask to the related item. Sets o.R.Task to related. Adds o to related.R.TaskOkprojecttasks. Uses the global database handle.

func (*Okprojecttask) SetTaskGP

func (o *Okprojecttask) SetTaskGP(insert bool, related *Oktask)

SetTaskGP of the okprojecttask to the related item. Sets o.R.Task to related. Adds o to related.R.TaskOkprojecttasks. Uses the global database handle and panics on error.

func (*Okprojecttask) SetTaskP

func (o *Okprojecttask) SetTaskP(exec boil.Executor, insert bool, related *Oktask)

SetTaskP of the okprojecttask to the related item. Sets o.R.Task to related. Adds o to related.R.TaskOkprojecttasks. Panics on error.

func (*Okprojecttask) Task

func (o *Okprojecttask) Task(exec boil.Executor, mods ...qm.QueryMod) oktaskQuery

Task pointed to by the foreign key.

func (*Okprojecttask) TaskG

func (o *Okprojecttask) TaskG(mods ...qm.QueryMod) oktaskQuery

TaskG pointed to by the foreign key.

func (*Okprojecttask) Update

func (o *Okprojecttask) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Okprojecttask. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Okprojecttask) UpdateG

func (o *Okprojecttask) UpdateG(whitelist ...string) error

UpdateG a single Okprojecttask record. See Update for whitelist behavior description.

func (*Okprojecttask) UpdateGP

func (o *Okprojecttask) UpdateGP(whitelist ...string)

UpdateGP a single Okprojecttask record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Okprojecttask) UpdateP

func (o *Okprojecttask) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Okprojecttask, and panics on error. See Update for whitelist behavior description.

func (*Okprojecttask) Upsert

func (o *Okprojecttask) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Okprojecttask) UpsertG

func (o *Okprojecttask) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Okprojecttask) UpsertGP

func (o *Okprojecttask) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Okprojecttask) UpsertP

func (o *Okprojecttask) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type OkprojecttaskHook

type OkprojecttaskHook func(boil.Executor, *Okprojecttask) error

OkprojecttaskHook is the signature for custom Okprojecttask hook methods

type OkprojecttaskSlice

type OkprojecttaskSlice []*Okprojecttask

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

func (OkprojecttaskSlice) DeleteAll

func (o OkprojecttaskSlice) DeleteAll(exec boil.Executor) error

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

func (OkprojecttaskSlice) DeleteAllG

func (o OkprojecttaskSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (OkprojecttaskSlice) DeleteAllGP

func (o OkprojecttaskSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (OkprojecttaskSlice) DeleteAllP

func (o OkprojecttaskSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*OkprojecttaskSlice) ReloadAll

func (o *OkprojecttaskSlice) ReloadAll(exec boil.Executor) error

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

func (*OkprojecttaskSlice) ReloadAllG

func (o *OkprojecttaskSlice) ReloadAllG() error

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

func (*OkprojecttaskSlice) ReloadAllGP

func (o *OkprojecttaskSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*OkprojecttaskSlice) ReloadAllP

func (o *OkprojecttaskSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (OkprojecttaskSlice) UpdateAll

func (o OkprojecttaskSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (OkprojecttaskSlice) UpdateAllG

func (o OkprojecttaskSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (OkprojecttaskSlice) UpdateAllGP

func (o OkprojecttaskSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (OkprojecttaskSlice) UpdateAllP

func (o OkprojecttaskSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Oktask

type Oktask struct {
	IDTask     int         `boil:"id_task" json:"id_task" toml:"id_task" yaml:"id_task"`
	TitleTask  string      `boil:"title_task" json:"title_task" toml:"title_task" yaml:"title_task"`
	Urgency    string      `boil:"urgency" json:"urgency" toml:"urgency" yaml:"urgency"`
	Difficulty string      `boil:"difficulty" json:"difficulty" toml:"difficulty" yaml:"difficulty"`
	DescTask   null.String `boil:"desc_task" json:"desc_task,omitempty" toml:"desc_task" yaml:"desc_task,omitempty"`

	R *oktaskR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L oktaskL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Oktask is an object representing the database table.

func FindOktask

func FindOktask(exec boil.Executor, idTask int, selectCols ...string) (*Oktask, error)

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

func FindOktaskG

func FindOktaskG(idTask int, selectCols ...string) (*Oktask, error)

FindOktaskG retrieves a single record by ID.

func FindOktaskGP

func FindOktaskGP(idTask int, selectCols ...string) *Oktask

FindOktaskGP retrieves a single record by ID, and panics on error.

func FindOktaskP

func FindOktaskP(exec boil.Executor, idTask int, selectCols ...string) *Oktask

FindOktaskP retrieves a single record by ID with an executor, and panics on error.

func (*Oktask) AddTaskOkprojecttasks

func (o *Oktask) AddTaskOkprojecttasks(exec boil.Executor, insert bool, related ...*Okprojecttask) error

AddTaskOkprojecttasks adds the given related objects to the existing relationships of the oktask, optionally inserting them as new records. Appends related to o.R.TaskOkprojecttasks. Sets related.R.Task appropriately.

func (*Oktask) AddTaskOkprojecttasksG

func (o *Oktask) AddTaskOkprojecttasksG(insert bool, related ...*Okprojecttask) error

AddTaskOkprojecttasksG adds the given related objects to the existing relationships of the oktask, optionally inserting them as new records. Appends related to o.R.TaskOkprojecttasks. Sets related.R.Task appropriately. Uses the global database handle.

func (*Oktask) AddTaskOkprojecttasksGP

func (o *Oktask) AddTaskOkprojecttasksGP(insert bool, related ...*Okprojecttask)

AddTaskOkprojecttasksGP adds the given related objects to the existing relationships of the oktask, optionally inserting them as new records. Appends related to o.R.TaskOkprojecttasks. Sets related.R.Task appropriately. Uses the global database handle and panics on error.

func (*Oktask) AddTaskOkprojecttasksP

func (o *Oktask) AddTaskOkprojecttasksP(exec boil.Executor, insert bool, related ...*Okprojecttask)

AddTaskOkprojecttasksP adds the given related objects to the existing relationships of the oktask, optionally inserting them as new records. Appends related to o.R.TaskOkprojecttasks. Sets related.R.Task appropriately. Panics on error.

func (*Oktask) Delete

func (o *Oktask) Delete(exec boil.Executor) error

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

func (*Oktask) DeleteG

func (o *Oktask) DeleteG() error

DeleteG deletes a single Oktask record. DeleteG will match against the primary key column to find the record to delete.

func (*Oktask) DeleteGP

func (o *Oktask) DeleteGP()

DeleteGP deletes a single Oktask record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Oktask) DeleteP

func (o *Oktask) DeleteP(exec boil.Executor)

DeleteP deletes a single Oktask record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Oktask) Insert

func (o *Oktask) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Oktask) InsertG

func (o *Oktask) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Oktask) InsertGP

func (o *Oktask) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Oktask) InsertP

func (o *Oktask) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Oktask) Reload

func (o *Oktask) Reload(exec boil.Executor) error

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

func (*Oktask) ReloadG

func (o *Oktask) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Oktask) ReloadGP

func (o *Oktask) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Oktask) ReloadP

func (o *Oktask) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Oktask) TaskOkprojecttasks

func (o *Oktask) TaskOkprojecttasks(exec boil.Executor, mods ...qm.QueryMod) okprojecttaskQuery

TaskOkprojecttasks retrieves all the okprojecttask's okprojecttask with an executor via task_id column.

func (*Oktask) TaskOkprojecttasksG

func (o *Oktask) TaskOkprojecttasksG(mods ...qm.QueryMod) okprojecttaskQuery

TaskOkprojecttasksG retrieves all the okprojecttask's okprojecttask via task_id column.

func (*Oktask) Update

func (o *Oktask) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Oktask. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Oktask) UpdateG

func (o *Oktask) UpdateG(whitelist ...string) error

UpdateG a single Oktask record. See Update for whitelist behavior description.

func (*Oktask) UpdateGP

func (o *Oktask) UpdateGP(whitelist ...string)

UpdateGP a single Oktask record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Oktask) UpdateP

func (o *Oktask) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Oktask, and panics on error. See Update for whitelist behavior description.

func (*Oktask) Upsert

func (o *Oktask) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Oktask) UpsertG

func (o *Oktask) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Oktask) UpsertGP

func (o *Oktask) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Oktask) UpsertP

func (o *Oktask) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type OktaskHook

type OktaskHook func(boil.Executor, *Oktask) error

OktaskHook is the signature for custom Oktask hook methods

type OktaskSlice

type OktaskSlice []*Oktask

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

func (OktaskSlice) DeleteAll

func (o OktaskSlice) DeleteAll(exec boil.Executor) error

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

func (OktaskSlice) DeleteAllG

func (o OktaskSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (OktaskSlice) DeleteAllGP

func (o OktaskSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (OktaskSlice) DeleteAllP

func (o OktaskSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*OktaskSlice) ReloadAll

func (o *OktaskSlice) ReloadAll(exec boil.Executor) error

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

func (*OktaskSlice) ReloadAllG

func (o *OktaskSlice) ReloadAllG() error

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

func (*OktaskSlice) ReloadAllGP

func (o *OktaskSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*OktaskSlice) ReloadAllP

func (o *OktaskSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (OktaskSlice) UpdateAll

func (o OktaskSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (OktaskSlice) UpdateAllG

func (o OktaskSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (OktaskSlice) UpdateAllGP

func (o OktaskSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (OktaskSlice) UpdateAllP

func (o OktaskSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type ResponseModel

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

Jump to

Keyboard shortcuts

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