dm

package
v0.0.0-...-3763cbc Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccountColumns = struct {
	ID        string
	FirstName string
	LastName  string
	Email     string
	Password  string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "id",
	FirstName: "first_name",
	LastName:  "last_name",
	Email:     "email",
	Password:  "password",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var AccountRels = struct {
	AccountSessions      string
	Comments             string
	Events               string
	OrganizationAccounts string
}{
	AccountSessions:      "AccountSessions",
	Comments:             "Comments",
	Events:               "Events",
	OrganizationAccounts: "OrganizationAccounts",
}

AccountRels is where relationship names are stored.

View Source
var AccountSessionColumns = struct {
	ID               string
	AccountID        string
	RefreshTokenHash string
	IPAddress        string
	UserAgent        string
	ExpiresAt        string
	CreatedAt        string
	UpdatedAt        string
	DeletedAt        string
}{
	ID:               "id",
	AccountID:        "account_id",
	RefreshTokenHash: "refresh_token_hash",
	IPAddress:        "ip_address",
	UserAgent:        "user_agent",
	ExpiresAt:        "expires_at",
	CreatedAt:        "created_at",
	UpdatedAt:        "updated_at",
	DeletedAt:        "deleted_at",
}
View Source
var AccountSessionRels = struct {
	Account string
}{
	Account: "Account",
}

AccountSessionRels is where relationship names are stored.

View Source
var AccountSessionTableColumns = struct {
	ID               string
	AccountID        string
	RefreshTokenHash string
	IPAddress        string
	UserAgent        string
	ExpiresAt        string
	CreatedAt        string
	UpdatedAt        string
	DeletedAt        string
}{
	ID:               "account_session.id",
	AccountID:        "account_session.account_id",
	RefreshTokenHash: "account_session.refresh_token_hash",
	IPAddress:        "account_session.ip_address",
	UserAgent:        "account_session.user_agent",
	ExpiresAt:        "account_session.expires_at",
	CreatedAt:        "account_session.created_at",
	UpdatedAt:        "account_session.updated_at",
	DeletedAt:        "account_session.deleted_at",
}
View Source
var AccountSessionWhere = struct {
	ID               whereHelperstring
	AccountID        whereHelperstring
	RefreshTokenHash whereHelperstring
	IPAddress        whereHelperstring
	UserAgent        whereHelperstring
	ExpiresAt        whereHelpertime_Time
	CreatedAt        whereHelpertime_Time
	UpdatedAt        whereHelpertime_Time
	DeletedAt        whereHelpernull_Time
}{
	ID:               whereHelperstring{/* contains filtered or unexported fields */},
	AccountID:        whereHelperstring{/* contains filtered or unexported fields */},
	RefreshTokenHash: whereHelperstring{/* contains filtered or unexported fields */},
	IPAddress:        whereHelperstring{/* contains filtered or unexported fields */},
	UserAgent:        whereHelperstring{/* contains filtered or unexported fields */},
	ExpiresAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:        whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var AccountTableColumns = struct {
	ID        string
	FirstName string
	LastName  string
	Email     string
	Password  string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "account.id",
	FirstName: "account.first_name",
	LastName:  "account.last_name",
	Email:     "account.email",
	Password:  "account.password",
	CreatedAt: "account.created_at",
	UpdatedAt: "account.updated_at",
	DeletedAt: "account.deleted_at",
}
View Source
var AccountWhere = struct {
	ID        whereHelperstring
	FirstName whereHelperstring
	LastName  whereHelperstring
	Email     whereHelperstring
	Password  whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	FirstName: whereHelperstring{/* contains filtered or unexported fields */},
	LastName:  whereHelperstring{/* contains filtered or unexported fields */},
	Email:     whereHelperstring{/* contains filtered or unexported fields */},
	Password:  whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var CommentColumns = struct {
	ID             string
	OrganizationID string
	EventID        string
	AccountID      string
	Comment        string
	CreatedAt      string
	UpdatedAt      string
	DeletedAt      string
}{
	ID:             "id",
	OrganizationID: "organization_id",
	EventID:        "event_id",
	AccountID:      "account_id",
	Comment:        "comment",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
	DeletedAt:      "deleted_at",
}
View Source
var CommentRels = struct {
	Account      string
	Event        string
	Organization string
}{
	Account:      "Account",
	Event:        "Event",
	Organization: "Organization",
}

CommentRels is where relationship names are stored.

View Source
var CommentTableColumns = struct {
	ID             string
	OrganizationID string
	EventID        string
	AccountID      string
	Comment        string
	CreatedAt      string
	UpdatedAt      string
	DeletedAt      string
}{
	ID:             "comment.id",
	OrganizationID: "comment.organization_id",
	EventID:        "comment.event_id",
	AccountID:      "comment.account_id",
	Comment:        "comment.comment",
	CreatedAt:      "comment.created_at",
	UpdatedAt:      "comment.updated_at",
	DeletedAt:      "comment.deleted_at",
}
View Source
var CommentWhere = struct {
	ID             whereHelperstring
	OrganizationID whereHelperstring
	EventID        whereHelperstring
	AccountID      whereHelperstring
	Comment        whereHelperstring
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
	DeletedAt      whereHelpernull_Time
}{
	ID:             whereHelperstring{/* contains filtered or unexported fields */},
	OrganizationID: whereHelperstring{/* contains filtered or unexported fields */},
	EventID:        whereHelperstring{/* contains filtered or unexported fields */},
	AccountID:      whereHelperstring{/* contains filtered or unexported fields */},
	Comment:        whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:      whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("dm: 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 EventColumns = struct {
	ID             string
	OrganizationID string
	AccountID      string
	Name           string
	Description    string
	CreatedAt      string
	UpdatedAt      string
	DeletedAt      string
}{
	ID:             "id",
	OrganizationID: "organization_id",
	AccountID:      "account_id",
	Name:           "name",
	Description:    "description",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
	DeletedAt:      "deleted_at",
}
View Source
var EventRels = struct {
	Account      string
	Organization string
	Comments     string
}{
	Account:      "Account",
	Organization: "Organization",
	Comments:     "Comments",
}

EventRels is where relationship names are stored.

View Source
var EventTableColumns = struct {
	ID             string
	OrganizationID string
	AccountID      string
	Name           string
	Description    string
	CreatedAt      string
	UpdatedAt      string
	DeletedAt      string
}{
	ID:             "event.id",
	OrganizationID: "event.organization_id",
	AccountID:      "event.account_id",
	Name:           "event.name",
	Description:    "event.description",
	CreatedAt:      "event.created_at",
	UpdatedAt:      "event.updated_at",
	DeletedAt:      "event.deleted_at",
}
View Source
var EventWhere = struct {
	ID             whereHelperstring
	OrganizationID whereHelperstring
	AccountID      whereHelperstring
	Name           whereHelperstring
	Description    whereHelperstring
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
	DeletedAt      whereHelpernull_Time
}{
	ID:             whereHelperstring{/* contains filtered or unexported fields */},
	OrganizationID: whereHelperstring{/* contains filtered or unexported fields */},
	AccountID:      whereHelperstring{/* contains filtered or unexported fields */},
	Name:           whereHelperstring{/* contains filtered or unexported fields */},
	Description:    whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:      whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var OrganizationAccountColumns = struct {
	ID             string
	OrganizationID string
	AccountID      string
	Role           string
	CreatedAt      string
	UpdatedAt      string
	DeletedAt      string
}{
	ID:             "id",
	OrganizationID: "organization_id",
	AccountID:      "account_id",
	Role:           "role",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
	DeletedAt:      "deleted_at",
}
View Source
var OrganizationAccountRels = struct {
	Account      string
	Organization string
}{
	Account:      "Account",
	Organization: "Organization",
}

OrganizationAccountRels is where relationship names are stored.

View Source
var OrganizationAccountTableColumns = struct {
	ID             string
	OrganizationID string
	AccountID      string
	Role           string
	CreatedAt      string
	UpdatedAt      string
	DeletedAt      string
}{
	ID:             "organization_account.id",
	OrganizationID: "organization_account.organization_id",
	AccountID:      "organization_account.account_id",
	Role:           "organization_account.role",
	CreatedAt:      "organization_account.created_at",
	UpdatedAt:      "organization_account.updated_at",
	DeletedAt:      "organization_account.deleted_at",
}
View Source
var OrganizationAccountWhere = struct {
	ID             whereHelperstring
	OrganizationID whereHelperstring
	AccountID      whereHelperstring
	Role           whereHelperRole
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
	DeletedAt      whereHelpernull_Time
}{
	ID:             whereHelperstring{/* contains filtered or unexported fields */},
	OrganizationID: whereHelperstring{/* contains filtered or unexported fields */},
	AccountID:      whereHelperstring{/* contains filtered or unexported fields */},
	Role:           whereHelperRole{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:      whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var OrganizationColumns = struct {
	ID        string
	Name      string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "id",
	Name:      "name",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var OrganizationRels = struct {
	Comments             string
	Events               string
	OrganizationAccounts string
}{
	Comments:             "Comments",
	Events:               "Events",
	OrganizationAccounts: "OrganizationAccounts",
}

OrganizationRels is where relationship names are stored.

View Source
var OrganizationTableColumns = struct {
	ID        string
	Name      string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "organization.id",
	Name:      "organization.name",
	CreatedAt: "organization.created_at",
	UpdatedAt: "organization.updated_at",
	DeletedAt: "organization.deleted_at",
}
View Source
var OrganizationWhere = struct {
	ID        whereHelperstring
	Name      whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var SchemaMigrationColumns = struct {
	Version string
	Dirty   string
}{
	Version: "version",
	Dirty:   "dirty",
}
View Source
var SchemaMigrationRels = struct {
}{}

SchemaMigrationRels is where relationship names are stored.

View Source
var SchemaMigrationTableColumns = struct {
	Version string
	Dirty   string
}{
	Version: "schema_migrations.version",
	Dirty:   "schema_migrations.dirty",
}
View Source
var SchemaMigrationWhere = struct {
	Version whereHelperstring
	Dirty   whereHelperbool
}{
	Version: whereHelperstring{/* contains filtered or unexported fields */},
	Dirty:   whereHelperbool{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Account             string
	AccountSession      string
	Comment             string
	Event               string
	Organization        string
	OrganizationAccount string
	SchemaMigrations    string
}{
	Account:             "account",
	AccountSession:      "account_session",
	Comment:             "comment",
	Event:               "event",
	Organization:        "organization",
	OrganizationAccount: "organization_account",
	SchemaMigrations:    "schema_migrations",
}
View Source
var ViewNames = struct {
}{}

Functions

func AccountExists

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

AccountExists checks if the Account row exists.

func AccountSessionExists

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

AccountSessionExists checks if the AccountSession row exists.

func AccountSessions

func AccountSessions(mods ...qm.QueryMod) accountSessionQuery

AccountSessions retrieves all the records using an executor.

func Accounts

func Accounts(mods ...qm.QueryMod) accountQuery

Accounts retrieves all the records using an executor.

func AddAccountHook

func AddAccountHook(hookPoint boil.HookPoint, accountHook AccountHook)

AddAccountHook registers your hook function for all future operations.

func AddAccountSessionHook

func AddAccountSessionHook(hookPoint boil.HookPoint, accountSessionHook AccountSessionHook)

AddAccountSessionHook registers your hook function for all future operations.

func AddCommentHook

func AddCommentHook(hookPoint boil.HookPoint, commentHook CommentHook)

AddCommentHook registers your hook function for all future operations.

func AddEventHook

func AddEventHook(hookPoint boil.HookPoint, eventHook EventHook)

AddEventHook registers your hook function for all future operations.

func AddOrganizationAccountHook

func AddOrganizationAccountHook(hookPoint boil.HookPoint, organizationAccountHook OrganizationAccountHook)

AddOrganizationAccountHook registers your hook function for all future operations.

func AddOrganizationHook

func AddOrganizationHook(hookPoint boil.HookPoint, organizationHook OrganizationHook)

AddOrganizationHook registers your hook function for all future operations.

func AddSchemaMigrationHook

func AddSchemaMigrationHook(hookPoint boil.HookPoint, schemaMigrationHook SchemaMigrationHook)

AddSchemaMigrationHook registers your hook function for all future operations.

func CommentExists

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

CommentExists checks if the Comment row exists.

func Comments

func Comments(mods ...qm.QueryMod) commentQuery

Comments retrieves all the records using an executor.

func EventExists

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

EventExists checks if the Event row exists.

func Events

func Events(mods ...qm.QueryMod) eventQuery

Events 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 OrganizationAccountExists

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

OrganizationAccountExists checks if the OrganizationAccount row exists.

func OrganizationAccounts

func OrganizationAccounts(mods ...qm.QueryMod) organizationAccountQuery

OrganizationAccounts retrieves all the records using an executor.

func OrganizationExists

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

OrganizationExists checks if the Organization row exists.

func Organizations

func Organizations(mods ...qm.QueryMod) organizationQuery

Organizations retrieves all the records using an executor.

func SchemaMigrationExists

func SchemaMigrationExists(ctx context.Context, exec boil.ContextExecutor, version string) (bool, error)

SchemaMigrationExists checks if the SchemaMigration row exists.

func SchemaMigrations

func SchemaMigrations(mods ...qm.QueryMod) schemaMigrationQuery

SchemaMigrations retrieves all the records using an executor.

Types

type Account

type Account struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	FirstName string    `boil:"first_name" json:"firstName" toml:"first_name" yaml:"first_name"`
	LastName  string    `boil:"last_name" json:"lastName" toml:"last_name" yaml:"last_name"`
	Email     string    `boil:"email" json:"email" toml:"email" yaml:"email"`
	Password  string    `boil:"password" json:"password" toml:"password" yaml:"password"`
	CreatedAt time.Time `boil:"created_at" json:"createdAt" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updatedAt" toml:"updated_at" yaml:"updated_at"`
	DeletedAt null.Time `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *accountR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L accountL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Account is an object representing the database table.

func FindAccount

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

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

func (*Account) AccountSessions

func (o *Account) AccountSessions(mods ...qm.QueryMod) accountSessionQuery

AccountSessions retrieves all the account_session's AccountSessions with an executor.

func (*Account) AddAccountSessions

func (o *Account) AddAccountSessions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AccountSession) error

AddAccountSessions adds the given related objects to the existing relationships of the account, optionally inserting them as new records. Appends related to o.R.AccountSessions. Sets related.R.Account appropriately.

func (*Account) AddComments

func (o *Account) AddComments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Comment) error

AddComments adds the given related objects to the existing relationships of the account, optionally inserting them as new records. Appends related to o.R.Comments. Sets related.R.Account appropriately.

func (*Account) AddEvents

func (o *Account) AddEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Event) error

AddEvents adds the given related objects to the existing relationships of the account, optionally inserting them as new records. Appends related to o.R.Events. Sets related.R.Account appropriately.

func (*Account) AddOrganizationAccounts

func (o *Account) AddOrganizationAccounts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OrganizationAccount) error

AddOrganizationAccounts adds the given related objects to the existing relationships of the account, optionally inserting them as new records. Appends related to o.R.OrganizationAccounts. Sets related.R.Account appropriately.

func (*Account) Comments

func (o *Account) Comments(mods ...qm.QueryMod) commentQuery

Comments retrieves all the comment's Comments with an executor.

func (*Account) Delete

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

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

func (*Account) Events

func (o *Account) Events(mods ...qm.QueryMod) eventQuery

Events retrieves all the event's Events with an executor.

func (*Account) Exists

func (o *Account) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Account row exists.

func (*Account) Insert

func (o *Account) 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 (*Account) OrganizationAccounts

func (o *Account) OrganizationAccounts(mods ...qm.QueryMod) organizationAccountQuery

OrganizationAccounts retrieves all the organization_account's OrganizationAccounts with an executor.

func (*Account) Reload

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

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

func (*Account) Update

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

Update uses an executor to update the Account. 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 (*Account) Upsert

func (o *Account) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 AccountHook

type AccountHook func(context.Context, boil.ContextExecutor, *Account) error

AccountHook is the signature for custom Account hook methods

type AccountSession

type AccountSession struct {
	ID               string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	AccountID        string    `boil:"account_id" json:"accountID" toml:"account_id" yaml:"account_id"`
	RefreshTokenHash string    `boil:"refresh_token_hash" json:"refreshTokenHash" toml:"refresh_token_hash" yaml:"refresh_token_hash"`
	IPAddress        string    `boil:"ip_address" json:"ipAddress" toml:"ip_address" yaml:"ip_address"`
	UserAgent        string    `boil:"user_agent" json:"userAgent" toml:"user_agent" yaml:"user_agent"`
	ExpiresAt        time.Time `boil:"expires_at" json:"expiresAt" toml:"expires_at" yaml:"expires_at"`
	CreatedAt        time.Time `boil:"created_at" json:"createdAt" toml:"created_at" yaml:"created_at"`
	UpdatedAt        time.Time `boil:"updated_at" json:"updatedAt" toml:"updated_at" yaml:"updated_at"`
	DeletedAt        null.Time `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *accountSessionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L accountSessionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AccountSession is an object representing the database table.

func FindAccountSession

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

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

func (*AccountSession) Account

func (o *AccountSession) Account(mods ...qm.QueryMod) accountQuery

Account pointed to by the foreign key.

func (*AccountSession) Delete

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

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

func (*AccountSession) Exists

func (o *AccountSession) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the AccountSession row exists.

func (*AccountSession) Insert

func (o *AccountSession) 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 (*AccountSession) Reload

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

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

func (*AccountSession) SetAccount

func (o *AccountSession) SetAccount(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error

SetAccount of the accountSession to the related item. Sets o.R.Account to related. Adds o to related.R.AccountSessions.

func (*AccountSession) Update

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

Update uses an executor to update the AccountSession. 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 (*AccountSession) Upsert

func (o *AccountSession) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 AccountSessionHook

type AccountSessionHook func(context.Context, boil.ContextExecutor, *AccountSession) error

AccountSessionHook is the signature for custom AccountSession hook methods

type AccountSessionSlice

type AccountSessionSlice []*AccountSession

AccountSessionSlice is an alias for a slice of pointers to AccountSession. This should almost always be used instead of []AccountSession.

func (AccountSessionSlice) DeleteAll

func (o AccountSessionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*AccountSessionSlice) ReloadAll

func (o *AccountSessionSlice) 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 (AccountSessionSlice) UpdateAll

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

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

type AccountSlice

type AccountSlice []*Account

AccountSlice is an alias for a slice of pointers to Account. This should almost always be used instead of []Account.

func (AccountSlice) DeleteAll

func (o AccountSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*AccountSlice) ReloadAll

func (o *AccountSlice) 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 (AccountSlice) UpdateAll

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

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

type Comment

type Comment struct {
	ID             string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	OrganizationID string    `boil:"organization_id" json:"organizationID" toml:"organization_id" yaml:"organization_id"`
	EventID        string    `boil:"event_id" json:"eventID" toml:"event_id" yaml:"event_id"`
	AccountID      string    `boil:"account_id" json:"accountID" toml:"account_id" yaml:"account_id"`
	Comment        string    `boil:"comment" json:"comment" toml:"comment" yaml:"comment"`
	CreatedAt      time.Time `boil:"created_at" json:"createdAt" toml:"created_at" yaml:"created_at"`
	UpdatedAt      time.Time `boil:"updated_at" json:"updatedAt" toml:"updated_at" yaml:"updated_at"`
	DeletedAt      null.Time `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *commentR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L commentL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Comment is an object representing the database table.

func FindComment

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

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

func (*Comment) Account

func (o *Comment) Account(mods ...qm.QueryMod) accountQuery

Account pointed to by the foreign key.

func (*Comment) Delete

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

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

func (*Comment) Event

func (o *Comment) Event(mods ...qm.QueryMod) eventQuery

Event pointed to by the foreign key.

func (*Comment) Exists

func (o *Comment) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Comment row exists.

func (*Comment) Insert

func (o *Comment) 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 (*Comment) Organization

func (o *Comment) Organization(mods ...qm.QueryMod) organizationQuery

Organization pointed to by the foreign key.

func (*Comment) Reload

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

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

func (*Comment) SetAccount

func (o *Comment) SetAccount(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error

SetAccount of the comment to the related item. Sets o.R.Account to related. Adds o to related.R.Comments.

func (*Comment) SetEvent

func (o *Comment) SetEvent(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Event) error

SetEvent of the comment to the related item. Sets o.R.Event to related. Adds o to related.R.Comments.

func (*Comment) SetOrganization

func (o *Comment) SetOrganization(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Organization) error

SetOrganization of the comment to the related item. Sets o.R.Organization to related. Adds o to related.R.Comments.

func (*Comment) Update

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

Update uses an executor to update the Comment. 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 (*Comment) Upsert

func (o *Comment) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 CommentHook

type CommentHook func(context.Context, boil.ContextExecutor, *Comment) error

CommentHook is the signature for custom Comment hook methods

type CommentSlice

type CommentSlice []*Comment

CommentSlice is an alias for a slice of pointers to Comment. This should almost always be used instead of []Comment.

func (CommentSlice) DeleteAll

func (o CommentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*CommentSlice) ReloadAll

func (o *CommentSlice) 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 (CommentSlice) UpdateAll

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

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

type Event

type Event struct {
	ID             string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	OrganizationID string    `boil:"organization_id" json:"organizationID" toml:"organization_id" yaml:"organization_id"`
	AccountID      string    `boil:"account_id" json:"accountID" toml:"account_id" yaml:"account_id"`
	Name           string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	Description    string    `boil:"description" json:"description" toml:"description" yaml:"description"`
	CreatedAt      time.Time `boil:"created_at" json:"createdAt" toml:"created_at" yaml:"created_at"`
	UpdatedAt      time.Time `boil:"updated_at" json:"updatedAt" toml:"updated_at" yaml:"updated_at"`
	DeletedAt      null.Time `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *eventR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L eventL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Event is an object representing the database table.

func FindEvent

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

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

func (*Event) Account

func (o *Event) Account(mods ...qm.QueryMod) accountQuery

Account pointed to by the foreign key.

func (*Event) AddComments

func (o *Event) AddComments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Comment) error

AddComments adds the given related objects to the existing relationships of the event, optionally inserting them as new records. Appends related to o.R.Comments. Sets related.R.Event appropriately.

func (*Event) Comments

func (o *Event) Comments(mods ...qm.QueryMod) commentQuery

Comments retrieves all the comment's Comments with an executor.

func (*Event) Delete

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

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

func (*Event) Exists

func (o *Event) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Event row exists.

func (*Event) Insert

func (o *Event) 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 (*Event) Organization

func (o *Event) Organization(mods ...qm.QueryMod) organizationQuery

Organization pointed to by the foreign key.

func (*Event) Reload

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

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

func (*Event) SetAccount

func (o *Event) SetAccount(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error

SetAccount of the event to the related item. Sets o.R.Account to related. Adds o to related.R.Events.

func (*Event) SetOrganization

func (o *Event) SetOrganization(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Organization) error

SetOrganization of the event to the related item. Sets o.R.Organization to related. Adds o to related.R.Events.

func (*Event) Update

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

Update uses an executor to update the Event. 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 (*Event) Upsert

func (o *Event) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 EventHook

type EventHook func(context.Context, boil.ContextExecutor, *Event) error

EventHook is the signature for custom Event hook methods

type EventSlice

type EventSlice []*Event

EventSlice is an alias for a slice of pointers to Event. This should almost always be used instead of []Event.

func (EventSlice) DeleteAll

func (o EventSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*EventSlice) ReloadAll

func (o *EventSlice) 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 (EventSlice) UpdateAll

func (o EventSlice) 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 Organization

type Organization struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	CreatedAt time.Time `boil:"created_at" json:"createdAt" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updatedAt" toml:"updated_at" yaml:"updated_at"`
	DeletedAt null.Time `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *organizationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L organizationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Organization is an object representing the database table.

func FindOrganization

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

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

func (*Organization) AddComments

func (o *Organization) AddComments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Comment) error

AddComments adds the given related objects to the existing relationships of the organization, optionally inserting them as new records. Appends related to o.R.Comments. Sets related.R.Organization appropriately.

func (*Organization) AddEvents

func (o *Organization) AddEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Event) error

AddEvents adds the given related objects to the existing relationships of the organization, optionally inserting them as new records. Appends related to o.R.Events. Sets related.R.Organization appropriately.

func (*Organization) AddOrganizationAccounts

func (o *Organization) AddOrganizationAccounts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OrganizationAccount) error

AddOrganizationAccounts adds the given related objects to the existing relationships of the organization, optionally inserting them as new records. Appends related to o.R.OrganizationAccounts. Sets related.R.Organization appropriately.

func (*Organization) Comments

func (o *Organization) Comments(mods ...qm.QueryMod) commentQuery

Comments retrieves all the comment's Comments with an executor.

func (*Organization) Delete

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

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

func (*Organization) Events

func (o *Organization) Events(mods ...qm.QueryMod) eventQuery

Events retrieves all the event's Events with an executor.

func (*Organization) Exists

func (o *Organization) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Organization row exists.

func (*Organization) Insert

func (o *Organization) 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 (*Organization) OrganizationAccounts

func (o *Organization) OrganizationAccounts(mods ...qm.QueryMod) organizationAccountQuery

OrganizationAccounts retrieves all the organization_account's OrganizationAccounts with an executor.

func (*Organization) Reload

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

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

func (*Organization) Update

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

Update uses an executor to update the Organization. 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 (*Organization) Upsert

func (o *Organization) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 OrganizationAccount

type OrganizationAccount struct {
	ID             string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	OrganizationID string    `boil:"organization_id" json:"organizationID" toml:"organization_id" yaml:"organization_id"`
	AccountID      string    `boil:"account_id" json:"accountID" toml:"account_id" yaml:"account_id"`
	Role           Role      `boil:"role" json:"role" toml:"role" yaml:"role"`
	CreatedAt      time.Time `boil:"created_at" json:"createdAt" toml:"created_at" yaml:"created_at"`
	UpdatedAt      time.Time `boil:"updated_at" json:"updatedAt" toml:"updated_at" yaml:"updated_at"`
	DeletedAt      null.Time `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *organizationAccountR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L organizationAccountL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

OrganizationAccount is an object representing the database table.

func FindOrganizationAccount

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

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

func (*OrganizationAccount) Account

func (o *OrganizationAccount) Account(mods ...qm.QueryMod) accountQuery

Account pointed to by the foreign key.

func (*OrganizationAccount) Delete

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

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

func (*OrganizationAccount) Exists

Exists checks if the OrganizationAccount row exists.

func (*OrganizationAccount) Insert

func (o *OrganizationAccount) 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 (*OrganizationAccount) Organization

func (o *OrganizationAccount) Organization(mods ...qm.QueryMod) organizationQuery

Organization pointed to by the foreign key.

func (*OrganizationAccount) Reload

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

func (*OrganizationAccount) SetAccount

func (o *OrganizationAccount) SetAccount(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error

SetAccount of the organizationAccount to the related item. Sets o.R.Account to related. Adds o to related.R.OrganizationAccounts.

func (*OrganizationAccount) SetOrganization

func (o *OrganizationAccount) SetOrganization(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Organization) error

SetOrganization of the organizationAccount to the related item. Sets o.R.Organization to related. Adds o to related.R.OrganizationAccounts.

func (*OrganizationAccount) Update

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

Update uses an executor to update the OrganizationAccount. 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 (*OrganizationAccount) Upsert

func (o *OrganizationAccount) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 OrganizationAccountHook

type OrganizationAccountHook func(context.Context, boil.ContextExecutor, *OrganizationAccount) error

OrganizationAccountHook is the signature for custom OrganizationAccount hook methods

type OrganizationAccountSlice

type OrganizationAccountSlice []*OrganizationAccount

OrganizationAccountSlice is an alias for a slice of pointers to OrganizationAccount. This should almost always be used instead of []OrganizationAccount.

func (OrganizationAccountSlice) DeleteAll

func (o OrganizationAccountSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*OrganizationAccountSlice) ReloadAll

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

func (OrganizationAccountSlice) UpdateAll

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

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

type OrganizationHook

type OrganizationHook func(context.Context, boil.ContextExecutor, *Organization) error

OrganizationHook is the signature for custom Organization hook methods

type OrganizationSlice

type OrganizationSlice []*Organization

OrganizationSlice is an alias for a slice of pointers to Organization. This should almost always be used instead of []Organization.

func (OrganizationSlice) DeleteAll

func (o OrganizationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*OrganizationSlice) ReloadAll

func (o *OrganizationSlice) 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 (OrganizationSlice) UpdateAll

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

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

type Role

type Role string
const (
	RoleSUPER_ADMIN Role = "SUPER_ADMIN"
	RoleADMIN       Role = "ADMIN"
	RoleEMPLOYEE    Role = "EMPLOYEE"
)

Enum values for Role

func AllRole

func AllRole() []Role

func (Role) IsValid

func (e Role) IsValid() error

func (Role) Ordinal

func (e Role) Ordinal() int

func (Role) String

func (e Role) String() string

type SchemaMigration

type SchemaMigration struct {
	Version string `boil:"version" json:"version" toml:"version" yaml:"version"`
	Dirty   bool   `boil:"dirty" json:"dirty" toml:"dirty" yaml:"dirty"`

	R *schemaMigrationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L schemaMigrationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

SchemaMigration is an object representing the database table.

func FindSchemaMigration

func FindSchemaMigration(ctx context.Context, exec boil.ContextExecutor, version string, selectCols ...string) (*SchemaMigration, error)

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

func (*SchemaMigration) Delete

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

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

func (*SchemaMigration) Exists

func (o *SchemaMigration) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the SchemaMigration row exists.

func (*SchemaMigration) Insert

func (o *SchemaMigration) 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 (*SchemaMigration) Reload

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

func (*SchemaMigration) Update

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

Update uses an executor to update the SchemaMigration. 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 (*SchemaMigration) Upsert

func (o *SchemaMigration) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 SchemaMigrationHook

type SchemaMigrationHook func(context.Context, boil.ContextExecutor, *SchemaMigration) error

SchemaMigrationHook is the signature for custom SchemaMigration hook methods

type SchemaMigrationSlice

type SchemaMigrationSlice []*SchemaMigration

SchemaMigrationSlice is an alias for a slice of pointers to SchemaMigration. This should almost always be used instead of []SchemaMigration.

func (SchemaMigrationSlice) DeleteAll

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

func (*SchemaMigrationSlice) ReloadAll

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

func (SchemaMigrationSlice) UpdateAll

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

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

type UpsertOptionFunc

type UpsertOptionFunc func(o *UpsertOptions)

func UpsertConflictTarget

func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc

func UpsertUpdateSet

func UpsertUpdateSet(updateSet string) UpsertOptionFunc

type UpsertOptions

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

Jump to

Keyboard shortcuts

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