model

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package model holds the Go models generated from contracts/fixtures/bench/bench.dbs for the repository's tests, examples, and benchmarks.

Index

Constants

View Source
const ManifestHash = "sha256:27675b7fddd99bfdcb47f88bd4050552b25c1c345d84908a29b1b6d339d91322"

ManifestHash is the manifestHash of the document set the models were generated from.

View Source
const ManifestText = "dbspec 1 bench\n" +
	"\n" +
	"table author {\n" +
	"  seq i64 identity\n" +
	"  name varchar(191)\n" +
	"  description text null\n" +
	"  created_ts datetime(6) default now\n" +
	"  updated_ts datetime(6) default now\n" +
	"  is_close bool default false\n" +
	"  is_display bool default false\n" +
	"  display_start_dt datetime(6) null\n" +
	"  display_end_dt datetime(6) null\n" +
	"  is_allday bool default false\n" +
	"  target_club_reader_count i32 default 0\n" +
	"  success_count i32 default 0\n" +
	"  reader_count i32 default 0\n" +
	"  read_count i32 default 0\n" +
	"  photo_url varchar(191) null\n" +
	"  user_seq i64\n" +
	"  service_seq i64\n" +
	"  service_region_seq i64\n" +
	"  service_member_seq i64\n" +
	"  start_dt datetime(6)\n" +
	"  end_dt datetime(6)\n" +
	"  uuid varchar(36) null\n" +
	"  is_single_work bool default false\n" +
	"  like_count i32 default 0\n" +
	"  aes_key_version i32 default 1\n" +
	"  aes_hex_email varchar(255) null\n" +
	"  email_blind_index varchar(64) null\n" +
	"  aes_hex_phone varchar(255) null\n" +
	"  phone_blind_index varchar(64) null\n" +
	"  price decimal(13,3) null\n" +
	"  ip bytes null\n" +
	"  gz_extend bytes null\n" +
	"  json_setting text null\n" +
	"  jsons_tags text null\n" +
	"  base64_extra text null\n" +
	"  serialize_data text null\n" +
	"  primary key (seq)\n" +
	"  unique uq_author_uuid (uuid)\n" +
	"  index ik (service_region_seq, is_close, is_display, is_allday)\n" +
	"  index ix_author_service_member (service_member_seq)\n" +
	"  index ix_email_blind_index (email_blind_index)\n" +
	"  index ix_phone_blind_index (phone_blind_index)\n" +
	"  index ix_service (service_seq, is_close)\n" +
	"  index ix_user (user_seq, is_close)\n" +
	"  foreign key fk_author_service (service_seq) references service (seq) on delete restrict on update restrict\n" +
	"  foreign key fk_author_service_member (service_member_seq) references service_member (seq) on delete restrict on update restrict\n" +
	"  foreign key fk_author_service_region (service_region_seq) references service_region (seq) on delete restrict on update restrict\n" +
	"  foreign key fk_author_user (user_seq) references user (seq) on delete restrict on update restrict\n" +
	"  check ck_author_counts (target_club_reader_count >= 0 and success_count >= 0 and reader_count >= 0 and read_count >= 0 and like_count >= 0)\n" +
	"  settings {\n" +
	"    updated updated_ts\n" +
	"    select explicit description email_blind_index phone_blind_index ip gz_extend json_setting jsons_tags base64_extra serialize_data aes_key_version\n" +
	"    codec aes_hex_email aes hex\n" +
	"    codec aes_hex_phone aes hex\n" +
	"    codec base64_extra base64\n" +
	"    codec gz_extend gz\n" +
	"    codec ip ip\n" +
	"    codec json_setting ordered_json\n" +
	"    codec jsons_tags ordered_json\n" +
	"    codec serialize_data serialize\n" +
	"    aes_version aes_key_version\n" +
	"    blind_index aes_hex_email email_blind_index\n" +
	"    blind_index aes_hex_phone phone_blind_index\n" +
	"  }\n" +
	"}\n" +
	"\n" +
	"table user {\n" +
	"  seq i64 identity\n" +
	"  name varchar(191)\n" +
	"  primary key (seq)\n" +
	"}\n" +
	"\n" +
	"table service {\n" +
	"  seq i64 identity\n" +
	"  name varchar(191)\n" +
	"  primary key (seq)\n" +
	"}\n" +
	"\n" +
	"table service_region {\n" +
	"  seq i64 identity\n" +
	"  service_seq i64\n" +
	"  name varchar(191)\n" +
	"  primary key (seq)\n" +
	"  index ix_service_region_service (service_seq)\n" +
	"  foreign key fk_service_region_service (service_seq) references service (seq) on delete restrict on update restrict\n" +
	"}\n" +
	"\n" +
	"table service_member {\n" +
	"  seq i64 identity\n" +
	"  service_seq i64\n" +
	"  user_seq i64\n" +
	"  primary key (seq)\n" +
	"  index ix_service_member_service (service_seq)\n" +
	"  index ix_service_member_user (user_seq)\n" +
	"  foreign key fk_service_member_service (service_seq) references service (seq) on delete restrict on update restrict\n" +
	"  foreign key fk_service_member_user (user_seq) references user (seq) on delete restrict on update restrict\n" +
	"}\n" +
	"\n" +
	"table composite_account {\n" +
	"  tenant_id i64\n" +
	"  account_id i64\n" +
	"  name varchar(191)\n" +
	"  primary key (tenant_id, account_id)\n" +
	"}\n" +
	"\n" +
	"table composite_membership {\n" +
	"  tenant_id i64\n" +
	"  account_id i64\n" +
	"  role varchar(191)\n" +
	"  primary key (tenant_id, account_id)\n" +
	"  foreign key fk_composite_membership_account (tenant_id, account_id) references composite_account (tenant_id, account_id) on delete cascade on update restrict\n" +
	"  settings {\n" +
	"    navigation fk_composite_membership_account account memberships\n" +
	"  }\n" +
	"}\n" +
	"\n" +
	"table soft_record {\n" +
	"  seq i64 identity\n" +
	"  name varchar(191)\n" +
	"  deleted_at datetime(6) null\n" +
	"  primary key (seq)\n" +
	"  settings {\n" +
	"    soft_delete deleted_at\n" +
	"  }\n" +
	"}\n" +
	"\n" +
	"table account {\n" +
	"  seq i64 identity\n" +
	"  name varchar(191)\n" +
	"  primary key (seq)\n" +
	"}\n" +
	"\n" +
	"table project {\n" +
	"  seq i64 identity\n" +
	"  name varchar(191)\n" +
	"  primary key (seq)\n" +
	"}\n" +
	"\n" +
	"table account_project {\n" +
	"  account_seq i64\n" +
	"  project_seq i64\n" +
	"  primary key (account_seq, project_seq)\n" +
	"  index ix_account_project_project (project_seq)\n" +
	"  foreign key fk_account_project_account (account_seq) references account (seq) on delete restrict on update restrict\n" +
	"  foreign key fk_account_project_project (project_seq) references project (seq) on delete restrict on update restrict\n" +
	"}\n" +
	"\n" +
	"table task {\n" +
	"  seq i64 identity\n" +
	"  title varchar(191)\n" +
	"  state varchar(8)\n" +
	"  primary key (seq)\n" +
	"  check ck_task_state (state in ('open', 'done'))\n" +
	"}\n" +
	"\n" +
	"table hex_cell {\n" +
	"  seq i64 identity\n" +
	"  label varchar(32)\n" +
	"  value varchar(64) null\n" +
	"  primary key (seq)\n" +
	"  settings {\n" +
	"    codec value hex\n" +
	"  }\n" +
	"}\n"

ManifestText is the manifest text of the document set the models were generated from.

Variables

View Source
var Schema = &orm.Schema{Hash: ManifestHash, Text: ManifestText}

Schema is the generated schema value: the manifest text with its declared manifestHash. Install takes it to create the tables and register the set.

Functions

func Connect

func Connect(dsn string, cfg orm.Config) (*orm.DB, error)

Connect opens the database selected by the DSN URI and registers the set of these models on the connection, so the models plan their requests on it. A manifest text that does not hash to ManifestHash fails with CONFIG.

Types

type AccountModel

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

AccountModel is a account model or row.

func Account

func Account() *AccountModel

Account creates a account model.

func (*AccountModel) AddAllColumns

func (x *AccountModel) AddAllColumns() *AccountModel

AddAllColumns selects every column.

func (*AccountModel) AddColumnName

func (x *AccountModel) AddColumnName() *AccountModel

func (*AccountModel) AddColumnSeq

func (x *AccountModel) AddColumnSeq() *AccountModel

func (*AccountModel) And

func (x *AccountModel) And(args ...any) *AccountModel

And joins the next condition with AND, opens an AND group with a callback, or places the conditions of a joined model.

func (*AccountModel) AndNot

func (x *AccountModel) AndNot(fn func(*AccountModel)) *AccountModel

AndNot opens a negated group joined with AND.

func (*AccountModel) AvgSeq

func (x *AccountModel) AvgSeq() *AccountModel

func (*AccountModel) Connect

func (x *AccountModel) Connect(db *orm.DB) *AccountModel

Connect sets the connection.

func (*AccountModel) Create

func (x *AccountModel) Create() (*AccountModel, error)

Create inserts the row and returns the created row.

func (*AccountModel) Creates

func (x *AccountModel) Creates(rows []*AccountModel) (int64, error)

Creates inserts rows in one transaction and returns the inserted row count.

func (*AccountModel) Delete

func (x *AccountModel) Delete(recursive ...bool) error

Delete deletes the row; Delete(true) first deletes loaded related rows.

func (*AccountModel) DeleteLock

func (x *AccountModel) DeleteLock() *AccountModel

DeleteLock excludes the relation from recursive delete.

func (*AccountModel) Duplication

func (x *AccountModel) Duplication(m *AccountModel) *AccountModel

Duplication sets the duplicate-key update of the next Create.

func (*AccountModel) FetchKey

func (x *AccountModel) FetchKey(fn func(*AccountModel) any) *AccountModel

FetchKey computes the collection key of each row.

func (*AccountModel) FetchValue

func (x *AccountModel) FetchValue(fn func(*AccountModel) any) *AccountModel

FetchValue computes a value for each loaded row.

func (*AccountModel) ForShare

func (x *AccountModel) ForShare() *AccountModel

ForShare locks the selected rows for share inside a transaction.

func (*AccountModel) ForShareNoWait

func (x *AccountModel) ForShareNoWait() *AccountModel

ForShareNoWait locks for share without waiting.

func (*AccountModel) ForUpdate

func (x *AccountModel) ForUpdate() *AccountModel

ForUpdate locks the selected rows for update inside a transaction.

func (*AccountModel) ForUpdateNoWait

func (x *AccountModel) ForUpdateNoWait() *AccountModel

ForUpdateNoWait locks for update without waiting.

func (*AccountModel) Get

func (x *AccountModel) Get() (*AccountModel, error)

Get returns the first matching row. It returns orm.CodeNoRows when no row matches.

func (*AccountModel) GetAvg

func (x *AccountModel) GetAvg() (float64, error)

GetAvg returns the average of the column selected with Avg<Col>.

func (*AccountModel) GetBySeq

func (x *AccountModel) GetBySeq[T0 argIntEq](v0 T0) (*AccountModel, error)

func (*AccountModel) GetCount

func (x *AccountModel) GetCount() (int64, error)

GetCount returns the number of matching rows.

func (*AccountModel) GetLabel

func (x *AccountModel) GetLabel() any

GetLabel returns the value attached with NewLabel.

func (*AccountModel) GetName

func (x *AccountModel) GetName() string

GetName returns name.

func (*AccountModel) GetQuery

func (x *AccountModel) GetQuery() (*orm.Statement, error)

GetQuery returns the statement of Gets without executing it.

func (*AccountModel) GetSeq

func (x *AccountModel) GetSeq() int64

GetSeq returns seq.

func (*AccountModel) GetSum

func (x *AccountModel) GetSum() (float64, error)

GetSum returns the sum of the column selected with Sum<Col>.

func (*AccountModel) Gets

func (x *AccountModel) Gets() (*orm.Collection[*AccountModel], error)

Gets returns the matching rows.

func (*AccountModel) GetsCount

func (x *AccountModel) GetsCount() (*orm.GroupRows, error)

GetsCount returns grouped rows with row_count.

func (*AccountModel) GetsPage

func (x *AccountModel) GetsPage(page, perPage int) (*orm.Page[*AccountModel], error)

GetsPage returns one page of matching rows.

func (*AccountModel) GroupByName

func (x *AccountModel) GroupByName() *AccountModel

func (*AccountModel) GroupBySeq

func (x *AccountModel) GroupBySeq() *AccountModel

func (*AccountModel) GroupLimit

func (x *AccountModel) GroupLimit(n int) *AccountModel

GroupLimit limits related rows per parent.

func (*AccountModel) KeyNameName

func (x *AccountModel) KeyNameName() *AccountModel

func (*AccountModel) KeyNameSeq

func (x *AccountModel) KeyNameSeq() *AccountModel

func (*AccountModel) Limit

func (x *AccountModel) Limit(offset, count int) *AccountModel

Limit sets the row range.

func (*AccountModel) MarshalJSON

func (x *AccountModel) MarshalJSON() ([]byte, error)

MarshalJSON writes the row values in order.

func (*AccountModel) MinusSeq

func (x *AccountModel) MinusSeq(n int64) *AccountModel

func (*AccountModel) NewLabel

func (x *AccountModel) NewLabel(v any) *AccountModel

func (*AccountModel) Not

func (x *AccountModel) Not(fn func(*AccountModel)) *AccountModel

Not opens a negated group, NOT (…), as the first condition or after a connector written as a separate call.

func (*AccountModel) On

func (x *AccountModel) On(fn func(*AccountModel)) *AccountModel

On sets the join ON conditions.

func (*AccountModel) Or

func (x *AccountModel) Or(args ...any) *AccountModel

Or joins the next condition with OR, opens an OR group with a callback, or places the conditions of a joined model.

func (*AccountModel) OrNot

func (x *AccountModel) OrNot(fn func(*AccountModel)) *AccountModel

OrNot opens a negated group joined with OR.

func (*AccountModel) OrderByNameAsc

func (x *AccountModel) OrderByNameAsc(fn ...orm.Func) *AccountModel

func (*AccountModel) OrderByNameDesc

func (x *AccountModel) OrderByNameDesc(fn ...orm.Func) *AccountModel

func (*AccountModel) OrderByRandom

func (x *AccountModel) OrderByRandom() *AccountModel

OrderByRandom orders rows randomly.

func (*AccountModel) OrderBySeqAsc

func (x *AccountModel) OrderBySeqAsc(fn ...orm.Func) *AccountModel

func (*AccountModel) OrderBySeqDesc

func (x *AccountModel) OrderBySeqDesc(fn ...orm.Func) *AccountModel

func (*AccountModel) Orm_

func (x *AccountModel) Orm_() *orm.Core

func (*AccountModel) ParentNode

func (x *AccountModel) ParentNode() *AccountModel

ParentNode merges the related row into the parent row.

func (*AccountModel) PlusSeq

func (x *AccountModel) PlusSeq(n int64) *AccountModel

func (*AccountModel) Relation

func (x *AccountModel) Relation(child orm.Model) *AccountModel

Relation attaches one related row loaded by a separate query.

func (*AccountModel) Relations

func (x *AccountModel) Relations(child orm.Model) *AccountModel

Relations attaches related rows loaded by a separate query.

func (*AccountModel) RemoveAllColumns

func (x *AccountModel) RemoveAllColumns() *AccountModel

RemoveAllColumns keeps only primary and foreign keys.

func (*AccountModel) RemoveColumnName

func (x *AccountModel) RemoveColumnName() *AccountModel

func (*AccountModel) RemoveColumnSeq

func (x *AccountModel) RemoveColumnSeq() *AccountModel

func (*AccountModel) Restore

func (x *AccountModel) Restore() (*AccountModel, error)

Restore restores the soft-deleted row that the set key values name and returns it.

func (*AccountModel) Save

func (x *AccountModel) Save() (*AccountModel, error)

Save updates the row when its primary key is known, otherwise creates it.

func (*AccountModel) Seq

func (x *AccountModel) Seq[T0 argIntEq](v0 T0) *AccountModel

func (*AccountModel) SetName

func (x *AccountModel) SetName(v string) *AccountModel

SetName sets name.

func (*AccountModel) SetSeq

func (x *AccountModel) SetSeq(v int64) *AccountModel

SetSeq sets seq.

func (*AccountModel) SumSeq

func (x *AccountModel) SumSeq() *AccountModel

func (*AccountModel) ToArray

func (x *AccountModel) ToArray() map[string]any

ToArray returns the row values.

func (*AccountModel) Update

func (x *AccountModel) Update(optimistic ...bool) (*AccountModel, error)

Update writes the changed columns; Update(true) requires an unchanged updated time.

type AccountProjectAccountSeqWithProjectSeq

type AccountProjectAccountSeqWithProjectSeq struct {
	AccountSeq int64
	ProjectSeq int64
}

AccountProjectAccountSeqWithProjectSeq is one value group of account_seq, project_seq.

type AccountProjectModel

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

AccountProjectModel is a account_project model or row.

func AccountProject

func AccountProject() *AccountProjectModel

AccountProject creates a account_project model.

func (*AccountProjectModel) AccountSeq

func (x *AccountProjectModel) AccountSeq[T0 argIntEq](v0 T0) *AccountProjectModel

func (*AccountProjectModel) AddAllColumns

func (x *AccountProjectModel) AddAllColumns() *AccountProjectModel

AddAllColumns selects every column.

func (*AccountProjectModel) AddColumnAccountSeq

func (x *AccountProjectModel) AddColumnAccountSeq() *AccountProjectModel

func (*AccountProjectModel) AddColumnProjectSeq

func (x *AccountProjectModel) AddColumnProjectSeq() *AccountProjectModel

func (*AccountProjectModel) And

func (x *AccountProjectModel) And(args ...any) *AccountProjectModel

And joins the next condition with AND, opens an AND group with a callback, or places the conditions of a joined model.

func (*AccountProjectModel) AndNot

AndNot opens a negated group joined with AND.

func (*AccountProjectModel) AvgAccountSeq

func (x *AccountProjectModel) AvgAccountSeq() *AccountProjectModel

func (*AccountProjectModel) AvgProjectSeq

func (x *AccountProjectModel) AvgProjectSeq() *AccountProjectModel

func (*AccountProjectModel) Connect

func (x *AccountProjectModel) Connect(db *orm.DB) *AccountProjectModel

Connect sets the connection.

func (*AccountProjectModel) Create

Create inserts the row and returns the created row.

func (*AccountProjectModel) Creates

func (x *AccountProjectModel) Creates(rows []*AccountProjectModel) (int64, error)

Creates inserts rows in one transaction and returns the inserted row count.

func (*AccountProjectModel) Delete

func (x *AccountProjectModel) Delete(recursive ...bool) error

Delete deletes the row; Delete(true) first deletes loaded related rows.

func (*AccountProjectModel) DeleteLock

func (x *AccountProjectModel) DeleteLock() *AccountProjectModel

DeleteLock excludes the relation from recursive delete.

func (*AccountProjectModel) Duplication

Duplication sets the duplicate-key update of the next Create.

func (*AccountProjectModel) FetchKey

FetchKey computes the collection key of each row.

func (*AccountProjectModel) FetchValue

FetchValue computes a value for each loaded row.

func (*AccountProjectModel) ForShare

ForShare locks the selected rows for share inside a transaction.

func (*AccountProjectModel) ForShareNoWait

func (x *AccountProjectModel) ForShareNoWait() *AccountProjectModel

ForShareNoWait locks for share without waiting.

func (*AccountProjectModel) ForUpdate

func (x *AccountProjectModel) ForUpdate() *AccountProjectModel

ForUpdate locks the selected rows for update inside a transaction.

func (*AccountProjectModel) ForUpdateNoWait

func (x *AccountProjectModel) ForUpdateNoWait() *AccountProjectModel

ForUpdateNoWait locks for update without waiting.

func (*AccountProjectModel) ForceIndexIxAccountProjectProject

func (x *AccountProjectModel) ForceIndexIxAccountProjectProject() *AccountProjectModel

func (*AccountProjectModel) Get

Get returns the first matching row. It returns orm.CodeNoRows when no row matches.

func (*AccountProjectModel) GetAccountSeq

func (x *AccountProjectModel) GetAccountSeq() int64

GetAccountSeq returns account_seq.

func (*AccountProjectModel) GetAvg

func (x *AccountProjectModel) GetAvg() (float64, error)

GetAvg returns the average of the column selected with Avg<Col>.

func (*AccountProjectModel) GetCount

func (x *AccountProjectModel) GetCount() (int64, error)

GetCount returns the number of matching rows.

func (*AccountProjectModel) GetProjectSeq

func (x *AccountProjectModel) GetProjectSeq() int64

GetProjectSeq returns project_seq.

func (*AccountProjectModel) GetQuery

func (x *AccountProjectModel) GetQuery() (*orm.Statement, error)

GetQuery returns the statement of Gets without executing it.

func (*AccountProjectModel) GetSum

func (x *AccountProjectModel) GetSum() (float64, error)

GetSum returns the sum of the column selected with Sum<Col>.

func (*AccountProjectModel) Gets

Gets returns the matching rows.

func (*AccountProjectModel) GetsCount

func (x *AccountProjectModel) GetsCount() (*orm.GroupRows, error)

GetsCount returns grouped rows with row_count.

func (*AccountProjectModel) GetsPage

func (x *AccountProjectModel) GetsPage(page, perPage int) (*orm.Page[*AccountProjectModel], error)

GetsPage returns one page of matching rows.

func (*AccountProjectModel) GroupByAccountSeq

func (x *AccountProjectModel) GroupByAccountSeq() *AccountProjectModel

func (*AccountProjectModel) GroupByProjectSeq

func (x *AccountProjectModel) GroupByProjectSeq() *AccountProjectModel

func (*AccountProjectModel) GroupLimit

func (x *AccountProjectModel) GroupLimit(n int) *AccountProjectModel

GroupLimit limits related rows per parent.

func (*AccountProjectModel) KeyNameAccountSeq

func (x *AccountProjectModel) KeyNameAccountSeq() *AccountProjectModel

func (*AccountProjectModel) KeyNameProjectSeq

func (x *AccountProjectModel) KeyNameProjectSeq() *AccountProjectModel

func (*AccountProjectModel) Limit

func (x *AccountProjectModel) Limit(offset, count int) *AccountProjectModel

Limit sets the row range.

func (*AccountProjectModel) MarshalJSON

func (x *AccountProjectModel) MarshalJSON() ([]byte, error)

MarshalJSON writes the row values in order.

func (*AccountProjectModel) MinusAccountSeq

func (x *AccountProjectModel) MinusAccountSeq(n int64) *AccountProjectModel

func (*AccountProjectModel) MinusProjectSeq

func (x *AccountProjectModel) MinusProjectSeq(n int64) *AccountProjectModel

func (*AccountProjectModel) Not

Not opens a negated group, NOT (…), as the first condition or after a connector written as a separate call.

func (*AccountProjectModel) On

On sets the join ON conditions.

func (*AccountProjectModel) Or

Or joins the next condition with OR, opens an OR group with a callback, or places the conditions of a joined model.

func (*AccountProjectModel) OrNot

OrNot opens a negated group joined with OR.

func (*AccountProjectModel) OrderByAccountSeqAsc

func (x *AccountProjectModel) OrderByAccountSeqAsc(fn ...orm.Func) *AccountProjectModel

func (*AccountProjectModel) OrderByAccountSeqDesc

func (x *AccountProjectModel) OrderByAccountSeqDesc(fn ...orm.Func) *AccountProjectModel

func (*AccountProjectModel) OrderByProjectSeqAsc

func (x *AccountProjectModel) OrderByProjectSeqAsc(fn ...orm.Func) *AccountProjectModel

func (*AccountProjectModel) OrderByProjectSeqDesc

func (x *AccountProjectModel) OrderByProjectSeqDesc(fn ...orm.Func) *AccountProjectModel

func (*AccountProjectModel) OrderByRandom

func (x *AccountProjectModel) OrderByRandom() *AccountProjectModel

OrderByRandom orders rows randomly.

func (*AccountProjectModel) Orm_

func (x *AccountProjectModel) Orm_() *orm.Core

func (*AccountProjectModel) ParentNode

func (x *AccountProjectModel) ParentNode() *AccountProjectModel

ParentNode merges the related row into the parent row.

func (*AccountProjectModel) PlusAccountSeq

func (x *AccountProjectModel) PlusAccountSeq(n int64) *AccountProjectModel

func (*AccountProjectModel) PlusProjectSeq

func (x *AccountProjectModel) PlusProjectSeq(n int64) *AccountProjectModel

func (*AccountProjectModel) ProjectSeq

func (x *AccountProjectModel) ProjectSeq[T0 argIntEq](v0 T0) *AccountProjectModel

func (*AccountProjectModel) Relation

func (x *AccountProjectModel) Relation(child orm.Model) *AccountProjectModel

Relation attaches one related row loaded by a separate query.

func (*AccountProjectModel) Relations

func (x *AccountProjectModel) Relations(child orm.Model) *AccountProjectModel

Relations attaches related rows loaded by a separate query.

func (*AccountProjectModel) RemoveAllColumns

func (x *AccountProjectModel) RemoveAllColumns() *AccountProjectModel

RemoveAllColumns keeps only primary and foreign keys.

func (*AccountProjectModel) RemoveColumnAccountSeq

func (x *AccountProjectModel) RemoveColumnAccountSeq() *AccountProjectModel

func (*AccountProjectModel) RemoveColumnProjectSeq

func (x *AccountProjectModel) RemoveColumnProjectSeq() *AccountProjectModel

func (*AccountProjectModel) Restore

Restore restores the soft-deleted row that the set key values name and returns it.

func (*AccountProjectModel) Save

Save updates the row when its primary key is known, otherwise creates it.

func (*AccountProjectModel) SetAccountSeq

func (x *AccountProjectModel) SetAccountSeq(v int64) *AccountProjectModel

SetAccountSeq sets account_seq.

func (*AccountProjectModel) SetProjectSeq

func (x *AccountProjectModel) SetProjectSeq(v int64) *AccountProjectModel

SetProjectSeq sets project_seq.

func (*AccountProjectModel) SumAccountSeq

func (x *AccountProjectModel) SumAccountSeq() *AccountProjectModel

func (*AccountProjectModel) SumProjectSeq

func (x *AccountProjectModel) SumProjectSeq() *AccountProjectModel

func (*AccountProjectModel) ToArray

func (x *AccountProjectModel) ToArray() map[string]any

ToArray returns the row values.

func (*AccountProjectModel) TupleAccountSeqWithProjectSeq

func (x *AccountProjectModel) TupleAccountSeqWithProjectSeq(v0 []AccountProjectAccountSeqWithProjectSeq) *AccountProjectModel

func (*AccountProjectModel) Update

func (x *AccountProjectModel) Update(optimistic ...bool) (*AccountProjectModel, error)

Update writes the changed columns; Update(true) requires an unchanged updated time.

type AuthorModel

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

AuthorModel is a author model or row.

func Author

func Author() *AuthorModel

Author creates a author model.

func (*AuthorModel) AddAllColumns

func (x *AuthorModel) AddAllColumns() *AuthorModel

AddAllColumns selects every column.

func (*AuthorModel) AddColumnAesHexEmail

func (x *AuthorModel) AddColumnAesHexEmail() *AuthorModel

func (*AuthorModel) AddColumnAesHexPhone

func (x *AuthorModel) AddColumnAesHexPhone() *AuthorModel

func (*AuthorModel) AddColumnAesKeyVersion

func (x *AuthorModel) AddColumnAesKeyVersion() *AuthorModel

func (*AuthorModel) AddColumnBase64Extra

func (x *AuthorModel) AddColumnBase64Extra() *AuthorModel

func (*AuthorModel) AddColumnCreatedTs

func (x *AuthorModel) AddColumnCreatedTs() *AuthorModel

func (*AuthorModel) AddColumnDescription

func (x *AuthorModel) AddColumnDescription() *AuthorModel

func (*AuthorModel) AddColumnDisplayEndDt

func (x *AuthorModel) AddColumnDisplayEndDt() *AuthorModel

func (*AuthorModel) AddColumnDisplayStartDt

func (x *AuthorModel) AddColumnDisplayStartDt() *AuthorModel

func (*AuthorModel) AddColumnEmailBlindIndex

func (x *AuthorModel) AddColumnEmailBlindIndex() *AuthorModel

func (*AuthorModel) AddColumnEndDt

func (x *AuthorModel) AddColumnEndDt() *AuthorModel

func (*AuthorModel) AddColumnGzExtend

func (x *AuthorModel) AddColumnGzExtend() *AuthorModel

func (*AuthorModel) AddColumnIp

func (x *AuthorModel) AddColumnIp() *AuthorModel

func (*AuthorModel) AddColumnIsAllday

func (x *AuthorModel) AddColumnIsAllday() *AuthorModel

func (*AuthorModel) AddColumnIsClose

func (x *AuthorModel) AddColumnIsClose() *AuthorModel

func (*AuthorModel) AddColumnIsDisplay

func (x *AuthorModel) AddColumnIsDisplay() *AuthorModel

func (*AuthorModel) AddColumnIsSingleWork

func (x *AuthorModel) AddColumnIsSingleWork() *AuthorModel

func (*AuthorModel) AddColumnJsonSetting

func (x *AuthorModel) AddColumnJsonSetting() *AuthorModel

func (*AuthorModel) AddColumnJsonsTags

func (x *AuthorModel) AddColumnJsonsTags() *AuthorModel

func (*AuthorModel) AddColumnLikeCount

func (x *AuthorModel) AddColumnLikeCount() *AuthorModel

func (*AuthorModel) AddColumnName

func (x *AuthorModel) AddColumnName() *AuthorModel

func (*AuthorModel) AddColumnPhoneBlindIndex

func (x *AuthorModel) AddColumnPhoneBlindIndex() *AuthorModel

func (*AuthorModel) AddColumnPhotoUrl

func (x *AuthorModel) AddColumnPhotoUrl() *AuthorModel

func (*AuthorModel) AddColumnPrice

func (x *AuthorModel) AddColumnPrice() *AuthorModel

func (*AuthorModel) AddColumnReadCount

func (x *AuthorModel) AddColumnReadCount() *AuthorModel

func (*AuthorModel) AddColumnReaderCount

func (x *AuthorModel) AddColumnReaderCount() *AuthorModel

func (*AuthorModel) AddColumnSeq

func (x *AuthorModel) AddColumnSeq() *AuthorModel

func (*AuthorModel) AddColumnSerializeData

func (x *AuthorModel) AddColumnSerializeData() *AuthorModel

func (*AuthorModel) AddColumnServiceMemberSeq

func (x *AuthorModel) AddColumnServiceMemberSeq() *AuthorModel

func (*AuthorModel) AddColumnServiceRegionSeq

func (x *AuthorModel) AddColumnServiceRegionSeq() *AuthorModel

func (*AuthorModel) AddColumnServiceSeq

func (x *AuthorModel) AddColumnServiceSeq() *AuthorModel

func (*AuthorModel) AddColumnStartDt

func (x *AuthorModel) AddColumnStartDt() *AuthorModel

func (*AuthorModel) AddColumnStartDtAliasStartMonth

func (x *AuthorModel) AddColumnStartDtAliasStartMonth(fn orm.Func) *AuthorModel

func (*AuthorModel) AddColumnStartDtAliasStartYear

func (x *AuthorModel) AddColumnStartDtAliasStartYear(fn orm.Func) *AuthorModel

func (*AuthorModel) AddColumnSuccessCount

func (x *AuthorModel) AddColumnSuccessCount() *AuthorModel

func (*AuthorModel) AddColumnTargetClubReaderCount

func (x *AuthorModel) AddColumnTargetClubReaderCount() *AuthorModel

func (*AuthorModel) AddColumnUpdatedTs

func (x *AuthorModel) AddColumnUpdatedTs() *AuthorModel

func (*AuthorModel) AddColumnUserSeq

func (x *AuthorModel) AddColumnUserSeq() *AuthorModel

func (*AuthorModel) AddColumnUuid

func (x *AuthorModel) AddColumnUuid() *AuthorModel

func (*AuthorModel) AesHexEmail

func (x *AuthorModel) AesHexEmail[T0 argStringEqNull](v0 T0) *AuthorModel

func (*AuthorModel) And

func (x *AuthorModel) And(args ...any) *AuthorModel

And joins the next condition with AND, opens an AND group with a callback, or places the conditions of a joined model.

func (*AuthorModel) AndAesHexEmail

func (x *AuthorModel) AndAesHexEmail[T0 argStringEqNull](v0 T0) *AuthorModel

func (*AuthorModel) AndBetweenReadCount

func (x *AuthorModel) AndBetweenReadCount[T0 argIntBetween](v0 T0) *AuthorModel

func (*AuthorModel) AndEqStartDt

func (x *AuthorModel) AndEqStartDt[T0 argTimeEq](v0 T0, compared ...any) *AuthorModel

func (*AuthorModel) AndGeReadCount

func (x *AuthorModel) AndGeReadCount[T0 argIntCmp](v0 T0) *AuthorModel

func (*AuthorModel) AndGtReadCount

func (x *AuthorModel) AndGtReadCount[T0 argIntCmp](v0 T0) *AuthorModel

func (*AuthorModel) AndGtStartDt

func (x *AuthorModel) AndGtStartDt[T0 argTimeCmp](v0 T0, compared ...any) *AuthorModel

func (*AuthorModel) AndIsClose

func (x *AuthorModel) AndIsClose[T0 argBoolEq](v0 T0) *AuthorModel

func (*AuthorModel) AndLbName

func (x *AuthorModel) AndLbName[T0 argStringLike](v0 T0) *AuthorModel

func (*AuthorModel) AndLeReadCount

func (x *AuthorModel) AndLeReadCount[T0 argIntCmp](v0 T0) *AuthorModel

func (*AuthorModel) AndLkName

func (x *AuthorModel) AndLkName[T0 argStringLike](v0 T0) *AuthorModel

func (*AuthorModel) AndLtDisplayStartDt

func (x *AuthorModel) AndLtDisplayStartDt[T0 argTimeCmp](v0 T0, compared ...any) *AuthorModel

func (*AuthorModel) AndLtReadCount

func (x *AuthorModel) AndLtReadCount[T0 argIntCmp](v0 T0) *AuthorModel

func (*AuthorModel) AndLtSeq

func (x *AuthorModel) AndLtSeq[T0 argIntCmp](v0 T0) *AuthorModel

func (*AuthorModel) AndLtStartDt

func (x *AuthorModel) AndLtStartDt[T0 argTimeCmp](v0 T0, compared ...any) *AuthorModel

func (*AuthorModel) AndNeIsClose

func (x *AuthorModel) AndNeIsClose[T0 argBoolEq](v0 T0) *AuthorModel

func (*AuthorModel) AndNePhotoUrl

func (x *AuthorModel) AndNePhotoUrl[T0 argStringEqNull](v0 T0) *AuthorModel

func (*AuthorModel) AndNeReadCount

func (x *AuthorModel) AndNeReadCount[T0 argIntEq](v0 T0) *AuthorModel

func (*AuthorModel) AndNot

func (x *AuthorModel) AndNot(fn func(*AuthorModel)) *AuthorModel

AndNot opens a negated group joined with AND.

func (*AuthorModel) AndSeq

func (x *AuthorModel) AndSeq[T0 argIntEq](v0 T0) *AuthorModel

func (*AuthorModel) AndServiceSeq

func (x *AuthorModel) AndServiceSeq[T0 argIntEq](v0 T0) *AuthorModel

func (*AuthorModel) AndStartDt

func (x *AuthorModel) AndStartDt[T0 argTimeEq](v0 T0, compared ...any) *AuthorModel

func (*AuthorModel) AndSuccessCountLtSeq

func (x *AuthorModel) AndSuccessCountLtSeq[T0 hasSeq](v0 T0) *AuthorModel

func (*AuthorModel) AndUuid

func (x *AuthorModel) AndUuid[T0 argStringEqNull](v0 T0) *AuthorModel

func (*AuthorModel) AvgAesKeyVersion

func (x *AuthorModel) AvgAesKeyVersion() *AuthorModel

func (*AuthorModel) AvgLikeCount

func (x *AuthorModel) AvgLikeCount() *AuthorModel

func (*AuthorModel) AvgPrice

func (x *AuthorModel) AvgPrice() *AuthorModel

func (*AuthorModel) AvgReadCount

func (x *AuthorModel) AvgReadCount() *AuthorModel

func (*AuthorModel) AvgReaderCount

func (x *AuthorModel) AvgReaderCount() *AuthorModel

func (*AuthorModel) AvgSeq

func (x *AuthorModel) AvgSeq() *AuthorModel

func (*AuthorModel) AvgServiceMemberSeq

func (x *AuthorModel) AvgServiceMemberSeq() *AuthorModel

func (*AuthorModel) AvgServiceRegionSeq

func (x *AuthorModel) AvgServiceRegionSeq() *AuthorModel

func (*AuthorModel) AvgServiceSeq

func (x *AuthorModel) AvgServiceSeq() *AuthorModel

func (*AuthorModel) AvgSuccessCount

func (x *AuthorModel) AvgSuccessCount() *AuthorModel

func (*AuthorModel) AvgTargetClubReaderCount

func (x *AuthorModel) AvgTargetClubReaderCount() *AuthorModel

func (*AuthorModel) AvgUserSeq

func (x *AuthorModel) AvgUserSeq() *AuthorModel

func (*AuthorModel) BetweenReadCount

func (x *AuthorModel) BetweenReadCount[T0 argIntBetween](v0 T0) *AuthorModel

func (*AuthorModel) Connect

func (x *AuthorModel) Connect(db *orm.DB) *AuthorModel

Connect sets the connection.

func (*AuthorModel) Create

func (x *AuthorModel) Create() (*AuthorModel, error)

Create inserts the row and returns the created row.

func (*AuthorModel) Creates

func (x *AuthorModel) Creates(rows []*AuthorModel) (int64, error)

Creates inserts rows in one transaction and returns the inserted row count.

func (*AuthorModel) Delete

func (x *AuthorModel) Delete(recursive ...bool) error

Delete deletes the row; Delete(true) first deletes loaded related rows.

func (*AuthorModel) DeleteLock

func (x *AuthorModel) DeleteLock() *AuthorModel

DeleteLock excludes the relation from recursive delete.

func (*AuthorModel) Duplication

func (x *AuthorModel) Duplication(m *AuthorModel) *AuthorModel

Duplication sets the duplicate-key update of the next Create.

func (*AuthorModel) EmailBlindIndex

func (x *AuthorModel) EmailBlindIndex[T0 argStringEqNull](v0 T0) *AuthorModel

func (*AuthorModel) FetchKey

func (x *AuthorModel) FetchKey(fn func(*AuthorModel) any) *AuthorModel

FetchKey computes the collection key of each row.

func (*AuthorModel) FetchValue

func (x *AuthorModel) FetchValue(fn func(*AuthorModel) any) *AuthorModel

FetchValue computes a value for each loaded row.

func (*AuthorModel) ForShare

func (x *AuthorModel) ForShare() *AuthorModel

ForShare locks the selected rows for share inside a transaction.

func (*AuthorModel) ForShareNoWait

func (x *AuthorModel) ForShareNoWait() *AuthorModel

ForShareNoWait locks for share without waiting.

func (*AuthorModel) ForUpdate

func (x *AuthorModel) ForUpdate() *AuthorModel

ForUpdate locks the selected rows for update inside a transaction.

func (*AuthorModel) ForUpdateNoWait

func (x *AuthorModel) ForUpdateNoWait() *AuthorModel

ForUpdateNoWait locks for update without waiting.

func (*AuthorModel) ForceIndexIk

func (x *AuthorModel) ForceIndexIk() *AuthorModel

func (*AuthorModel) ForceIndexIxAuthorServiceMember

func (x *AuthorModel) ForceIndexIxAuthorServiceMember() *AuthorModel

func (*AuthorModel) ForceIndexIxEmailBlindIndex

func (x *AuthorModel) ForceIndexIxEmailBlindIndex() *AuthorModel

func (*AuthorModel) ForceIndexIxPhoneBlindIndex

func (x *AuthorModel) ForceIndexIxPhoneBlindIndex() *AuthorModel

func (*AuthorModel) ForceIndexIxService

func (x *AuthorModel) ForceIndexIxService() *AuthorModel

func (*AuthorModel) ForceIndexIxUser

func (x *AuthorModel) ForceIndexIxUser() *AuthorModel

func (*AuthorModel) GeReadCount

func (x *AuthorModel) GeReadCount[T0 argIntCmp](v0 T0) *AuthorModel

func (*AuthorModel) Get

func (x *AuthorModel) Get() (*AuthorModel, error)

Get returns the first matching row. It returns orm.CodeNoRows when no row matches.

func (*AuthorModel) GetAesHexEmail

func (x *AuthorModel) GetAesHexEmail() *string

GetAesHexEmail returns aes_hex_email.

func (*AuthorModel) GetAesHexPhone

func (x *AuthorModel) GetAesHexPhone() *string

GetAesHexPhone returns aes_hex_phone.

func (*AuthorModel) GetAesKeyVersion

func (x *AuthorModel) GetAesKeyVersion() int32

GetAesKeyVersion returns aes_key_version.

func (*AuthorModel) GetAvg

func (x *AuthorModel) GetAvg() (float64, error)

GetAvg returns the average of the column selected with Avg<Col>.

func (*AuthorModel) GetBase64Extra

func (x *AuthorModel) GetBase64Extra() (orm.StyledValue, error)

GetBase64Extra returns base64_extra.

func (*AuthorModel) GetByName

func (x *AuthorModel) GetByName[T0 argStringEq](v0 T0) (*AuthorModel, error)

func (*AuthorModel) GetBySeq

func (x *AuthorModel) GetBySeq[T0 argIntEq](v0 T0) (*AuthorModel, error)

func (*AuthorModel) GetCount

func (x *AuthorModel) GetCount() (int64, error)

GetCount returns the number of matching rows.

func (*AuthorModel) GetCountByIsClose

func (x *AuthorModel) GetCountByIsClose[T0 argBoolEq](v0 T0) (int64, error)

func (*AuthorModel) GetCountByServiceSeq

func (x *AuthorModel) GetCountByServiceSeq[T0 argIntEq](v0 T0) (int64, error)

func (*AuthorModel) GetCreatedTs

func (x *AuthorModel) GetCreatedTs() time.Time

GetCreatedTs returns created_ts.

func (*AuthorModel) GetDescription

func (x *AuthorModel) GetDescription() *string

GetDescription returns description.

func (*AuthorModel) GetDisplayEndDt

func (x *AuthorModel) GetDisplayEndDt() *time.Time

GetDisplayEndDt returns display_end_dt.

func (*AuthorModel) GetDisplayStartDt

func (x *AuthorModel) GetDisplayStartDt() *time.Time

GetDisplayStartDt returns display_start_dt.

func (*AuthorModel) GetEmailBlindIndex

func (x *AuthorModel) GetEmailBlindIndex() *string

GetEmailBlindIndex returns email_blind_index.

func (*AuthorModel) GetEndDt

func (x *AuthorModel) GetEndDt() time.Time

GetEndDt returns end_dt.

func (*AuthorModel) GetGzExtend

func (x *AuthorModel) GetGzExtend() (orm.StyledValue, error)

GetGzExtend returns gz_extend.

func (*AuthorModel) GetIp

func (x *AuthorModel) GetIp() *string

GetIp returns ip.

func (*AuthorModel) GetIsAllday

func (x *AuthorModel) GetIsAllday() bool

GetIsAllday returns is_allday.

func (*AuthorModel) GetIsClose

func (x *AuthorModel) GetIsClose() bool

GetIsClose returns is_close.

func (*AuthorModel) GetIsDisplay

func (x *AuthorModel) GetIsDisplay() bool

GetIsDisplay returns is_display.

func (*AuthorModel) GetIsSingleWork

func (x *AuthorModel) GetIsSingleWork() bool

GetIsSingleWork returns is_single_work.

func (*AuthorModel) GetJsonSetting

func (x *AuthorModel) GetJsonSetting() (orm.StyledValue, error)

GetJsonSetting returns json_setting.

func (*AuthorModel) GetJsonsTags

func (x *AuthorModel) GetJsonsTags() (orm.StyledValue, error)

GetJsonsTags returns jsons_tags.

func (*AuthorModel) GetLabel

func (x *AuthorModel) GetLabel() any

GetLabel returns the value attached with NewLabel.

func (*AuthorModel) GetLikeCount

func (x *AuthorModel) GetLikeCount() int32

GetLikeCount returns like_count.

func (*AuthorModel) GetMembers

func (x *AuthorModel) GetMembers() (*orm.Collection[*ServiceMemberModel], error)

GetMembers returns the service_member relation result.

func (*AuthorModel) GetModule

func (x *AuthorModel) GetModule() (*ServiceRegionModel, error)

GetModule returns the service_region relation result.

func (*AuthorModel) GetName

func (x *AuthorModel) GetName() string

GetName returns name.

func (*AuthorModel) GetOwner

func (x *AuthorModel) GetOwner() (*UserModel, error)

GetOwner returns the user relation result.

func (*AuthorModel) GetOwnerService

func (x *AuthorModel) GetOwnerService() (*ServiceModel, error)

GetOwnerService returns the service relation result.

func (*AuthorModel) GetPhoneBlindIndex

func (x *AuthorModel) GetPhoneBlindIndex() *string

GetPhoneBlindIndex returns phone_blind_index.

func (*AuthorModel) GetPhotoUrl

func (x *AuthorModel) GetPhotoUrl() *string

GetPhotoUrl returns photo_url.

func (*AuthorModel) GetPrice

func (x *AuthorModel) GetPrice() *string

GetPrice returns price.

func (*AuthorModel) GetQuery

func (x *AuthorModel) GetQuery() (*orm.Statement, error)

GetQuery returns the statement of Gets without executing it.

func (*AuthorModel) GetReadCount

func (x *AuthorModel) GetReadCount() int32

GetReadCount returns read_count.

func (*AuthorModel) GetReaderCount

func (x *AuthorModel) GetReaderCount() int32

GetReaderCount returns reader_count.

func (*AuthorModel) GetSeq

func (x *AuthorModel) GetSeq() int64

GetSeq returns seq.

func (*AuthorModel) GetSerializeData

func (x *AuthorModel) GetSerializeData() (orm.StyledValue, error)

GetSerializeData returns serialize_data.

func (*AuthorModel) GetServiceMemberModel

func (x *AuthorModel) GetServiceMemberModel() (*ServiceMemberModel, error)

GetServiceMemberModel returns the service_member relation result.

func (*AuthorModel) GetServiceMemberModels

func (x *AuthorModel) GetServiceMemberModels() (*orm.Collection[*ServiceMemberModel], error)

GetServiceMemberModels returns the service_member relation result.

func (*AuthorModel) GetServiceMemberSeq

func (x *AuthorModel) GetServiceMemberSeq() int64

GetServiceMemberSeq returns service_member_seq.

func (*AuthorModel) GetServiceModel

func (x *AuthorModel) GetServiceModel() (*ServiceModel, error)

GetServiceModel returns the service relation result.

func (*AuthorModel) GetServiceRegionModel

func (x *AuthorModel) GetServiceRegionModel() (*ServiceRegionModel, error)

GetServiceRegionModel returns the service_region relation result.

func (*AuthorModel) GetServiceRegionSeq

func (x *AuthorModel) GetServiceRegionSeq() int64

GetServiceRegionSeq returns service_region_seq.

func (*AuthorModel) GetServiceSeq

func (x *AuthorModel) GetServiceSeq() int64

GetServiceSeq returns service_seq.

func (*AuthorModel) GetStartDt

func (x *AuthorModel) GetStartDt() time.Time

GetStartDt returns start_dt.

func (*AuthorModel) GetStartMonth

func (x *AuthorModel) GetStartMonth() any

GetStartMonth returns the column added with AddColumnStartDtAliasStartMonth.

func (*AuthorModel) GetStartYear

func (x *AuthorModel) GetStartYear() any

GetStartYear returns the column added with AddColumnStartDtAliasStartYear.

func (*AuthorModel) GetSuccessCount

func (x *AuthorModel) GetSuccessCount() int32

GetSuccessCount returns success_count.

func (*AuthorModel) GetSum

func (x *AuthorModel) GetSum() (float64, error)

GetSum returns the sum of the column selected with Sum<Col>.

func (*AuthorModel) GetTargetClubReaderCount

func (x *AuthorModel) GetTargetClubReaderCount() int32

GetTargetClubReaderCount returns target_club_reader_count.

func (*AuthorModel) GetUpdatedTs

func (x *AuthorModel) GetUpdatedTs() time.Time

GetUpdatedTs returns updated_ts.

func (*AuthorModel) GetUserModel

func (x *AuthorModel) GetUserModel() (*UserModel, error)

GetUserModel returns the user relation result.

func (*AuthorModel) GetUserSeq

func (x *AuthorModel) GetUserSeq() int64

GetUserSeq returns user_seq.

func (*AuthorModel) GetUuid

func (x *AuthorModel) GetUuid() *string

GetUuid returns uuid.

func (*AuthorModel) GetWriter

func (x *AuthorModel) GetWriter() (*UserModel, error)

GetWriter returns the user relation result.

func (*AuthorModel) Gets

func (x *AuthorModel) Gets() (*orm.Collection[*AuthorModel], error)

Gets returns the matching rows.

func (*AuthorModel) GetsBySeq

func (x *AuthorModel) GetsBySeq[T0 argIntEq](v0 T0) (*orm.Collection[*AuthorModel], error)

func (*AuthorModel) GetsBySeqAndNeName

func (x *AuthorModel) GetsBySeqAndNeName[T0 argIntEq, T1 argStringEq](v0 T0, v1 T1) (*orm.Collection[*AuthorModel], error)

func (*AuthorModel) GetsByServiceSeqAndIsClose

func (x *AuthorModel) GetsByServiceSeqAndIsClose[T0 argIntEq, T1 argBoolEq](v0 T0, v1 T1) (*orm.Collection[*AuthorModel], error)

func (*AuthorModel) GetsCount

func (x *AuthorModel) GetsCount() (*orm.GroupRows, error)

GetsCount returns grouped rows with row_count.

func (*AuthorModel) GetsPage

func (x *AuthorModel) GetsPage(page, perPage int) (*orm.Page[*AuthorModel], error)

GetsPage returns one page of matching rows.

func (*AuthorModel) GroupByAesHexEmail

func (x *AuthorModel) GroupByAesHexEmail() *AuthorModel

func (*AuthorModel) GroupByAesHexPhone

func (x *AuthorModel) GroupByAesHexPhone() *AuthorModel

func (*AuthorModel) GroupByAesKeyVersion

func (x *AuthorModel) GroupByAesKeyVersion() *AuthorModel

func (*AuthorModel) GroupByBase64Extra

func (x *AuthorModel) GroupByBase64Extra() *AuthorModel

func (*AuthorModel) GroupByCreatedTs

func (x *AuthorModel) GroupByCreatedTs() *AuthorModel

func (*AuthorModel) GroupByDescription

func (x *AuthorModel) GroupByDescription() *AuthorModel

func (*AuthorModel) GroupByDisplayEndDt

func (x *AuthorModel) GroupByDisplayEndDt() *AuthorModel

func (*AuthorModel) GroupByDisplayStartDt

func (x *AuthorModel) GroupByDisplayStartDt() *AuthorModel

func (*AuthorModel) GroupByEmailBlindIndex

func (x *AuthorModel) GroupByEmailBlindIndex() *AuthorModel

func (*AuthorModel) GroupByEndDt

func (x *AuthorModel) GroupByEndDt() *AuthorModel

func (*AuthorModel) GroupByGzExtend

func (x *AuthorModel) GroupByGzExtend() *AuthorModel

func (*AuthorModel) GroupByIp

func (x *AuthorModel) GroupByIp() *AuthorModel

func (*AuthorModel) GroupByIsAllday

func (x *AuthorModel) GroupByIsAllday() *AuthorModel

func (*AuthorModel) GroupByIsClose

func (x *AuthorModel) GroupByIsClose() *AuthorModel

func (*AuthorModel) GroupByIsDisplay

func (x *AuthorModel) GroupByIsDisplay() *AuthorModel

func (*AuthorModel) GroupByIsSingleWork

func (x *AuthorModel) GroupByIsSingleWork() *AuthorModel

func (*AuthorModel) GroupByJsonSetting

func (x *AuthorModel) GroupByJsonSetting() *AuthorModel

func (*AuthorModel) GroupByJsonsTags

func (x *AuthorModel) GroupByJsonsTags() *AuthorModel

func (*AuthorModel) GroupByLikeCount

func (x *AuthorModel) GroupByLikeCount() *AuthorModel

func (*AuthorModel) GroupByName

func (x *AuthorModel) GroupByName() *AuthorModel

func (*AuthorModel) GroupByPhoneBlindIndex

func (x *AuthorModel) GroupByPhoneBlindIndex() *AuthorModel

func (*AuthorModel) GroupByPhotoUrl

func (x *AuthorModel) GroupByPhotoUrl() *AuthorModel

func (*AuthorModel) GroupByPrice

func (x *AuthorModel) GroupByPrice() *AuthorModel

func (*AuthorModel) GroupByReadCount

func (x *AuthorModel) GroupByReadCount() *AuthorModel

func (*AuthorModel) GroupByReaderCount

func (x *AuthorModel) GroupByReaderCount() *AuthorModel

func (*AuthorModel) GroupBySeq

func (x *AuthorModel) GroupBySeq() *AuthorModel

func (*AuthorModel) GroupBySerializeData

func (x *AuthorModel) GroupBySerializeData() *AuthorModel

func (*AuthorModel) GroupByServiceMemberSeq

func (x *AuthorModel) GroupByServiceMemberSeq() *AuthorModel

func (*AuthorModel) GroupByServiceRegionSeq

func (x *AuthorModel) GroupByServiceRegionSeq() *AuthorModel

func (*AuthorModel) GroupByServiceSeq

func (x *AuthorModel) GroupByServiceSeq() *AuthorModel

func (*AuthorModel) GroupByStartDt

func (x *AuthorModel) GroupByStartDt() *AuthorModel

func (*AuthorModel) GroupBySuccessCount

func (x *AuthorModel) GroupBySuccessCount() *AuthorModel

func (*AuthorModel) GroupByTargetClubReaderCount

func (x *AuthorModel) GroupByTargetClubReaderCount() *AuthorModel

func (*AuthorModel) GroupByUpdatedTs

func (x *AuthorModel) GroupByUpdatedTs() *AuthorModel

func (*AuthorModel) GroupByUserSeq

func (x *AuthorModel) GroupByUserSeq() *AuthorModel

func (*AuthorModel) GroupByUuid

func (x *AuthorModel) GroupByUuid() *AuthorModel

func (*AuthorModel) GroupLimit

func (x *AuthorModel) GroupLimit(n int) *AuthorModel

GroupLimit limits related rows per parent.

func (*AuthorModel) GtStartDt

func (x *AuthorModel) GtStartDt[T0 argTimeCmp](v0 T0, compared ...any) *AuthorModel

func (*AuthorModel) IsClose

func (x *AuthorModel) IsClose[T0 argBoolEq](v0 T0) *AuthorModel

func (*AuthorModel) IsDisplay

func (x *AuthorModel) IsDisplay[T0 argBoolEq](v0 T0) *AuthorModel

func (*AuthorModel) JoinServiceMemberSeqWithSeq

func (x *AuthorModel) JoinServiceMemberSeqWithSeq[C hasSeq](child C) *AuthorModel

func (*AuthorModel) JoinServiceSeqWithSeq

func (x *AuthorModel) JoinServiceSeqWithSeq[C hasSeq](child C) *AuthorModel

func (*AuthorModel) JoinUserSeqWithSeq

func (x *AuthorModel) JoinUserSeqWithSeq[C hasSeq](child C) *AuthorModel

func (*AuthorModel) KeyNameAesHexEmail

func (x *AuthorModel) KeyNameAesHexEmail() *AuthorModel

func (*AuthorModel) KeyNameAesHexPhone

func (x *AuthorModel) KeyNameAesHexPhone() *AuthorModel

func (*AuthorModel) KeyNameAesKeyVersion

func (x *AuthorModel) KeyNameAesKeyVersion() *AuthorModel

func (*AuthorModel) KeyNameBase64Extra

func (x *AuthorModel) KeyNameBase64Extra() *AuthorModel

func (*AuthorModel) KeyNameCreatedTs

func (x *AuthorModel) KeyNameCreatedTs() *AuthorModel

func (*AuthorModel) KeyNameDescription

func (x *AuthorModel) KeyNameDescription() *AuthorModel

func (*AuthorModel) KeyNameDisplayEndDt

func (x *AuthorModel) KeyNameDisplayEndDt() *AuthorModel

func (*AuthorModel) KeyNameDisplayStartDt

func (x *AuthorModel) KeyNameDisplayStartDt() *AuthorModel

func (*AuthorModel) KeyNameEmailBlindIndex

func (x *AuthorModel) KeyNameEmailBlindIndex() *AuthorModel

func (*AuthorModel) KeyNameEndDt

func (x *AuthorModel) KeyNameEndDt() *AuthorModel

func (*AuthorModel) KeyNameGzExtend

func (x *AuthorModel) KeyNameGzExtend() *AuthorModel

func (*AuthorModel) KeyNameIp

func (x *AuthorModel) KeyNameIp() *AuthorModel

func (*AuthorModel) KeyNameIsAllday

func (x *AuthorModel) KeyNameIsAllday() *AuthorModel

func (*AuthorModel) KeyNameIsClose

func (x *AuthorModel) KeyNameIsClose() *AuthorModel

func (*AuthorModel) KeyNameIsDisplay

func (x *AuthorModel) KeyNameIsDisplay() *AuthorModel

func (*AuthorModel) KeyNameIsSingleWork

func (x *AuthorModel) KeyNameIsSingleWork() *AuthorModel

func (*AuthorModel) KeyNameJsonSetting

func (x *AuthorModel) KeyNameJsonSetting() *AuthorModel

func (*AuthorModel) KeyNameJsonsTags

func (x *AuthorModel) KeyNameJsonsTags() *AuthorModel

func (*AuthorModel) KeyNameLikeCount

func (x *AuthorModel) KeyNameLikeCount() *AuthorModel

func (*AuthorModel) KeyNameName

func (x *AuthorModel) KeyNameName() *AuthorModel

func (*AuthorModel) KeyNamePhoneBlindIndex

func (x *AuthorModel) KeyNamePhoneBlindIndex() *AuthorModel

func (*AuthorModel) KeyNamePhotoUrl

func (x *AuthorModel) KeyNamePhotoUrl() *AuthorModel

func (*AuthorModel) KeyNamePrice

func (x *AuthorModel) KeyNamePrice() *AuthorModel

func (*AuthorModel) KeyNameReadCount

func (x *AuthorModel) KeyNameReadCount() *AuthorModel

func (*AuthorModel) KeyNameReaderCount

func (x *AuthorModel) KeyNameReaderCount() *AuthorModel

func (*AuthorModel) KeyNameSeq

func (x *AuthorModel) KeyNameSeq() *AuthorModel

func (*AuthorModel) KeyNameSerializeData

func (x *AuthorModel) KeyNameSerializeData() *AuthorModel

func (*AuthorModel) KeyNameServiceMemberSeq

func (x *AuthorModel) KeyNameServiceMemberSeq() *AuthorModel

func (*AuthorModel) KeyNameServiceRegionSeq

func (x *AuthorModel) KeyNameServiceRegionSeq() *AuthorModel

func (*AuthorModel) KeyNameServiceSeq

func (x *AuthorModel) KeyNameServiceSeq() *AuthorModel

func (*AuthorModel) KeyNameStartDt

func (x *AuthorModel) KeyNameStartDt() *AuthorModel

func (*AuthorModel) KeyNameSuccessCount

func (x *AuthorModel) KeyNameSuccessCount() *AuthorModel

func (*AuthorModel) KeyNameTargetClubReaderCount

func (x *AuthorModel) KeyNameTargetClubReaderCount() *AuthorModel

func (*AuthorModel) KeyNameUpdatedTs

func (x *AuthorModel) KeyNameUpdatedTs() *AuthorModel

func (*AuthorModel) KeyNameUserSeq

func (x *AuthorModel) KeyNameUserSeq() *AuthorModel

func (*AuthorModel) KeyNameUuid

func (x *AuthorModel) KeyNameUuid() *AuthorModel

func (*AuthorModel) LeftJoinServiceRegionSeqWithSeq

func (x *AuthorModel) LeftJoinServiceRegionSeqWithSeq[C hasSeq](child C) *AuthorModel

func (*AuthorModel) LeftJoinUserSeqWithSeq

func (x *AuthorModel) LeftJoinUserSeqWithSeq[C hasSeq](child C) *AuthorModel

func (*AuthorModel) Limit

func (x *AuthorModel) Limit(offset, count int) *AuthorModel

Limit sets the row range.

func (*AuthorModel) LtReadCount

func (x *AuthorModel) LtReadCount[T0 argIntCmp](v0 T0) *AuthorModel

func (*AuthorModel) MarshalJSON

func (x *AuthorModel) MarshalJSON() ([]byte, error)

MarshalJSON writes the row values in order.

func (*AuthorModel) MatchSeqWithUserSeq

func (x *AuthorModel) MatchSeqWithUserSeq() *AuthorModel

func (*AuthorModel) MinusAesKeyVersion

func (x *AuthorModel) MinusAesKeyVersion(n int32) *AuthorModel

func (*AuthorModel) MinusLikeCount

func (x *AuthorModel) MinusLikeCount(n int32) *AuthorModel

func (*AuthorModel) MinusPrice

func (x *AuthorModel) MinusPrice(n string) *AuthorModel

func (*AuthorModel) MinusReadCount

func (x *AuthorModel) MinusReadCount(n int32) *AuthorModel

func (*AuthorModel) MinusReaderCount

func (x *AuthorModel) MinusReaderCount(n int32) *AuthorModel

func (*AuthorModel) MinusSeq

func (x *AuthorModel) MinusSeq(n int64) *AuthorModel

func (*AuthorModel) MinusServiceMemberSeq

func (x *AuthorModel) MinusServiceMemberSeq(n int64) *AuthorModel

func (*AuthorModel) MinusServiceRegionSeq

func (x *AuthorModel) MinusServiceRegionSeq(n int64) *AuthorModel

func (*AuthorModel) MinusServiceSeq

func (x *AuthorModel) MinusServiceSeq(n int64) *AuthorModel

func (*AuthorModel) MinusSuccessCount

func (x *AuthorModel) MinusSuccessCount(n int32) *AuthorModel

func (*AuthorModel) MinusTargetClubReaderCount

func (x *AuthorModel) MinusTargetClubReaderCount(n int32) *AuthorModel

func (*AuthorModel) MinusUserSeq

func (x *AuthorModel) MinusUserSeq(n int64) *AuthorModel

func (*AuthorModel) Name

func (x *AuthorModel) Name[T0 argStringEq](v0 T0) *AuthorModel

func (*AuthorModel) NePhotoUrl

func (x *AuthorModel) NePhotoUrl[T0 argStringEqNull](v0 T0) *AuthorModel

func (*AuthorModel) NewLabel

func (x *AuthorModel) NewLabel(v any) *AuthorModel

func (*AuthorModel) Not

func (x *AuthorModel) Not(fn func(*AuthorModel)) *AuthorModel

Not opens a negated group, NOT (…), as the first condition or after a connector written as a separate call.

func (*AuthorModel) On

func (x *AuthorModel) On(fn func(*AuthorModel)) *AuthorModel

On sets the join ON conditions.

func (*AuthorModel) Or

func (x *AuthorModel) Or(args ...any) *AuthorModel

Or joins the next condition with OR, opens an OR group with a callback, or places the conditions of a joined model.

func (*AuthorModel) OrGtReadCount

func (x *AuthorModel) OrGtReadCount[T0 argIntCmp](v0 T0) *AuthorModel

func (*AuthorModel) OrIsClose

func (x *AuthorModel) OrIsClose[T0 argBoolEq](v0 T0) *AuthorModel

func (*AuthorModel) OrNot

func (x *AuthorModel) OrNot(fn func(*AuthorModel)) *AuthorModel

OrNot opens a negated group joined with OR.

func (*AuthorModel) OrderByAesHexEmailAsc

func (x *AuthorModel) OrderByAesHexEmailAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByAesHexEmailDesc

func (x *AuthorModel) OrderByAesHexEmailDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByAesHexPhoneAsc

func (x *AuthorModel) OrderByAesHexPhoneAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByAesHexPhoneDesc

func (x *AuthorModel) OrderByAesHexPhoneDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByAesKeyVersionAsc

func (x *AuthorModel) OrderByAesKeyVersionAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByAesKeyVersionDesc

func (x *AuthorModel) OrderByAesKeyVersionDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByBase64ExtraAsc

func (x *AuthorModel) OrderByBase64ExtraAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByBase64ExtraDesc

func (x *AuthorModel) OrderByBase64ExtraDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByCreatedTsAsc

func (x *AuthorModel) OrderByCreatedTsAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByCreatedTsDesc

func (x *AuthorModel) OrderByCreatedTsDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByDescriptionAsc

func (x *AuthorModel) OrderByDescriptionAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByDescriptionDesc

func (x *AuthorModel) OrderByDescriptionDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByDisplayEndDtAsc

func (x *AuthorModel) OrderByDisplayEndDtAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByDisplayEndDtDesc

func (x *AuthorModel) OrderByDisplayEndDtDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByDisplayStartDtAsc

func (x *AuthorModel) OrderByDisplayStartDtAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByDisplayStartDtDesc

func (x *AuthorModel) OrderByDisplayStartDtDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByEmailBlindIndexAsc

func (x *AuthorModel) OrderByEmailBlindIndexAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByEmailBlindIndexDesc

func (x *AuthorModel) OrderByEmailBlindIndexDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByEndDtAsc

func (x *AuthorModel) OrderByEndDtAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByEndDtDesc

func (x *AuthorModel) OrderByEndDtDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByGzExtendAsc

func (x *AuthorModel) OrderByGzExtendAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByGzExtendDesc

func (x *AuthorModel) OrderByGzExtendDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByIpAsc

func (x *AuthorModel) OrderByIpAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByIpDesc

func (x *AuthorModel) OrderByIpDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByIsAlldayAsc

func (x *AuthorModel) OrderByIsAlldayAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByIsAlldayDesc

func (x *AuthorModel) OrderByIsAlldayDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByIsCloseAsc

func (x *AuthorModel) OrderByIsCloseAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByIsCloseDesc

func (x *AuthorModel) OrderByIsCloseDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByIsDisplayAsc

func (x *AuthorModel) OrderByIsDisplayAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByIsDisplayDesc

func (x *AuthorModel) OrderByIsDisplayDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByIsSingleWorkAsc

func (x *AuthorModel) OrderByIsSingleWorkAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByIsSingleWorkDesc

func (x *AuthorModel) OrderByIsSingleWorkDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByJsonSettingAsc

func (x *AuthorModel) OrderByJsonSettingAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByJsonSettingDesc

func (x *AuthorModel) OrderByJsonSettingDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByJsonsTagsAsc

func (x *AuthorModel) OrderByJsonsTagsAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByJsonsTagsDesc

func (x *AuthorModel) OrderByJsonsTagsDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByLikeCountAsc

func (x *AuthorModel) OrderByLikeCountAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByLikeCountDesc

func (x *AuthorModel) OrderByLikeCountDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByNameAsc

func (x *AuthorModel) OrderByNameAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByNameDesc

func (x *AuthorModel) OrderByNameDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByPhoneBlindIndexAsc

func (x *AuthorModel) OrderByPhoneBlindIndexAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByPhoneBlindIndexDesc

func (x *AuthorModel) OrderByPhoneBlindIndexDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByPhotoUrlAsc

func (x *AuthorModel) OrderByPhotoUrlAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByPhotoUrlDesc

func (x *AuthorModel) OrderByPhotoUrlDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByPriceAsc

func (x *AuthorModel) OrderByPriceAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByPriceDesc

func (x *AuthorModel) OrderByPriceDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByRandom

func (x *AuthorModel) OrderByRandom() *AuthorModel

OrderByRandom orders rows randomly.

func (*AuthorModel) OrderByReadCountAsc

func (x *AuthorModel) OrderByReadCountAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByReadCountDesc

func (x *AuthorModel) OrderByReadCountDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByReadCountDescAndSeqAsc

func (x *AuthorModel) OrderByReadCountDescAndSeqAsc() *AuthorModel

func (*AuthorModel) OrderByReaderCountAsc

func (x *AuthorModel) OrderByReaderCountAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByReaderCountDesc

func (x *AuthorModel) OrderByReaderCountDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderBySeqAsc

func (x *AuthorModel) OrderBySeqAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderBySeqDesc

func (x *AuthorModel) OrderBySeqDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderBySerializeDataAsc

func (x *AuthorModel) OrderBySerializeDataAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderBySerializeDataDesc

func (x *AuthorModel) OrderBySerializeDataDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByServiceMemberSeqAsc

func (x *AuthorModel) OrderByServiceMemberSeqAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByServiceMemberSeqDesc

func (x *AuthorModel) OrderByServiceMemberSeqDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByServiceRegionSeqAsc

func (x *AuthorModel) OrderByServiceRegionSeqAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByServiceRegionSeqDesc

func (x *AuthorModel) OrderByServiceRegionSeqDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByServiceSeqAsc

func (x *AuthorModel) OrderByServiceSeqAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByServiceSeqDesc

func (x *AuthorModel) OrderByServiceSeqDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByStartDtAsc

func (x *AuthorModel) OrderByStartDtAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByStartDtDesc

func (x *AuthorModel) OrderByStartDtDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderBySuccessCountAsc

func (x *AuthorModel) OrderBySuccessCountAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderBySuccessCountDesc

func (x *AuthorModel) OrderBySuccessCountDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByTargetClubReaderCountAsc

func (x *AuthorModel) OrderByTargetClubReaderCountAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByTargetClubReaderCountDesc

func (x *AuthorModel) OrderByTargetClubReaderCountDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByUpdatedTsAsc

func (x *AuthorModel) OrderByUpdatedTsAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByUpdatedTsDesc

func (x *AuthorModel) OrderByUpdatedTsDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByUserSeqAsc

func (x *AuthorModel) OrderByUserSeqAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByUserSeqDesc

func (x *AuthorModel) OrderByUserSeqDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByUuidAsc

func (x *AuthorModel) OrderByUuidAsc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) OrderByUuidDesc

func (x *AuthorModel) OrderByUuidDesc(fn ...orm.Func) *AuthorModel

func (*AuthorModel) Orm_

func (x *AuthorModel) Orm_() *orm.Core

func (*AuthorModel) ParentNode

func (x *AuthorModel) ParentNode() *AuthorModel

ParentNode merges the related row into the parent row.

func (*AuthorModel) PhoneBlindIndex

func (x *AuthorModel) PhoneBlindIndex[T0 argStringEqNull](v0 T0) *AuthorModel

func (*AuthorModel) PhotoUrl

func (x *AuthorModel) PhotoUrl[T0 argStringEqNull](v0 T0) *AuthorModel

func (*AuthorModel) PlusAesKeyVersion

func (x *AuthorModel) PlusAesKeyVersion(n int32) *AuthorModel

func (*AuthorModel) PlusLikeCount

func (x *AuthorModel) PlusLikeCount(n int32) *AuthorModel

func (*AuthorModel) PlusPrice

func (x *AuthorModel) PlusPrice(n string) *AuthorModel

func (*AuthorModel) PlusReadCount

func (x *AuthorModel) PlusReadCount(n int32) *AuthorModel

func (*AuthorModel) PlusReaderCount

func (x *AuthorModel) PlusReaderCount(n int32) *AuthorModel

func (*AuthorModel) PlusSeq

func (x *AuthorModel) PlusSeq(n int64) *AuthorModel

func (*AuthorModel) PlusServiceMemberSeq

func (x *AuthorModel) PlusServiceMemberSeq(n int64) *AuthorModel

func (*AuthorModel) PlusServiceRegionSeq

func (x *AuthorModel) PlusServiceRegionSeq(n int64) *AuthorModel

func (*AuthorModel) PlusServiceSeq

func (x *AuthorModel) PlusServiceSeq(n int64) *AuthorModel

func (*AuthorModel) PlusSuccessCount

func (x *AuthorModel) PlusSuccessCount(n int32) *AuthorModel

func (*AuthorModel) PlusTargetClubReaderCount

func (x *AuthorModel) PlusTargetClubReaderCount(n int32) *AuthorModel

func (*AuthorModel) PlusUserSeq

func (x *AuthorModel) PlusUserSeq(n int64) *AuthorModel

func (*AuthorModel) ReadCount

func (x *AuthorModel) ReadCount[T0 argIntEq](v0 T0) *AuthorModel

func (*AuthorModel) ReadCountGtSeq

func (x *AuthorModel) ReadCountGtSeq[T0 hasSeq](v0 T0) *AuthorModel

func (*AuthorModel) Relation

func (x *AuthorModel) Relation(child orm.Model) *AuthorModel

Relation attaches one related row loaded by a separate query.

func (*AuthorModel) Relations

func (x *AuthorModel) Relations(child orm.Model) *AuthorModel

Relations attaches related rows loaded by a separate query.

func (*AuthorModel) RemoveAllColumns

func (x *AuthorModel) RemoveAllColumns() *AuthorModel

RemoveAllColumns keeps only primary and foreign keys.

func (*AuthorModel) RemoveColumnAesHexEmail

func (x *AuthorModel) RemoveColumnAesHexEmail() *AuthorModel

func (*AuthorModel) RemoveColumnAesHexPhone

func (x *AuthorModel) RemoveColumnAesHexPhone() *AuthorModel

func (*AuthorModel) RemoveColumnAesKeyVersion

func (x *AuthorModel) RemoveColumnAesKeyVersion() *AuthorModel

func (*AuthorModel) RemoveColumnBase64Extra

func (x *AuthorModel) RemoveColumnBase64Extra() *AuthorModel

func (*AuthorModel) RemoveColumnCreatedTs

func (x *AuthorModel) RemoveColumnCreatedTs() *AuthorModel

func (*AuthorModel) RemoveColumnDescription

func (x *AuthorModel) RemoveColumnDescription() *AuthorModel

func (*AuthorModel) RemoveColumnDisplayEndDt

func (x *AuthorModel) RemoveColumnDisplayEndDt() *AuthorModel

func (*AuthorModel) RemoveColumnDisplayStartDt

func (x *AuthorModel) RemoveColumnDisplayStartDt() *AuthorModel

func (*AuthorModel) RemoveColumnEmailBlindIndex

func (x *AuthorModel) RemoveColumnEmailBlindIndex() *AuthorModel

func (*AuthorModel) RemoveColumnEndDt

func (x *AuthorModel) RemoveColumnEndDt() *AuthorModel

func (*AuthorModel) RemoveColumnGzExtend

func (x *AuthorModel) RemoveColumnGzExtend() *AuthorModel

func (*AuthorModel) RemoveColumnIp

func (x *AuthorModel) RemoveColumnIp() *AuthorModel

func (*AuthorModel) RemoveColumnIsAllday

func (x *AuthorModel) RemoveColumnIsAllday() *AuthorModel

func (*AuthorModel) RemoveColumnIsClose

func (x *AuthorModel) RemoveColumnIsClose() *AuthorModel

func (*AuthorModel) RemoveColumnIsDisplay

func (x *AuthorModel) RemoveColumnIsDisplay() *AuthorModel

func (*AuthorModel) RemoveColumnIsSingleWork

func (x *AuthorModel) RemoveColumnIsSingleWork() *AuthorModel

func (*AuthorModel) RemoveColumnJsonSetting

func (x *AuthorModel) RemoveColumnJsonSetting() *AuthorModel

func (*AuthorModel) RemoveColumnJsonsTags

func (x *AuthorModel) RemoveColumnJsonsTags() *AuthorModel

func (*AuthorModel) RemoveColumnLikeCount

func (x *AuthorModel) RemoveColumnLikeCount() *AuthorModel

func (*AuthorModel) RemoveColumnName

func (x *AuthorModel) RemoveColumnName() *AuthorModel

func (*AuthorModel) RemoveColumnPhoneBlindIndex

func (x *AuthorModel) RemoveColumnPhoneBlindIndex() *AuthorModel

func (*AuthorModel) RemoveColumnPhotoUrl

func (x *AuthorModel) RemoveColumnPhotoUrl() *AuthorModel

func (*AuthorModel) RemoveColumnPrice

func (x *AuthorModel) RemoveColumnPrice() *AuthorModel

func (*AuthorModel) RemoveColumnReadCount

func (x *AuthorModel) RemoveColumnReadCount() *AuthorModel

func (*AuthorModel) RemoveColumnReaderCount

func (x *AuthorModel) RemoveColumnReaderCount() *AuthorModel

func (*AuthorModel) RemoveColumnSeq

func (x *AuthorModel) RemoveColumnSeq() *AuthorModel

func (*AuthorModel) RemoveColumnSerializeData

func (x *AuthorModel) RemoveColumnSerializeData() *AuthorModel

func (*AuthorModel) RemoveColumnServiceMemberSeq

func (x *AuthorModel) RemoveColumnServiceMemberSeq() *AuthorModel

func (*AuthorModel) RemoveColumnServiceRegionSeq

func (x *AuthorModel) RemoveColumnServiceRegionSeq() *AuthorModel

func (*AuthorModel) RemoveColumnServiceSeq

func (x *AuthorModel) RemoveColumnServiceSeq() *AuthorModel

func (*AuthorModel) RemoveColumnStartDt

func (x *AuthorModel) RemoveColumnStartDt() *AuthorModel

func (*AuthorModel) RemoveColumnSuccessCount

func (x *AuthorModel) RemoveColumnSuccessCount() *AuthorModel

func (*AuthorModel) RemoveColumnTargetClubReaderCount

func (x *AuthorModel) RemoveColumnTargetClubReaderCount() *AuthorModel

func (*AuthorModel) RemoveColumnUpdatedTs

func (x *AuthorModel) RemoveColumnUpdatedTs() *AuthorModel

func (*AuthorModel) RemoveColumnUserSeq

func (x *AuthorModel) RemoveColumnUserSeq() *AuthorModel

func (*AuthorModel) RemoveColumnUuid

func (x *AuthorModel) RemoveColumnUuid() *AuthorModel

func (*AuthorModel) Restore

func (x *AuthorModel) Restore() (*AuthorModel, error)

Restore restores the soft-deleted row that the set key values name and returns it.

func (*AuthorModel) Save

func (x *AuthorModel) Save() (*AuthorModel, error)

Save updates the row when its primary key is known, otherwise creates it.

func (*AuthorModel) Seq

func (x *AuthorModel) Seq[T0 argIntEq](v0 T0) *AuthorModel

func (*AuthorModel) ServiceMemberSeq

func (x *AuthorModel) ServiceMemberSeq[T0 argIntEq](v0 T0) *AuthorModel

func (*AuthorModel) ServiceRegionSeq

func (x *AuthorModel) ServiceRegionSeq[T0 argIntEq](v0 T0) *AuthorModel

func (*AuthorModel) ServiceSeq

func (x *AuthorModel) ServiceSeq[T0 argIntEq](v0 T0) *AuthorModel

func (*AuthorModel) SetAesHexEmail

func (x *AuthorModel) SetAesHexEmail(v *string) *AuthorModel

SetAesHexEmail sets aes_hex_email; nil stores NULL.

func (*AuthorModel) SetAesHexPhone

func (x *AuthorModel) SetAesHexPhone(v *string) *AuthorModel

SetAesHexPhone sets aes_hex_phone; nil stores NULL.

func (*AuthorModel) SetAesKeyVersion

func (x *AuthorModel) SetAesKeyVersion(v int32) *AuthorModel

SetAesKeyVersion sets aes_key_version.

func (*AuthorModel) SetBase64Extra

func (x *AuthorModel) SetBase64Extra(v orm.StyledValue) (*AuthorModel, error)

SetBase64Extra sets base64_extra.

func (*AuthorModel) SetCreatedTs

func (x *AuthorModel) SetCreatedTs(v time.Time) *AuthorModel

SetCreatedTs sets created_ts.

func (*AuthorModel) SetDescription

func (x *AuthorModel) SetDescription(v *string) *AuthorModel

SetDescription sets description; nil stores NULL.

func (*AuthorModel) SetDisplayEndDt

func (x *AuthorModel) SetDisplayEndDt(v *time.Time) *AuthorModel

SetDisplayEndDt sets display_end_dt; nil stores NULL.

func (*AuthorModel) SetDisplayStartDt

func (x *AuthorModel) SetDisplayStartDt(v *time.Time) *AuthorModel

SetDisplayStartDt sets display_start_dt; nil stores NULL.

func (*AuthorModel) SetEmailBlindIndex

func (x *AuthorModel) SetEmailBlindIndex(v *string) *AuthorModel

SetEmailBlindIndex sets email_blind_index; nil stores NULL.

func (*AuthorModel) SetEndDt

func (x *AuthorModel) SetEndDt(v time.Time) *AuthorModel

SetEndDt sets end_dt.

func (*AuthorModel) SetGzExtend

func (x *AuthorModel) SetGzExtend(v orm.StyledValue) (*AuthorModel, error)

SetGzExtend sets gz_extend.

func (*AuthorModel) SetIp

func (x *AuthorModel) SetIp(v *string) *AuthorModel

SetIp sets ip; nil stores NULL.

func (*AuthorModel) SetIsAllday

func (x *AuthorModel) SetIsAllday(v bool) *AuthorModel

SetIsAllday sets is_allday.

func (*AuthorModel) SetIsClose

func (x *AuthorModel) SetIsClose(v bool) *AuthorModel

SetIsClose sets is_close.

func (*AuthorModel) SetIsDisplay

func (x *AuthorModel) SetIsDisplay(v bool) *AuthorModel

SetIsDisplay sets is_display.

func (*AuthorModel) SetIsSingleWork

func (x *AuthorModel) SetIsSingleWork(v bool) *AuthorModel

SetIsSingleWork sets is_single_work.

func (*AuthorModel) SetJsonSetting

func (x *AuthorModel) SetJsonSetting(v orm.StyledValue) (*AuthorModel, error)

SetJsonSetting sets json_setting.

func (*AuthorModel) SetJsonsTags

func (x *AuthorModel) SetJsonsTags(v orm.StyledValue) (*AuthorModel, error)

SetJsonsTags sets jsons_tags.

func (*AuthorModel) SetLikeCount

func (x *AuthorModel) SetLikeCount(v int32) *AuthorModel

SetLikeCount sets like_count.

func (*AuthorModel) SetName

func (x *AuthorModel) SetName(v string) *AuthorModel

SetName sets name.

func (*AuthorModel) SetPhoneBlindIndex

func (x *AuthorModel) SetPhoneBlindIndex(v *string) *AuthorModel

SetPhoneBlindIndex sets phone_blind_index; nil stores NULL.

func (*AuthorModel) SetPhotoUrl

func (x *AuthorModel) SetPhotoUrl(v *string) *AuthorModel

SetPhotoUrl sets photo_url; nil stores NULL.

func (*AuthorModel) SetPrice

func (x *AuthorModel) SetPrice(v *string) (*AuthorModel, error)

SetPrice sets price after exact decimal validation.

func (*AuthorModel) SetReadCount

func (x *AuthorModel) SetReadCount(v int32) *AuthorModel

SetReadCount sets read_count.

func (*AuthorModel) SetReaderCount

func (x *AuthorModel) SetReaderCount(v int32) *AuthorModel

SetReaderCount sets reader_count.

func (*AuthorModel) SetSeq

func (x *AuthorModel) SetSeq(v int64) *AuthorModel

SetSeq sets seq.

func (*AuthorModel) SetSerializeData

func (x *AuthorModel) SetSerializeData(v orm.StyledValue) (*AuthorModel, error)

SetSerializeData sets serialize_data.

func (*AuthorModel) SetServiceMemberSeq

func (x *AuthorModel) SetServiceMemberSeq(v int64) *AuthorModel

SetServiceMemberSeq sets service_member_seq.

func (*AuthorModel) SetServiceRegionSeq

func (x *AuthorModel) SetServiceRegionSeq(v int64) *AuthorModel

SetServiceRegionSeq sets service_region_seq.

func (*AuthorModel) SetServiceSeq

func (x *AuthorModel) SetServiceSeq(v int64) *AuthorModel

SetServiceSeq sets service_seq.

func (*AuthorModel) SetStartDt

func (x *AuthorModel) SetStartDt(v time.Time) *AuthorModel

SetStartDt sets start_dt.

func (*AuthorModel) SetSuccessCount

func (x *AuthorModel) SetSuccessCount(v int32) *AuthorModel

SetSuccessCount sets success_count.

func (*AuthorModel) SetTargetClubReaderCount

func (x *AuthorModel) SetTargetClubReaderCount(v int32) *AuthorModel

SetTargetClubReaderCount sets target_club_reader_count.

func (*AuthorModel) SetUpdatedTs

func (x *AuthorModel) SetUpdatedTs(v time.Time) *AuthorModel

SetUpdatedTs sets updated_ts.

func (*AuthorModel) SetUserSeq

func (x *AuthorModel) SetUserSeq(v int64) *AuthorModel

SetUserSeq sets user_seq.

func (*AuthorModel) SetUuid

func (x *AuthorModel) SetUuid(v *string) *AuthorModel

SetUuid sets uuid; nil stores NULL.

func (*AuthorModel) SumAesKeyVersion

func (x *AuthorModel) SumAesKeyVersion() *AuthorModel

func (*AuthorModel) SumLikeCount

func (x *AuthorModel) SumLikeCount() *AuthorModel

func (*AuthorModel) SumPrice

func (x *AuthorModel) SumPrice() *AuthorModel

func (*AuthorModel) SumReadCount

func (x *AuthorModel) SumReadCount() *AuthorModel

func (*AuthorModel) SumReaderCount

func (x *AuthorModel) SumReaderCount() *AuthorModel

func (*AuthorModel) SumSeq

func (x *AuthorModel) SumSeq() *AuthorModel

func (*AuthorModel) SumServiceMemberSeq

func (x *AuthorModel) SumServiceMemberSeq() *AuthorModel

func (*AuthorModel) SumServiceRegionSeq

func (x *AuthorModel) SumServiceRegionSeq() *AuthorModel

func (*AuthorModel) SumServiceSeq

func (x *AuthorModel) SumServiceSeq() *AuthorModel

func (*AuthorModel) SumSuccessCount

func (x *AuthorModel) SumSuccessCount() *AuthorModel

func (*AuthorModel) SumTargetClubReaderCount

func (x *AuthorModel) SumTargetClubReaderCount() *AuthorModel

func (*AuthorModel) SumUserSeq

func (x *AuthorModel) SumUserSeq() *AuthorModel

func (*AuthorModel) ToArray

func (x *AuthorModel) ToArray() map[string]any

ToArray returns the row values.

func (*AuthorModel) Update

func (x *AuthorModel) Update(optimistic ...bool) (*AuthorModel, error)

Update writes the changed columns; Update(true) requires an unchanged updated time.

func (*AuthorModel) UserSeq

func (x *AuthorModel) UserSeq[T0 argIntEq](v0 T0) *AuthorModel

func (*AuthorModel) UserSeqEqSeq

func (x *AuthorModel) UserSeqEqSeq[T0 hasSeq](v0 T0) *AuthorModel

func (*AuthorModel) Uuid

func (x *AuthorModel) Uuid[T0 argStringEqNull](v0 T0) *AuthorModel

type CompositeAccountModel

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

CompositeAccountModel is a composite_account model or row.

func CompositeAccount

func CompositeAccount() *CompositeAccountModel

CompositeAccount creates a composite_account model.

func (*CompositeAccountModel) AddAllColumns

func (x *CompositeAccountModel) AddAllColumns() *CompositeAccountModel

AddAllColumns selects every column.

func (*CompositeAccountModel) AddColumnAccountId

func (x *CompositeAccountModel) AddColumnAccountId() *CompositeAccountModel

func (*CompositeAccountModel) AddColumnName

func (x *CompositeAccountModel) AddColumnName() *CompositeAccountModel

func (*CompositeAccountModel) AddColumnTenantId

func (x *CompositeAccountModel) AddColumnTenantId() *CompositeAccountModel

func (*CompositeAccountModel) And

And joins the next condition with AND, opens an AND group with a callback, or places the conditions of a joined model.

func (*CompositeAccountModel) AndNot

AndNot opens a negated group joined with AND.

func (*CompositeAccountModel) AvgAccountId

func (x *CompositeAccountModel) AvgAccountId() *CompositeAccountModel

func (*CompositeAccountModel) AvgTenantId

func (x *CompositeAccountModel) AvgTenantId() *CompositeAccountModel

func (*CompositeAccountModel) Connect

Connect sets the connection.

func (*CompositeAccountModel) Create

Create inserts the row and returns the created row.

func (*CompositeAccountModel) Creates

func (x *CompositeAccountModel) Creates(rows []*CompositeAccountModel) (int64, error)

Creates inserts rows in one transaction and returns the inserted row count.

func (*CompositeAccountModel) Delete

func (x *CompositeAccountModel) Delete(recursive ...bool) error

Delete deletes the row; Delete(true) first deletes loaded related rows.

func (*CompositeAccountModel) DeleteLock

DeleteLock excludes the relation from recursive delete.

func (*CompositeAccountModel) Duplication

Duplication sets the duplicate-key update of the next Create.

func (*CompositeAccountModel) FetchKey

FetchKey computes the collection key of each row.

func (*CompositeAccountModel) FetchValue

FetchValue computes a value for each loaded row.

func (*CompositeAccountModel) ForShare

ForShare locks the selected rows for share inside a transaction.

func (*CompositeAccountModel) ForShareNoWait

func (x *CompositeAccountModel) ForShareNoWait() *CompositeAccountModel

ForShareNoWait locks for share without waiting.

func (*CompositeAccountModel) ForUpdate

ForUpdate locks the selected rows for update inside a transaction.

func (*CompositeAccountModel) ForUpdateNoWait

func (x *CompositeAccountModel) ForUpdateNoWait() *CompositeAccountModel

ForUpdateNoWait locks for update without waiting.

func (*CompositeAccountModel) Get

Get returns the first matching row. It returns orm.CodeNoRows when no row matches.

func (*CompositeAccountModel) GetAccountId

func (x *CompositeAccountModel) GetAccountId() int64

GetAccountId returns account_id.

func (*CompositeAccountModel) GetAvg

func (x *CompositeAccountModel) GetAvg() (float64, error)

GetAvg returns the average of the column selected with Avg<Col>.

func (*CompositeAccountModel) GetByTenantIdAndAccountId

func (x *CompositeAccountModel) GetByTenantIdAndAccountId[T0 argIntEq, T1 argIntEq](v0 T0, v1 T1) (*CompositeAccountModel, error)

func (*CompositeAccountModel) GetCount

func (x *CompositeAccountModel) GetCount() (int64, error)

GetCount returns the number of matching rows.

func (*CompositeAccountModel) GetMemberships

GetMemberships returns the composite_membership relation result.

func (*CompositeAccountModel) GetName

func (x *CompositeAccountModel) GetName() string

GetName returns name.

func (*CompositeAccountModel) GetQuery

func (x *CompositeAccountModel) GetQuery() (*orm.Statement, error)

GetQuery returns the statement of Gets without executing it.

func (*CompositeAccountModel) GetSum

func (x *CompositeAccountModel) GetSum() (float64, error)

GetSum returns the sum of the column selected with Sum<Col>.

func (*CompositeAccountModel) GetTenantId

func (x *CompositeAccountModel) GetTenantId() int64

GetTenantId returns tenant_id.

func (*CompositeAccountModel) Gets

Gets returns the matching rows.

func (*CompositeAccountModel) GetsCount

func (x *CompositeAccountModel) GetsCount() (*orm.GroupRows, error)

GetsCount returns grouped rows with row_count.

func (*CompositeAccountModel) GetsPage

func (x *CompositeAccountModel) GetsPage(page, perPage int) (*orm.Page[*CompositeAccountModel], error)

GetsPage returns one page of matching rows.

func (*CompositeAccountModel) GroupByAccountId

func (x *CompositeAccountModel) GroupByAccountId() *CompositeAccountModel

func (*CompositeAccountModel) GroupByName

func (x *CompositeAccountModel) GroupByName() *CompositeAccountModel

func (*CompositeAccountModel) GroupByTenantId

func (x *CompositeAccountModel) GroupByTenantId() *CompositeAccountModel

func (*CompositeAccountModel) GroupLimit

GroupLimit limits related rows per parent.

func (*CompositeAccountModel) KeyNameAccountId

func (x *CompositeAccountModel) KeyNameAccountId() *CompositeAccountModel

func (*CompositeAccountModel) KeyNameName

func (x *CompositeAccountModel) KeyNameName() *CompositeAccountModel

func (*CompositeAccountModel) KeyNameTenantId

func (x *CompositeAccountModel) KeyNameTenantId() *CompositeAccountModel

func (*CompositeAccountModel) Limit

func (x *CompositeAccountModel) Limit(offset, count int) *CompositeAccountModel

Limit sets the row range.

func (*CompositeAccountModel) MarshalJSON

func (x *CompositeAccountModel) MarshalJSON() ([]byte, error)

MarshalJSON writes the row values in order.

func (*CompositeAccountModel) MinusAccountId

func (x *CompositeAccountModel) MinusAccountId(n int64) *CompositeAccountModel

func (*CompositeAccountModel) MinusTenantId

func (x *CompositeAccountModel) MinusTenantId(n int64) *CompositeAccountModel

func (*CompositeAccountModel) Not

Not opens a negated group, NOT (…), as the first condition or after a connector written as a separate call.

func (*CompositeAccountModel) On

On sets the join ON conditions.

func (*CompositeAccountModel) Or

Or joins the next condition with OR, opens an OR group with a callback, or places the conditions of a joined model.

func (*CompositeAccountModel) OrNot

OrNot opens a negated group joined with OR.

func (*CompositeAccountModel) OrderByAccountIdAsc

func (x *CompositeAccountModel) OrderByAccountIdAsc(fn ...orm.Func) *CompositeAccountModel

func (*CompositeAccountModel) OrderByAccountIdDesc

func (x *CompositeAccountModel) OrderByAccountIdDesc(fn ...orm.Func) *CompositeAccountModel

func (*CompositeAccountModel) OrderByNameAsc

func (x *CompositeAccountModel) OrderByNameAsc(fn ...orm.Func) *CompositeAccountModel

func (*CompositeAccountModel) OrderByNameDesc

func (x *CompositeAccountModel) OrderByNameDesc(fn ...orm.Func) *CompositeAccountModel

func (*CompositeAccountModel) OrderByRandom

func (x *CompositeAccountModel) OrderByRandom() *CompositeAccountModel

OrderByRandom orders rows randomly.

func (*CompositeAccountModel) OrderByTenantIdAsc

func (x *CompositeAccountModel) OrderByTenantIdAsc(fn ...orm.Func) *CompositeAccountModel

func (*CompositeAccountModel) OrderByTenantIdDesc

func (x *CompositeAccountModel) OrderByTenantIdDesc(fn ...orm.Func) *CompositeAccountModel

func (*CompositeAccountModel) Orm_

func (x *CompositeAccountModel) Orm_() *orm.Core

func (*CompositeAccountModel) ParentNode

ParentNode merges the related row into the parent row.

func (*CompositeAccountModel) PlusAccountId

func (x *CompositeAccountModel) PlusAccountId(n int64) *CompositeAccountModel

func (*CompositeAccountModel) PlusTenantId

func (*CompositeAccountModel) Relation

Relation attaches one related row loaded by a separate query.

func (*CompositeAccountModel) Relations

Relations attaches related rows loaded by a separate query.

func (*CompositeAccountModel) RemoveAllColumns

func (x *CompositeAccountModel) RemoveAllColumns() *CompositeAccountModel

RemoveAllColumns keeps only primary and foreign keys.

func (*CompositeAccountModel) RemoveColumnAccountId

func (x *CompositeAccountModel) RemoveColumnAccountId() *CompositeAccountModel

func (*CompositeAccountModel) RemoveColumnName

func (x *CompositeAccountModel) RemoveColumnName() *CompositeAccountModel

func (*CompositeAccountModel) RemoveColumnTenantId

func (x *CompositeAccountModel) RemoveColumnTenantId() *CompositeAccountModel

func (*CompositeAccountModel) Restore

Restore restores the soft-deleted row that the set key values name and returns it.

func (*CompositeAccountModel) Save

Save updates the row when its primary key is known, otherwise creates it.

func (*CompositeAccountModel) SetAccountId

SetAccountId sets account_id.

func (*CompositeAccountModel) SetName

SetName sets name.

func (*CompositeAccountModel) SetTenantId

SetTenantId sets tenant_id.

func (*CompositeAccountModel) SumAccountId

func (x *CompositeAccountModel) SumAccountId() *CompositeAccountModel

func (*CompositeAccountModel) SumTenantId

func (x *CompositeAccountModel) SumTenantId() *CompositeAccountModel

func (*CompositeAccountModel) TenantId

func (x *CompositeAccountModel) TenantId[T0 argIntEq](v0 T0) *CompositeAccountModel

func (*CompositeAccountModel) ToArray

func (x *CompositeAccountModel) ToArray() map[string]any

ToArray returns the row values.

func (*CompositeAccountModel) TupleTenantIdWithAccountId

func (*CompositeAccountModel) Update

func (x *CompositeAccountModel) Update(optimistic ...bool) (*CompositeAccountModel, error)

Update writes the changed columns; Update(true) requires an unchanged updated time.

type CompositeAccountTenantIdWithAccountId

type CompositeAccountTenantIdWithAccountId struct {
	TenantId  int64
	AccountId int64
}

CompositeAccountTenantIdWithAccountId is one value group of tenant_id, account_id.

type CompositeMembershipModel

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

CompositeMembershipModel is a composite_membership model or row.

func CompositeMembership

func CompositeMembership() *CompositeMembershipModel

CompositeMembership creates a composite_membership model.

func (*CompositeMembershipModel) AddAllColumns

AddAllColumns selects every column.

func (*CompositeMembershipModel) AddColumnAccountId

func (x *CompositeMembershipModel) AddColumnAccountId() *CompositeMembershipModel

func (*CompositeMembershipModel) AddColumnRole

func (*CompositeMembershipModel) AddColumnTenantId

func (x *CompositeMembershipModel) AddColumnTenantId() *CompositeMembershipModel

func (*CompositeMembershipModel) AliasMemberships

func (x *CompositeMembershipModel) AliasMemberships() *CompositeMembershipModel

func (*CompositeMembershipModel) And

And joins the next condition with AND, opens an AND group with a callback, or places the conditions of a joined model.

func (*CompositeMembershipModel) AndNot

AndNot opens a negated group joined with AND.

func (*CompositeMembershipModel) AvgAccountId

func (*CompositeMembershipModel) AvgTenantId

func (*CompositeMembershipModel) Connect

Connect sets the connection.

func (*CompositeMembershipModel) Create

Create inserts the row and returns the created row.

func (*CompositeMembershipModel) Creates

Creates inserts rows in one transaction and returns the inserted row count.

func (*CompositeMembershipModel) Delete

func (x *CompositeMembershipModel) Delete(recursive ...bool) error

Delete deletes the row; Delete(true) first deletes loaded related rows.

func (*CompositeMembershipModel) DeleteLock

DeleteLock excludes the relation from recursive delete.

func (*CompositeMembershipModel) Duplication

Duplication sets the duplicate-key update of the next Create.

func (*CompositeMembershipModel) FetchKey

FetchKey computes the collection key of each row.

func (*CompositeMembershipModel) FetchValue

FetchValue computes a value for each loaded row.

func (*CompositeMembershipModel) ForShare

ForShare locks the selected rows for share inside a transaction.

func (*CompositeMembershipModel) ForShareNoWait

ForShareNoWait locks for share without waiting.

func (*CompositeMembershipModel) ForUpdate

ForUpdate locks the selected rows for update inside a transaction.

func (*CompositeMembershipModel) ForUpdateNoWait

func (x *CompositeMembershipModel) ForUpdateNoWait() *CompositeMembershipModel

ForUpdateNoWait locks for update without waiting.

func (*CompositeMembershipModel) Get

Get returns the first matching row. It returns orm.CodeNoRows when no row matches.

func (*CompositeMembershipModel) GetAccountId

func (x *CompositeMembershipModel) GetAccountId() int64

GetAccountId returns account_id.

func (*CompositeMembershipModel) GetAvg

func (x *CompositeMembershipModel) GetAvg() (float64, error)

GetAvg returns the average of the column selected with Avg<Col>.

func (*CompositeMembershipModel) GetCount

func (x *CompositeMembershipModel) GetCount() (int64, error)

GetCount returns the number of matching rows.

func (*CompositeMembershipModel) GetQuery

func (x *CompositeMembershipModel) GetQuery() (*orm.Statement, error)

GetQuery returns the statement of Gets without executing it.

func (*CompositeMembershipModel) GetRole

func (x *CompositeMembershipModel) GetRole() string

GetRole returns role.

func (*CompositeMembershipModel) GetSum

func (x *CompositeMembershipModel) GetSum() (float64, error)

GetSum returns the sum of the column selected with Sum<Col>.

func (*CompositeMembershipModel) GetTenantId

func (x *CompositeMembershipModel) GetTenantId() int64

GetTenantId returns tenant_id.

func (*CompositeMembershipModel) Gets

Gets returns the matching rows.

func (*CompositeMembershipModel) GetsCount

func (x *CompositeMembershipModel) GetsCount() (*orm.GroupRows, error)

GetsCount returns grouped rows with row_count.

func (*CompositeMembershipModel) GetsPage

func (x *CompositeMembershipModel) GetsPage(page, perPage int) (*orm.Page[*CompositeMembershipModel], error)

GetsPage returns one page of matching rows.

func (*CompositeMembershipModel) GroupByAccountId

func (x *CompositeMembershipModel) GroupByAccountId() *CompositeMembershipModel

func (*CompositeMembershipModel) GroupByRole

func (*CompositeMembershipModel) GroupByTenantId

func (x *CompositeMembershipModel) GroupByTenantId() *CompositeMembershipModel

func (*CompositeMembershipModel) GroupLimit

GroupLimit limits related rows per parent.

func (*CompositeMembershipModel) KeyNameAccountId

func (x *CompositeMembershipModel) KeyNameAccountId() *CompositeMembershipModel

func (*CompositeMembershipModel) KeyNameRole

func (*CompositeMembershipModel) KeyNameTenantId

func (x *CompositeMembershipModel) KeyNameTenantId() *CompositeMembershipModel

func (*CompositeMembershipModel) Limit

func (x *CompositeMembershipModel) Limit(offset, count int) *CompositeMembershipModel

Limit sets the row range.

func (*CompositeMembershipModel) MarshalJSON

func (x *CompositeMembershipModel) MarshalJSON() ([]byte, error)

MarshalJSON writes the row values in order.

func (*CompositeMembershipModel) MatchAccountIdWithAccountId

func (x *CompositeMembershipModel) MatchAccountIdWithAccountId() *CompositeMembershipModel

func (*CompositeMembershipModel) MatchTenantIdWithTenantId

func (x *CompositeMembershipModel) MatchTenantIdWithTenantId() *CompositeMembershipModel

func (*CompositeMembershipModel) MinusAccountId

func (*CompositeMembershipModel) MinusTenantId

func (*CompositeMembershipModel) Not

Not opens a negated group, NOT (…), as the first condition or after a connector written as a separate call.

func (*CompositeMembershipModel) On

On sets the join ON conditions.

func (*CompositeMembershipModel) Or

Or joins the next condition with OR, opens an OR group with a callback, or places the conditions of a joined model.

func (*CompositeMembershipModel) OrNot

OrNot opens a negated group joined with OR.

func (*CompositeMembershipModel) OrderByAccountIdAsc

func (x *CompositeMembershipModel) OrderByAccountIdAsc(fn ...orm.Func) *CompositeMembershipModel

func (*CompositeMembershipModel) OrderByAccountIdDesc

func (x *CompositeMembershipModel) OrderByAccountIdDesc(fn ...orm.Func) *CompositeMembershipModel

func (*CompositeMembershipModel) OrderByRandom

OrderByRandom orders rows randomly.

func (*CompositeMembershipModel) OrderByRoleAsc

func (x *CompositeMembershipModel) OrderByRoleAsc(fn ...orm.Func) *CompositeMembershipModel

func (*CompositeMembershipModel) OrderByRoleDesc

func (x *CompositeMembershipModel) OrderByRoleDesc(fn ...orm.Func) *CompositeMembershipModel

func (*CompositeMembershipModel) OrderByTenantIdAsc

func (x *CompositeMembershipModel) OrderByTenantIdAsc(fn ...orm.Func) *CompositeMembershipModel

func (*CompositeMembershipModel) OrderByTenantIdDesc

func (x *CompositeMembershipModel) OrderByTenantIdDesc(fn ...orm.Func) *CompositeMembershipModel

func (*CompositeMembershipModel) Orm_

func (x *CompositeMembershipModel) Orm_() *orm.Core

func (*CompositeMembershipModel) ParentNode

ParentNode merges the related row into the parent row.

func (*CompositeMembershipModel) PlusAccountId

func (*CompositeMembershipModel) PlusTenantId

func (*CompositeMembershipModel) Relation

Relation attaches one related row loaded by a separate query.

func (*CompositeMembershipModel) Relations

Relations attaches related rows loaded by a separate query.

func (*CompositeMembershipModel) RemoveAllColumns

func (x *CompositeMembershipModel) RemoveAllColumns() *CompositeMembershipModel

RemoveAllColumns keeps only primary and foreign keys.

func (*CompositeMembershipModel) RemoveColumnAccountId

func (x *CompositeMembershipModel) RemoveColumnAccountId() *CompositeMembershipModel

func (*CompositeMembershipModel) RemoveColumnRole

func (x *CompositeMembershipModel) RemoveColumnRole() *CompositeMembershipModel

func (*CompositeMembershipModel) RemoveColumnTenantId

func (x *CompositeMembershipModel) RemoveColumnTenantId() *CompositeMembershipModel

func (*CompositeMembershipModel) Restore

Restore restores the soft-deleted row that the set key values name and returns it.

func (*CompositeMembershipModel) Save

Save updates the row when its primary key is known, otherwise creates it.

func (*CompositeMembershipModel) SetAccountId

SetAccountId sets account_id.

func (*CompositeMembershipModel) SetRole

SetRole sets role.

func (*CompositeMembershipModel) SetTenantId

SetTenantId sets tenant_id.

func (*CompositeMembershipModel) SumAccountId

func (*CompositeMembershipModel) SumTenantId

func (*CompositeMembershipModel) TenantId

func (x *CompositeMembershipModel) TenantId[T0 argIntEq](v0 T0) *CompositeMembershipModel

func (*CompositeMembershipModel) ToArray

func (x *CompositeMembershipModel) ToArray() map[string]any

ToArray returns the row values.

func (*CompositeMembershipModel) TupleTenantIdWithAccountId

func (*CompositeMembershipModel) Update

func (x *CompositeMembershipModel) Update(optimistic ...bool) (*CompositeMembershipModel, error)

Update writes the changed columns; Update(true) requires an unchanged updated time.

type CompositeMembershipTenantIdWithAccountId

type CompositeMembershipTenantIdWithAccountId struct {
	TenantId  int64
	AccountId int64
}

CompositeMembershipTenantIdWithAccountId is one value group of tenant_id, account_id.

type HexCellModel

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

HexCellModel is a hex_cell model or row.

func HexCell

func HexCell() *HexCellModel

HexCell creates a hex_cell model.

func (*HexCellModel) AddAllColumns

func (x *HexCellModel) AddAllColumns() *HexCellModel

AddAllColumns selects every column.

func (*HexCellModel) AddColumnLabel

func (x *HexCellModel) AddColumnLabel() *HexCellModel

func (*HexCellModel) AddColumnSeq

func (x *HexCellModel) AddColumnSeq() *HexCellModel

func (*HexCellModel) AddColumnValue

func (x *HexCellModel) AddColumnValue() *HexCellModel

func (*HexCellModel) And

func (x *HexCellModel) And(args ...any) *HexCellModel

And joins the next condition with AND, opens an AND group with a callback, or places the conditions of a joined model.

func (*HexCellModel) AndNot

func (x *HexCellModel) AndNot(fn func(*HexCellModel)) *HexCellModel

AndNot opens a negated group joined with AND.

func (*HexCellModel) AvgSeq

func (x *HexCellModel) AvgSeq() *HexCellModel

func (*HexCellModel) Connect

func (x *HexCellModel) Connect(db *orm.DB) *HexCellModel

Connect sets the connection.

func (*HexCellModel) Create

func (x *HexCellModel) Create() (*HexCellModel, error)

Create inserts the row and returns the created row.

func (*HexCellModel) Creates

func (x *HexCellModel) Creates(rows []*HexCellModel) (int64, error)

Creates inserts rows in one transaction and returns the inserted row count.

func (*HexCellModel) Delete

func (x *HexCellModel) Delete(recursive ...bool) error

Delete deletes the row; Delete(true) first deletes loaded related rows.

func (*HexCellModel) DeleteLock

func (x *HexCellModel) DeleteLock() *HexCellModel

DeleteLock excludes the relation from recursive delete.

func (*HexCellModel) Duplication

func (x *HexCellModel) Duplication(m *HexCellModel) *HexCellModel

Duplication sets the duplicate-key update of the next Create.

func (*HexCellModel) FetchKey

func (x *HexCellModel) FetchKey(fn func(*HexCellModel) any) *HexCellModel

FetchKey computes the collection key of each row.

func (*HexCellModel) FetchValue

func (x *HexCellModel) FetchValue(fn func(*HexCellModel) any) *HexCellModel

FetchValue computes a value for each loaded row.

func (*HexCellModel) ForShare

func (x *HexCellModel) ForShare() *HexCellModel

ForShare locks the selected rows for share inside a transaction.

func (*HexCellModel) ForShareNoWait

func (x *HexCellModel) ForShareNoWait() *HexCellModel

ForShareNoWait locks for share without waiting.

func (*HexCellModel) ForUpdate

func (x *HexCellModel) ForUpdate() *HexCellModel

ForUpdate locks the selected rows for update inside a transaction.

func (*HexCellModel) ForUpdateNoWait

func (x *HexCellModel) ForUpdateNoWait() *HexCellModel

ForUpdateNoWait locks for update without waiting.

func (*HexCellModel) Get

func (x *HexCellModel) Get() (*HexCellModel, error)

Get returns the first matching row. It returns orm.CodeNoRows when no row matches.

func (*HexCellModel) GetAvg

func (x *HexCellModel) GetAvg() (float64, error)

GetAvg returns the average of the column selected with Avg<Col>.

func (*HexCellModel) GetBySeq

func (x *HexCellModel) GetBySeq[T0 argIntEq](v0 T0) (*HexCellModel, error)

func (*HexCellModel) GetCount

func (x *HexCellModel) GetCount() (int64, error)

GetCount returns the number of matching rows.

func (*HexCellModel) GetLabel

func (x *HexCellModel) GetLabel() string

GetLabel returns label.

func (*HexCellModel) GetQuery

func (x *HexCellModel) GetQuery() (*orm.Statement, error)

GetQuery returns the statement of Gets without executing it.

func (*HexCellModel) GetSeq

func (x *HexCellModel) GetSeq() int64

GetSeq returns seq.

func (*HexCellModel) GetSum

func (x *HexCellModel) GetSum() (float64, error)

GetSum returns the sum of the column selected with Sum<Col>.

func (*HexCellModel) GetValue

func (x *HexCellModel) GetValue() *string

GetValue returns value.

func (*HexCellModel) Gets

func (x *HexCellModel) Gets() (*orm.Collection[*HexCellModel], error)

Gets returns the matching rows.

func (*HexCellModel) GetsCount

func (x *HexCellModel) GetsCount() (*orm.GroupRows, error)

GetsCount returns grouped rows with row_count.

func (*HexCellModel) GetsPage

func (x *HexCellModel) GetsPage(page, perPage int) (*orm.Page[*HexCellModel], error)

GetsPage returns one page of matching rows.

func (*HexCellModel) GroupByLabel

func (x *HexCellModel) GroupByLabel() *HexCellModel

func (*HexCellModel) GroupBySeq

func (x *HexCellModel) GroupBySeq() *HexCellModel

func (*HexCellModel) GroupByValue

func (x *HexCellModel) GroupByValue() *HexCellModel

func (*HexCellModel) GroupLimit

func (x *HexCellModel) GroupLimit(n int) *HexCellModel

GroupLimit limits related rows per parent.

func (*HexCellModel) KeyNameLabel

func (x *HexCellModel) KeyNameLabel() *HexCellModel

func (*HexCellModel) KeyNameSeq

func (x *HexCellModel) KeyNameSeq() *HexCellModel

func (*HexCellModel) KeyNameValue

func (x *HexCellModel) KeyNameValue() *HexCellModel

func (*HexCellModel) Limit

func (x *HexCellModel) Limit(offset, count int) *HexCellModel

Limit sets the row range.

func (*HexCellModel) MarshalJSON

func (x *HexCellModel) MarshalJSON() ([]byte, error)

MarshalJSON writes the row values in order.

func (*HexCellModel) MinusSeq

func (x *HexCellModel) MinusSeq(n int64) *HexCellModel

func (*HexCellModel) Not

func (x *HexCellModel) Not(fn func(*HexCellModel)) *HexCellModel

Not opens a negated group, NOT (…), as the first condition or after a connector written as a separate call.

func (*HexCellModel) On

func (x *HexCellModel) On(fn func(*HexCellModel)) *HexCellModel

On sets the join ON conditions.

func (*HexCellModel) Or

func (x *HexCellModel) Or(args ...any) *HexCellModel

Or joins the next condition with OR, opens an OR group with a callback, or places the conditions of a joined model.

func (*HexCellModel) OrNot

func (x *HexCellModel) OrNot(fn func(*HexCellModel)) *HexCellModel

OrNot opens a negated group joined with OR.

func (*HexCellModel) OrderByLabelAsc

func (x *HexCellModel) OrderByLabelAsc(fn ...orm.Func) *HexCellModel

func (*HexCellModel) OrderByLabelDesc

func (x *HexCellModel) OrderByLabelDesc(fn ...orm.Func) *HexCellModel

func (*HexCellModel) OrderByRandom

func (x *HexCellModel) OrderByRandom() *HexCellModel

OrderByRandom orders rows randomly.

func (*HexCellModel) OrderBySeqAsc

func (x *HexCellModel) OrderBySeqAsc(fn ...orm.Func) *HexCellModel

func (*HexCellModel) OrderBySeqDesc

func (x *HexCellModel) OrderBySeqDesc(fn ...orm.Func) *HexCellModel

func (*HexCellModel) OrderByValueAsc

func (x *HexCellModel) OrderByValueAsc(fn ...orm.Func) *HexCellModel

func (*HexCellModel) OrderByValueDesc

func (x *HexCellModel) OrderByValueDesc(fn ...orm.Func) *HexCellModel

func (*HexCellModel) Orm_

func (x *HexCellModel) Orm_() *orm.Core

func (*HexCellModel) ParentNode

func (x *HexCellModel) ParentNode() *HexCellModel

ParentNode merges the related row into the parent row.

func (*HexCellModel) PlusSeq

func (x *HexCellModel) PlusSeq(n int64) *HexCellModel

func (*HexCellModel) Relation

func (x *HexCellModel) Relation(child orm.Model) *HexCellModel

Relation attaches one related row loaded by a separate query.

func (*HexCellModel) Relations

func (x *HexCellModel) Relations(child orm.Model) *HexCellModel

Relations attaches related rows loaded by a separate query.

func (*HexCellModel) RemoveAllColumns

func (x *HexCellModel) RemoveAllColumns() *HexCellModel

RemoveAllColumns keeps only primary and foreign keys.

func (*HexCellModel) RemoveColumnLabel

func (x *HexCellModel) RemoveColumnLabel() *HexCellModel

func (*HexCellModel) RemoveColumnSeq

func (x *HexCellModel) RemoveColumnSeq() *HexCellModel

func (*HexCellModel) RemoveColumnValue

func (x *HexCellModel) RemoveColumnValue() *HexCellModel

func (*HexCellModel) Restore

func (x *HexCellModel) Restore() (*HexCellModel, error)

Restore restores the soft-deleted row that the set key values name and returns it.

func (*HexCellModel) Save

func (x *HexCellModel) Save() (*HexCellModel, error)

Save updates the row when its primary key is known, otherwise creates it.

func (*HexCellModel) Seq

func (x *HexCellModel) Seq[T0 argIntEq](v0 T0) *HexCellModel

func (*HexCellModel) SetLabel

func (x *HexCellModel) SetLabel(v string) *HexCellModel

SetLabel sets label.

func (*HexCellModel) SetSeq

func (x *HexCellModel) SetSeq(v int64) *HexCellModel

SetSeq sets seq.

func (*HexCellModel) SetValue

func (x *HexCellModel) SetValue(v *string) *HexCellModel

SetValue sets value; nil stores NULL.

func (*HexCellModel) SumSeq

func (x *HexCellModel) SumSeq() *HexCellModel

func (*HexCellModel) ToArray

func (x *HexCellModel) ToArray() map[string]any

ToArray returns the row values.

func (*HexCellModel) Update

func (x *HexCellModel) Update(optimistic ...bool) (*HexCellModel, error)

Update writes the changed columns; Update(true) requires an unchanged updated time.

type ProjectModel

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

ProjectModel is a project model or row.

func Project

func Project() *ProjectModel

Project creates a project model.

func (*ProjectModel) AddAllColumns

func (x *ProjectModel) AddAllColumns() *ProjectModel

AddAllColumns selects every column.

func (*ProjectModel) AddColumnName

func (x *ProjectModel) AddColumnName() *ProjectModel

func (*ProjectModel) AddColumnSeq

func (x *ProjectModel) AddColumnSeq() *ProjectModel

func (*ProjectModel) And

func (x *ProjectModel) And(args ...any) *ProjectModel

And joins the next condition with AND, opens an AND group with a callback, or places the conditions of a joined model.

func (*ProjectModel) AndNot

func (x *ProjectModel) AndNot(fn func(*ProjectModel)) *ProjectModel

AndNot opens a negated group joined with AND.

func (*ProjectModel) AvgSeq

func (x *ProjectModel) AvgSeq() *ProjectModel

func (*ProjectModel) Connect

func (x *ProjectModel) Connect(db *orm.DB) *ProjectModel

Connect sets the connection.

func (*ProjectModel) Create

func (x *ProjectModel) Create() (*ProjectModel, error)

Create inserts the row and returns the created row.

func (*ProjectModel) Creates

func (x *ProjectModel) Creates(rows []*ProjectModel) (int64, error)

Creates inserts rows in one transaction and returns the inserted row count.

func (*ProjectModel) Delete

func (x *ProjectModel) Delete(recursive ...bool) error

Delete deletes the row; Delete(true) first deletes loaded related rows.

func (*ProjectModel) DeleteLock

func (x *ProjectModel) DeleteLock() *ProjectModel

DeleteLock excludes the relation from recursive delete.

func (*ProjectModel) Duplication

func (x *ProjectModel) Duplication(m *ProjectModel) *ProjectModel

Duplication sets the duplicate-key update of the next Create.

func (*ProjectModel) FetchKey

func (x *ProjectModel) FetchKey(fn func(*ProjectModel) any) *ProjectModel

FetchKey computes the collection key of each row.

func (*ProjectModel) FetchValue

func (x *ProjectModel) FetchValue(fn func(*ProjectModel) any) *ProjectModel

FetchValue computes a value for each loaded row.

func (*ProjectModel) ForShare

func (x *ProjectModel) ForShare() *ProjectModel

ForShare locks the selected rows for share inside a transaction.

func (*ProjectModel) ForShareNoWait

func (x *ProjectModel) ForShareNoWait() *ProjectModel

ForShareNoWait locks for share without waiting.

func (*ProjectModel) ForUpdate

func (x *ProjectModel) ForUpdate() *ProjectModel

ForUpdate locks the selected rows for update inside a transaction.

func (*ProjectModel) ForUpdateNoWait

func (x *ProjectModel) ForUpdateNoWait() *ProjectModel

ForUpdateNoWait locks for update without waiting.

func (*ProjectModel) Get

func (x *ProjectModel) Get() (*ProjectModel, error)

Get returns the first matching row. It returns orm.CodeNoRows when no row matches.

func (*ProjectModel) GetAvg

func (x *ProjectModel) GetAvg() (float64, error)

GetAvg returns the average of the column selected with Avg<Col>.

func (*ProjectModel) GetCount

func (x *ProjectModel) GetCount() (int64, error)

GetCount returns the number of matching rows.

func (*ProjectModel) GetName

func (x *ProjectModel) GetName() string

GetName returns name.

func (*ProjectModel) GetQuery

func (x *ProjectModel) GetQuery() (*orm.Statement, error)

GetQuery returns the statement of Gets without executing it.

func (*ProjectModel) GetSeq

func (x *ProjectModel) GetSeq() int64

GetSeq returns seq.

func (*ProjectModel) GetSum

func (x *ProjectModel) GetSum() (float64, error)

GetSum returns the sum of the column selected with Sum<Col>.

func (*ProjectModel) Gets

func (x *ProjectModel) Gets() (*orm.Collection[*ProjectModel], error)

Gets returns the matching rows.

func (*ProjectModel) GetsCount

func (x *ProjectModel) GetsCount() (*orm.GroupRows, error)

GetsCount returns grouped rows with row_count.

func (*ProjectModel) GetsPage

func (x *ProjectModel) GetsPage(page, perPage int) (*orm.Page[*ProjectModel], error)

GetsPage returns one page of matching rows.

func (*ProjectModel) GroupByName

func (x *ProjectModel) GroupByName() *ProjectModel

func (*ProjectModel) GroupBySeq

func (x *ProjectModel) GroupBySeq() *ProjectModel

func (*ProjectModel) GroupLimit

func (x *ProjectModel) GroupLimit(n int) *ProjectModel

GroupLimit limits related rows per parent.

func (*ProjectModel) KeyNameName

func (x *ProjectModel) KeyNameName() *ProjectModel

func (*ProjectModel) KeyNameSeq

func (x *ProjectModel) KeyNameSeq() *ProjectModel

func (*ProjectModel) Limit

func (x *ProjectModel) Limit(offset, count int) *ProjectModel

Limit sets the row range.

func (*ProjectModel) MarshalJSON

func (x *ProjectModel) MarshalJSON() ([]byte, error)

MarshalJSON writes the row values in order.

func (*ProjectModel) MinusSeq

func (x *ProjectModel) MinusSeq(n int64) *ProjectModel

func (*ProjectModel) Not

func (x *ProjectModel) Not(fn func(*ProjectModel)) *ProjectModel

Not opens a negated group, NOT (…), as the first condition or after a connector written as a separate call.

func (*ProjectModel) On

func (x *ProjectModel) On(fn func(*ProjectModel)) *ProjectModel

On sets the join ON conditions.

func (*ProjectModel) Or

func (x *ProjectModel) Or(args ...any) *ProjectModel

Or joins the next condition with OR, opens an OR group with a callback, or places the conditions of a joined model.

func (*ProjectModel) OrNot

func (x *ProjectModel) OrNot(fn func(*ProjectModel)) *ProjectModel

OrNot opens a negated group joined with OR.

func (*ProjectModel) OrderByNameAsc

func (x *ProjectModel) OrderByNameAsc(fn ...orm.Func) *ProjectModel

func (*ProjectModel) OrderByNameDesc

func (x *ProjectModel) OrderByNameDesc(fn ...orm.Func) *ProjectModel

func (*ProjectModel) OrderByRandom

func (x *ProjectModel) OrderByRandom() *ProjectModel

OrderByRandom orders rows randomly.

func (*ProjectModel) OrderBySeqAsc

func (x *ProjectModel) OrderBySeqAsc(fn ...orm.Func) *ProjectModel

func (*ProjectModel) OrderBySeqDesc

func (x *ProjectModel) OrderBySeqDesc(fn ...orm.Func) *ProjectModel

func (*ProjectModel) Orm_

func (x *ProjectModel) Orm_() *orm.Core

func (*ProjectModel) ParentNode

func (x *ProjectModel) ParentNode() *ProjectModel

ParentNode merges the related row into the parent row.

func (*ProjectModel) PlusSeq

func (x *ProjectModel) PlusSeq(n int64) *ProjectModel

func (*ProjectModel) Relation

func (x *ProjectModel) Relation(child orm.Model) *ProjectModel

Relation attaches one related row loaded by a separate query.

func (*ProjectModel) Relations

func (x *ProjectModel) Relations(child orm.Model) *ProjectModel

Relations attaches related rows loaded by a separate query.

func (*ProjectModel) RemoveAllColumns

func (x *ProjectModel) RemoveAllColumns() *ProjectModel

RemoveAllColumns keeps only primary and foreign keys.

func (*ProjectModel) RemoveColumnName

func (x *ProjectModel) RemoveColumnName() *ProjectModel

func (*ProjectModel) RemoveColumnSeq

func (x *ProjectModel) RemoveColumnSeq() *ProjectModel

func (*ProjectModel) Restore

func (x *ProjectModel) Restore() (*ProjectModel, error)

Restore restores the soft-deleted row that the set key values name and returns it.

func (*ProjectModel) Save

func (x *ProjectModel) Save() (*ProjectModel, error)

Save updates the row when its primary key is known, otherwise creates it.

func (*ProjectModel) Seq

func (x *ProjectModel) Seq[T0 argIntEq](v0 T0) *ProjectModel

func (*ProjectModel) SetName

func (x *ProjectModel) SetName(v string) *ProjectModel

SetName sets name.

func (*ProjectModel) SetSeq

func (x *ProjectModel) SetSeq(v int64) *ProjectModel

SetSeq sets seq.

func (*ProjectModel) SumSeq

func (x *ProjectModel) SumSeq() *ProjectModel

func (*ProjectModel) ToArray

func (x *ProjectModel) ToArray() map[string]any

ToArray returns the row values.

func (*ProjectModel) Update

func (x *ProjectModel) Update(optimistic ...bool) (*ProjectModel, error)

Update writes the changed columns; Update(true) requires an unchanged updated time.

type ServiceMemberModel

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

ServiceMemberModel is a service_member model or row.

func ServiceMember

func ServiceMember() *ServiceMemberModel

ServiceMember creates a service_member model.

func (*ServiceMemberModel) AddAllColumns

func (x *ServiceMemberModel) AddAllColumns() *ServiceMemberModel

AddAllColumns selects every column.

func (*ServiceMemberModel) AddColumnSeq

func (x *ServiceMemberModel) AddColumnSeq() *ServiceMemberModel

func (*ServiceMemberModel) AddColumnServiceSeq

func (x *ServiceMemberModel) AddColumnServiceSeq() *ServiceMemberModel

func (*ServiceMemberModel) AddColumnUserSeq

func (x *ServiceMemberModel) AddColumnUserSeq() *ServiceMemberModel

func (*ServiceMemberModel) AliasMembers

func (x *ServiceMemberModel) AliasMembers() *ServiceMemberModel

func (*ServiceMemberModel) And

func (x *ServiceMemberModel) And(args ...any) *ServiceMemberModel

And joins the next condition with AND, opens an AND group with a callback, or places the conditions of a joined model.

func (*ServiceMemberModel) AndNot

AndNot opens a negated group joined with AND.

func (*ServiceMemberModel) AvgSeq

func (*ServiceMemberModel) AvgServiceSeq

func (x *ServiceMemberModel) AvgServiceSeq() *ServiceMemberModel

func (*ServiceMemberModel) AvgUserSeq

func (x *ServiceMemberModel) AvgUserSeq() *ServiceMemberModel

func (*ServiceMemberModel) Connect

func (x *ServiceMemberModel) Connect(db *orm.DB) *ServiceMemberModel

Connect sets the connection.

func (*ServiceMemberModel) Create

Create inserts the row and returns the created row.

func (*ServiceMemberModel) Creates

func (x *ServiceMemberModel) Creates(rows []*ServiceMemberModel) (int64, error)

Creates inserts rows in one transaction and returns the inserted row count.

func (*ServiceMemberModel) Delete

func (x *ServiceMemberModel) Delete(recursive ...bool) error

Delete deletes the row; Delete(true) first deletes loaded related rows.

func (*ServiceMemberModel) DeleteLock

func (x *ServiceMemberModel) DeleteLock() *ServiceMemberModel

DeleteLock excludes the relation from recursive delete.

func (*ServiceMemberModel) Duplication

Duplication sets the duplicate-key update of the next Create.

func (*ServiceMemberModel) FetchKey

FetchKey computes the collection key of each row.

func (*ServiceMemberModel) FetchValue

func (x *ServiceMemberModel) FetchValue(fn func(*ServiceMemberModel) any) *ServiceMemberModel

FetchValue computes a value for each loaded row.

func (*ServiceMemberModel) ForShare

func (x *ServiceMemberModel) ForShare() *ServiceMemberModel

ForShare locks the selected rows for share inside a transaction.

func (*ServiceMemberModel) ForShareNoWait

func (x *ServiceMemberModel) ForShareNoWait() *ServiceMemberModel

ForShareNoWait locks for share without waiting.

func (*ServiceMemberModel) ForUpdate

func (x *ServiceMemberModel) ForUpdate() *ServiceMemberModel

ForUpdate locks the selected rows for update inside a transaction.

func (*ServiceMemberModel) ForUpdateNoWait

func (x *ServiceMemberModel) ForUpdateNoWait() *ServiceMemberModel

ForUpdateNoWait locks for update without waiting.

func (*ServiceMemberModel) ForceIndexIxServiceMemberService

func (x *ServiceMemberModel) ForceIndexIxServiceMemberService() *ServiceMemberModel

func (*ServiceMemberModel) ForceIndexIxServiceMemberUser

func (x *ServiceMemberModel) ForceIndexIxServiceMemberUser() *ServiceMemberModel

func (*ServiceMemberModel) Get

Get returns the first matching row. It returns orm.CodeNoRows when no row matches.

func (*ServiceMemberModel) GetAvg

func (x *ServiceMemberModel) GetAvg() (float64, error)

GetAvg returns the average of the column selected with Avg<Col>.

func (*ServiceMemberModel) GetCount

func (x *ServiceMemberModel) GetCount() (int64, error)

GetCount returns the number of matching rows.

func (*ServiceMemberModel) GetCountByServiceSeq

func (x *ServiceMemberModel) GetCountByServiceSeq[T0 argIntEq](v0 T0) (int64, error)

func (*ServiceMemberModel) GetQuery

func (x *ServiceMemberModel) GetQuery() (*orm.Statement, error)

GetQuery returns the statement of Gets without executing it.

func (*ServiceMemberModel) GetSeq

func (x *ServiceMemberModel) GetSeq() int64

GetSeq returns seq.

func (*ServiceMemberModel) GetServiceSeq

func (x *ServiceMemberModel) GetServiceSeq() int64

GetServiceSeq returns service_seq.

func (*ServiceMemberModel) GetSum

func (x *ServiceMemberModel) GetSum() (float64, error)

GetSum returns the sum of the column selected with Sum<Col>.

func (*ServiceMemberModel) GetUserSeq

func (x *ServiceMemberModel) GetUserSeq() int64

GetUserSeq returns user_seq.

func (*ServiceMemberModel) Gets

Gets returns the matching rows.

func (*ServiceMemberModel) GetsCount

func (x *ServiceMemberModel) GetsCount() (*orm.GroupRows, error)

GetsCount returns grouped rows with row_count.

func (*ServiceMemberModel) GetsPage

func (x *ServiceMemberModel) GetsPage(page, perPage int) (*orm.Page[*ServiceMemberModel], error)

GetsPage returns one page of matching rows.

func (*ServiceMemberModel) GroupBySeq

func (x *ServiceMemberModel) GroupBySeq() *ServiceMemberModel

func (*ServiceMemberModel) GroupByServiceSeq

func (x *ServiceMemberModel) GroupByServiceSeq() *ServiceMemberModel

func (*ServiceMemberModel) GroupByUserSeq

func (x *ServiceMemberModel) GroupByUserSeq() *ServiceMemberModel

func (*ServiceMemberModel) GroupLimit

func (x *ServiceMemberModel) GroupLimit(n int) *ServiceMemberModel

GroupLimit limits related rows per parent.

func (*ServiceMemberModel) KeyNameSeq

func (x *ServiceMemberModel) KeyNameSeq() *ServiceMemberModel

func (*ServiceMemberModel) KeyNameServiceSeq

func (x *ServiceMemberModel) KeyNameServiceSeq() *ServiceMemberModel

func (*ServiceMemberModel) KeyNameUserSeq

func (x *ServiceMemberModel) KeyNameUserSeq() *ServiceMemberModel

func (*ServiceMemberModel) Limit

func (x *ServiceMemberModel) Limit(offset, count int) *ServiceMemberModel

Limit sets the row range.

func (*ServiceMemberModel) MarshalJSON

func (x *ServiceMemberModel) MarshalJSON() ([]byte, error)

MarshalJSON writes the row values in order.

func (*ServiceMemberModel) MatchSeqWithServiceSeq

func (x *ServiceMemberModel) MatchSeqWithServiceSeq() *ServiceMemberModel

func (*ServiceMemberModel) MatchServiceSeqWithServiceSeq

func (x *ServiceMemberModel) MatchServiceSeqWithServiceSeq() *ServiceMemberModel

func (*ServiceMemberModel) MatchUserSeqWithUserSeq

func (x *ServiceMemberModel) MatchUserSeqWithUserSeq() *ServiceMemberModel

func (*ServiceMemberModel) MinusSeq

func (*ServiceMemberModel) MinusServiceSeq

func (x *ServiceMemberModel) MinusServiceSeq(n int64) *ServiceMemberModel

func (*ServiceMemberModel) MinusUserSeq

func (x *ServiceMemberModel) MinusUserSeq(n int64) *ServiceMemberModel

func (*ServiceMemberModel) Not

Not opens a negated group, NOT (…), as the first condition or after a connector written as a separate call.

func (*ServiceMemberModel) On

On sets the join ON conditions.

func (*ServiceMemberModel) Or

func (x *ServiceMemberModel) Or(args ...any) *ServiceMemberModel

Or joins the next condition with OR, opens an OR group with a callback, or places the conditions of a joined model.

func (*ServiceMemberModel) OrNot

OrNot opens a negated group joined with OR.

func (*ServiceMemberModel) OrderByRandom

func (x *ServiceMemberModel) OrderByRandom() *ServiceMemberModel

OrderByRandom orders rows randomly.

func (*ServiceMemberModel) OrderBySeqAsc

func (x *ServiceMemberModel) OrderBySeqAsc(fn ...orm.Func) *ServiceMemberModel

func (*ServiceMemberModel) OrderBySeqDesc

func (x *ServiceMemberModel) OrderBySeqDesc(fn ...orm.Func) *ServiceMemberModel

func (*ServiceMemberModel) OrderByServiceSeqAsc

func (x *ServiceMemberModel) OrderByServiceSeqAsc(fn ...orm.Func) *ServiceMemberModel

func (*ServiceMemberModel) OrderByServiceSeqDesc

func (x *ServiceMemberModel) OrderByServiceSeqDesc(fn ...orm.Func) *ServiceMemberModel

func (*ServiceMemberModel) OrderByUserSeqAsc

func (x *ServiceMemberModel) OrderByUserSeqAsc(fn ...orm.Func) *ServiceMemberModel

func (*ServiceMemberModel) OrderByUserSeqDesc

func (x *ServiceMemberModel) OrderByUserSeqDesc(fn ...orm.Func) *ServiceMemberModel

func (*ServiceMemberModel) Orm_

func (x *ServiceMemberModel) Orm_() *orm.Core

func (*ServiceMemberModel) ParentNode

func (x *ServiceMemberModel) ParentNode() *ServiceMemberModel

ParentNode merges the related row into the parent row.

func (*ServiceMemberModel) PlusSeq

func (*ServiceMemberModel) PlusServiceSeq

func (x *ServiceMemberModel) PlusServiceSeq(n int64) *ServiceMemberModel

func (*ServiceMemberModel) PlusUserSeq

func (x *ServiceMemberModel) PlusUserSeq(n int64) *ServiceMemberModel

func (*ServiceMemberModel) Relation

func (x *ServiceMemberModel) Relation(child orm.Model) *ServiceMemberModel

Relation attaches one related row loaded by a separate query.

func (*ServiceMemberModel) Relations

func (x *ServiceMemberModel) Relations(child orm.Model) *ServiceMemberModel

Relations attaches related rows loaded by a separate query.

func (*ServiceMemberModel) RemoveAllColumns

func (x *ServiceMemberModel) RemoveAllColumns() *ServiceMemberModel

RemoveAllColumns keeps only primary and foreign keys.

func (*ServiceMemberModel) RemoveColumnSeq

func (x *ServiceMemberModel) RemoveColumnSeq() *ServiceMemberModel

func (*ServiceMemberModel) RemoveColumnServiceSeq

func (x *ServiceMemberModel) RemoveColumnServiceSeq() *ServiceMemberModel

func (*ServiceMemberModel) RemoveColumnUserSeq

func (x *ServiceMemberModel) RemoveColumnUserSeq() *ServiceMemberModel

func (*ServiceMemberModel) Restore

func (x *ServiceMemberModel) Restore() (*ServiceMemberModel, error)

Restore restores the soft-deleted row that the set key values name and returns it.

func (*ServiceMemberModel) Save

Save updates the row when its primary key is known, otherwise creates it.

func (*ServiceMemberModel) Seq

func (x *ServiceMemberModel) Seq[T0 argIntEq](v0 T0) *ServiceMemberModel

func (*ServiceMemberModel) ServiceSeq

func (x *ServiceMemberModel) ServiceSeq[T0 argIntEq](v0 T0) *ServiceMemberModel

func (*ServiceMemberModel) SetSeq

SetSeq sets seq.

func (*ServiceMemberModel) SetServiceSeq

func (x *ServiceMemberModel) SetServiceSeq(v int64) *ServiceMemberModel

SetServiceSeq sets service_seq.

func (*ServiceMemberModel) SetUserSeq

func (x *ServiceMemberModel) SetUserSeq(v int64) *ServiceMemberModel

SetUserSeq sets user_seq.

func (*ServiceMemberModel) SumSeq

func (*ServiceMemberModel) SumServiceSeq

func (x *ServiceMemberModel) SumServiceSeq() *ServiceMemberModel

func (*ServiceMemberModel) SumUserSeq

func (x *ServiceMemberModel) SumUserSeq() *ServiceMemberModel

func (*ServiceMemberModel) ToArray

func (x *ServiceMemberModel) ToArray() map[string]any

ToArray returns the row values.

func (*ServiceMemberModel) Update

func (x *ServiceMemberModel) Update(optimistic ...bool) (*ServiceMemberModel, error)

Update writes the changed columns; Update(true) requires an unchanged updated time.

func (*ServiceMemberModel) UserSeq

func (x *ServiceMemberModel) UserSeq[T0 argIntEq](v0 T0) *ServiceMemberModel

type ServiceModel

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

ServiceModel is a service model or row.

func Service

func Service() *ServiceModel

Service creates a service model.

func (*ServiceModel) AddAllColumns

func (x *ServiceModel) AddAllColumns() *ServiceModel

AddAllColumns selects every column.

func (*ServiceModel) AddColumnName

func (x *ServiceModel) AddColumnName() *ServiceModel

func (*ServiceModel) AddColumnSeq

func (x *ServiceModel) AddColumnSeq() *ServiceModel

func (*ServiceModel) AliasOwnerService

func (x *ServiceModel) AliasOwnerService() *ServiceModel

func (*ServiceModel) And

func (x *ServiceModel) And(args ...any) *ServiceModel

And joins the next condition with AND, opens an AND group with a callback, or places the conditions of a joined model.

func (*ServiceModel) AndNot

func (x *ServiceModel) AndNot(fn func(*ServiceModel)) *ServiceModel

AndNot opens a negated group joined with AND.

func (*ServiceModel) AvgSeq

func (x *ServiceModel) AvgSeq() *ServiceModel

func (*ServiceModel) Connect

func (x *ServiceModel) Connect(db *orm.DB) *ServiceModel

Connect sets the connection.

func (*ServiceModel) Create

func (x *ServiceModel) Create() (*ServiceModel, error)

Create inserts the row and returns the created row.

func (*ServiceModel) Creates

func (x *ServiceModel) Creates(rows []*ServiceModel) (int64, error)

Creates inserts rows in one transaction and returns the inserted row count.

func (*ServiceModel) Delete

func (x *ServiceModel) Delete(recursive ...bool) error

Delete deletes the row; Delete(true) first deletes loaded related rows.

func (*ServiceModel) DeleteLock

func (x *ServiceModel) DeleteLock() *ServiceModel

DeleteLock excludes the relation from recursive delete.

func (*ServiceModel) Duplication

func (x *ServiceModel) Duplication(m *ServiceModel) *ServiceModel

Duplication sets the duplicate-key update of the next Create.

func (*ServiceModel) FetchKey

func (x *ServiceModel) FetchKey(fn func(*ServiceModel) any) *ServiceModel

FetchKey computes the collection key of each row.

func (*ServiceModel) FetchValue

func (x *ServiceModel) FetchValue(fn func(*ServiceModel) any) *ServiceModel

FetchValue computes a value for each loaded row.

func (*ServiceModel) ForShare

func (x *ServiceModel) ForShare() *ServiceModel

ForShare locks the selected rows for share inside a transaction.

func (*ServiceModel) ForShareNoWait

func (x *ServiceModel) ForShareNoWait() *ServiceModel

ForShareNoWait locks for share without waiting.

func (*ServiceModel) ForUpdate

func (x *ServiceModel) ForUpdate() *ServiceModel

ForUpdate locks the selected rows for update inside a transaction.

func (*ServiceModel) ForUpdateNoWait

func (x *ServiceModel) ForUpdateNoWait() *ServiceModel

ForUpdateNoWait locks for update without waiting.

func (*ServiceModel) Get

func (x *ServiceModel) Get() (*ServiceModel, error)

Get returns the first matching row. It returns orm.CodeNoRows when no row matches.

func (*ServiceModel) GetAvg

func (x *ServiceModel) GetAvg() (float64, error)

GetAvg returns the average of the column selected with Avg<Col>.

func (*ServiceModel) GetBySeq

func (x *ServiceModel) GetBySeq[T0 argIntEq](v0 T0) (*ServiceModel, error)

func (*ServiceModel) GetCount

func (x *ServiceModel) GetCount() (int64, error)

GetCount returns the number of matching rows.

func (*ServiceModel) GetName

func (x *ServiceModel) GetName() string

GetName returns name.

func (*ServiceModel) GetQuery

func (x *ServiceModel) GetQuery() (*orm.Statement, error)

GetQuery returns the statement of Gets without executing it.

func (*ServiceModel) GetSeq

func (x *ServiceModel) GetSeq() int64

GetSeq returns seq.

func (*ServiceModel) GetServiceMemberModels

func (x *ServiceModel) GetServiceMemberModels() (*orm.Collection[*ServiceMemberModel], error)

GetServiceMemberModels returns the service_member relation result.

func (*ServiceModel) GetSum

func (x *ServiceModel) GetSum() (float64, error)

GetSum returns the sum of the column selected with Sum<Col>.

func (*ServiceModel) Gets

func (x *ServiceModel) Gets() (*orm.Collection[*ServiceModel], error)

Gets returns the matching rows.

func (*ServiceModel) GetsCount

func (x *ServiceModel) GetsCount() (*orm.GroupRows, error)

GetsCount returns grouped rows with row_count.

func (*ServiceModel) GetsPage

func (x *ServiceModel) GetsPage(page, perPage int) (*orm.Page[*ServiceModel], error)

GetsPage returns one page of matching rows.

func (*ServiceModel) GroupByName

func (x *ServiceModel) GroupByName() *ServiceModel

func (*ServiceModel) GroupBySeq

func (x *ServiceModel) GroupBySeq() *ServiceModel

func (*ServiceModel) GroupLimit

func (x *ServiceModel) GroupLimit(n int) *ServiceModel

GroupLimit limits related rows per parent.

func (*ServiceModel) GtSeq

func (x *ServiceModel) GtSeq[T0 argIntCmp](v0 T0) *ServiceModel

func (*ServiceModel) KeyNameName

func (x *ServiceModel) KeyNameName() *ServiceModel

func (*ServiceModel) KeyNameSeq

func (x *ServiceModel) KeyNameSeq() *ServiceModel

func (*ServiceModel) Limit

func (x *ServiceModel) Limit(offset, count int) *ServiceModel

Limit sets the row range.

func (*ServiceModel) MarshalJSON

func (x *ServiceModel) MarshalJSON() ([]byte, error)

MarshalJSON writes the row values in order.

func (*ServiceModel) MatchServiceSeqWithSeq

func (x *ServiceModel) MatchServiceSeqWithSeq() *ServiceModel

func (*ServiceModel) MinusSeq

func (x *ServiceModel) MinusSeq(n int64) *ServiceModel

func (*ServiceModel) Name

func (x *ServiceModel) Name[T0 argStringEq](v0 T0) *ServiceModel

func (*ServiceModel) Not

func (x *ServiceModel) Not(fn func(*ServiceModel)) *ServiceModel

Not opens a negated group, NOT (…), as the first condition or after a connector written as a separate call.

func (*ServiceModel) On

func (x *ServiceModel) On(fn func(*ServiceModel)) *ServiceModel

On sets the join ON conditions.

func (*ServiceModel) Or

func (x *ServiceModel) Or(args ...any) *ServiceModel

Or joins the next condition with OR, opens an OR group with a callback, or places the conditions of a joined model.

func (*ServiceModel) OrNot

func (x *ServiceModel) OrNot(fn func(*ServiceModel)) *ServiceModel

OrNot opens a negated group joined with OR.

func (*ServiceModel) OrderByNameAsc

func (x *ServiceModel) OrderByNameAsc(fn ...orm.Func) *ServiceModel

func (*ServiceModel) OrderByNameDesc

func (x *ServiceModel) OrderByNameDesc(fn ...orm.Func) *ServiceModel

func (*ServiceModel) OrderByRandom

func (x *ServiceModel) OrderByRandom() *ServiceModel

OrderByRandom orders rows randomly.

func (*ServiceModel) OrderBySeqAsc

func (x *ServiceModel) OrderBySeqAsc(fn ...orm.Func) *ServiceModel

func (*ServiceModel) OrderBySeqDesc

func (x *ServiceModel) OrderBySeqDesc(fn ...orm.Func) *ServiceModel

func (*ServiceModel) Orm_

func (x *ServiceModel) Orm_() *orm.Core

func (*ServiceModel) ParentNode

func (x *ServiceModel) ParentNode() *ServiceModel

ParentNode merges the related row into the parent row.

func (*ServiceModel) PlusSeq

func (x *ServiceModel) PlusSeq(n int64) *ServiceModel

func (*ServiceModel) Relation

func (x *ServiceModel) Relation(child orm.Model) *ServiceModel

Relation attaches one related row loaded by a separate query.

func (*ServiceModel) Relations

func (x *ServiceModel) Relations(child orm.Model) *ServiceModel

Relations attaches related rows loaded by a separate query.

func (*ServiceModel) RemoveAllColumns

func (x *ServiceModel) RemoveAllColumns() *ServiceModel

RemoveAllColumns keeps only primary and foreign keys.

func (*ServiceModel) RemoveColumnName

func (x *ServiceModel) RemoveColumnName() *ServiceModel

func (*ServiceModel) RemoveColumnSeq

func (x *ServiceModel) RemoveColumnSeq() *ServiceModel

func (*ServiceModel) Restore

func (x *ServiceModel) Restore() (*ServiceModel, error)

Restore restores the soft-deleted row that the set key values name and returns it.

func (*ServiceModel) Save

func (x *ServiceModel) Save() (*ServiceModel, error)

Save updates the row when its primary key is known, otherwise creates it.

func (*ServiceModel) Seq

func (x *ServiceModel) Seq[T0 argIntEq](v0 T0) *ServiceModel

func (*ServiceModel) SetName

func (x *ServiceModel) SetName(v string) *ServiceModel

SetName sets name.

func (*ServiceModel) SetSeq

func (x *ServiceModel) SetSeq(v int64) *ServiceModel

SetSeq sets seq.

func (*ServiceModel) SumSeq

func (x *ServiceModel) SumSeq() *ServiceModel

func (*ServiceModel) ToArray

func (x *ServiceModel) ToArray() map[string]any

ToArray returns the row values.

func (*ServiceModel) Update

func (x *ServiceModel) Update(optimistic ...bool) (*ServiceModel, error)

Update writes the changed columns; Update(true) requires an unchanged updated time.

type ServiceRegionModel

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

ServiceRegionModel is a service_region model or row.

func ServiceRegion

func ServiceRegion() *ServiceRegionModel

ServiceRegion creates a service_region model.

func (*ServiceRegionModel) AddAllColumns

func (x *ServiceRegionModel) AddAllColumns() *ServiceRegionModel

AddAllColumns selects every column.

func (*ServiceRegionModel) AddColumnName

func (x *ServiceRegionModel) AddColumnName() *ServiceRegionModel

func (*ServiceRegionModel) AddColumnSeq

func (x *ServiceRegionModel) AddColumnSeq() *ServiceRegionModel

func (*ServiceRegionModel) AddColumnServiceSeq

func (x *ServiceRegionModel) AddColumnServiceSeq() *ServiceRegionModel

func (*ServiceRegionModel) AliasModule

func (x *ServiceRegionModel) AliasModule() *ServiceRegionModel

func (*ServiceRegionModel) And

func (x *ServiceRegionModel) And(args ...any) *ServiceRegionModel

And joins the next condition with AND, opens an AND group with a callback, or places the conditions of a joined model.

func (*ServiceRegionModel) AndNot

AndNot opens a negated group joined with AND.

func (*ServiceRegionModel) AvgSeq

func (*ServiceRegionModel) AvgServiceSeq

func (x *ServiceRegionModel) AvgServiceSeq() *ServiceRegionModel

func (*ServiceRegionModel) Connect

func (x *ServiceRegionModel) Connect(db *orm.DB) *ServiceRegionModel

Connect sets the connection.

func (*ServiceRegionModel) Create

Create inserts the row and returns the created row.

func (*ServiceRegionModel) Creates

func (x *ServiceRegionModel) Creates(rows []*ServiceRegionModel) (int64, error)

Creates inserts rows in one transaction and returns the inserted row count.

func (*ServiceRegionModel) Delete

func (x *ServiceRegionModel) Delete(recursive ...bool) error

Delete deletes the row; Delete(true) first deletes loaded related rows.

func (*ServiceRegionModel) DeleteLock

func (x *ServiceRegionModel) DeleteLock() *ServiceRegionModel

DeleteLock excludes the relation from recursive delete.

func (*ServiceRegionModel) Duplication

Duplication sets the duplicate-key update of the next Create.

func (*ServiceRegionModel) FetchKey

FetchKey computes the collection key of each row.

func (*ServiceRegionModel) FetchValue

func (x *ServiceRegionModel) FetchValue(fn func(*ServiceRegionModel) any) *ServiceRegionModel

FetchValue computes a value for each loaded row.

func (*ServiceRegionModel) ForShare

func (x *ServiceRegionModel) ForShare() *ServiceRegionModel

ForShare locks the selected rows for share inside a transaction.

func (*ServiceRegionModel) ForShareNoWait

func (x *ServiceRegionModel) ForShareNoWait() *ServiceRegionModel

ForShareNoWait locks for share without waiting.

func (*ServiceRegionModel) ForUpdate

func (x *ServiceRegionModel) ForUpdate() *ServiceRegionModel

ForUpdate locks the selected rows for update inside a transaction.

func (*ServiceRegionModel) ForUpdateNoWait

func (x *ServiceRegionModel) ForUpdateNoWait() *ServiceRegionModel

ForUpdateNoWait locks for update without waiting.

func (*ServiceRegionModel) ForceIndexIxServiceRegionService

func (x *ServiceRegionModel) ForceIndexIxServiceRegionService() *ServiceRegionModel

func (*ServiceRegionModel) Get

Get returns the first matching row. It returns orm.CodeNoRows when no row matches.

func (*ServiceRegionModel) GetAvg

func (x *ServiceRegionModel) GetAvg() (float64, error)

GetAvg returns the average of the column selected with Avg<Col>.

func (*ServiceRegionModel) GetCount

func (x *ServiceRegionModel) GetCount() (int64, error)

GetCount returns the number of matching rows.

func (*ServiceRegionModel) GetName

func (x *ServiceRegionModel) GetName() string

GetName returns name.

func (*ServiceRegionModel) GetQuery

func (x *ServiceRegionModel) GetQuery() (*orm.Statement, error)

GetQuery returns the statement of Gets without executing it.

func (*ServiceRegionModel) GetSeq

func (x *ServiceRegionModel) GetSeq() int64

GetSeq returns seq.

func (*ServiceRegionModel) GetServiceSeq

func (x *ServiceRegionModel) GetServiceSeq() int64

GetServiceSeq returns service_seq.

func (*ServiceRegionModel) GetSum

func (x *ServiceRegionModel) GetSum() (float64, error)

GetSum returns the sum of the column selected with Sum<Col>.

func (*ServiceRegionModel) Gets

Gets returns the matching rows.

func (*ServiceRegionModel) GetsCount

func (x *ServiceRegionModel) GetsCount() (*orm.GroupRows, error)

GetsCount returns grouped rows with row_count.

func (*ServiceRegionModel) GetsPage

func (x *ServiceRegionModel) GetsPage(page, perPage int) (*orm.Page[*ServiceRegionModel], error)

GetsPage returns one page of matching rows.

func (*ServiceRegionModel) GroupByName

func (x *ServiceRegionModel) GroupByName() *ServiceRegionModel

func (*ServiceRegionModel) GroupBySeq

func (x *ServiceRegionModel) GroupBySeq() *ServiceRegionModel

func (*ServiceRegionModel) GroupByServiceSeq

func (x *ServiceRegionModel) GroupByServiceSeq() *ServiceRegionModel

func (*ServiceRegionModel) GroupLimit

func (x *ServiceRegionModel) GroupLimit(n int) *ServiceRegionModel

GroupLimit limits related rows per parent.

func (*ServiceRegionModel) KeyNameName

func (x *ServiceRegionModel) KeyNameName() *ServiceRegionModel

func (*ServiceRegionModel) KeyNameSeq

func (x *ServiceRegionModel) KeyNameSeq() *ServiceRegionModel

func (*ServiceRegionModel) KeyNameServiceSeq

func (x *ServiceRegionModel) KeyNameServiceSeq() *ServiceRegionModel

func (*ServiceRegionModel) Limit

func (x *ServiceRegionModel) Limit(offset, count int) *ServiceRegionModel

Limit sets the row range.

func (*ServiceRegionModel) MarshalJSON

func (x *ServiceRegionModel) MarshalJSON() ([]byte, error)

MarshalJSON writes the row values in order.

func (*ServiceRegionModel) MatchServiceRegionSeqWithSeq

func (x *ServiceRegionModel) MatchServiceRegionSeqWithSeq() *ServiceRegionModel

func (*ServiceRegionModel) MinusSeq

func (*ServiceRegionModel) MinusServiceSeq

func (x *ServiceRegionModel) MinusServiceSeq(n int64) *ServiceRegionModel

func (*ServiceRegionModel) Not

Not opens a negated group, NOT (…), as the first condition or after a connector written as a separate call.

func (*ServiceRegionModel) On

On sets the join ON conditions.

func (*ServiceRegionModel) Or

func (x *ServiceRegionModel) Or(args ...any) *ServiceRegionModel

Or joins the next condition with OR, opens an OR group with a callback, or places the conditions of a joined model.

func (*ServiceRegionModel) OrNot

OrNot opens a negated group joined with OR.

func (*ServiceRegionModel) OrderByNameAsc

func (x *ServiceRegionModel) OrderByNameAsc(fn ...orm.Func) *ServiceRegionModel

func (*ServiceRegionModel) OrderByNameDesc

func (x *ServiceRegionModel) OrderByNameDesc(fn ...orm.Func) *ServiceRegionModel

func (*ServiceRegionModel) OrderByRandom

func (x *ServiceRegionModel) OrderByRandom() *ServiceRegionModel

OrderByRandom orders rows randomly.

func (*ServiceRegionModel) OrderBySeqAsc

func (x *ServiceRegionModel) OrderBySeqAsc(fn ...orm.Func) *ServiceRegionModel

func (*ServiceRegionModel) OrderBySeqDesc

func (x *ServiceRegionModel) OrderBySeqDesc(fn ...orm.Func) *ServiceRegionModel

func (*ServiceRegionModel) OrderByServiceSeqAsc

func (x *ServiceRegionModel) OrderByServiceSeqAsc(fn ...orm.Func) *ServiceRegionModel

func (*ServiceRegionModel) OrderByServiceSeqDesc

func (x *ServiceRegionModel) OrderByServiceSeqDesc(fn ...orm.Func) *ServiceRegionModel

func (*ServiceRegionModel) Orm_

func (x *ServiceRegionModel) Orm_() *orm.Core

func (*ServiceRegionModel) ParentNode

func (x *ServiceRegionModel) ParentNode() *ServiceRegionModel

ParentNode merges the related row into the parent row.

func (*ServiceRegionModel) PlusSeq

func (*ServiceRegionModel) PlusServiceSeq

func (x *ServiceRegionModel) PlusServiceSeq(n int64) *ServiceRegionModel

func (*ServiceRegionModel) PossibleIsClose

func (x *ServiceRegionModel) PossibleIsClose(v any) *ServiceRegionModel

func (*ServiceRegionModel) Relation

func (x *ServiceRegionModel) Relation(child orm.Model) *ServiceRegionModel

Relation attaches one related row loaded by a separate query.

func (*ServiceRegionModel) Relations

func (x *ServiceRegionModel) Relations(child orm.Model) *ServiceRegionModel

Relations attaches related rows loaded by a separate query.

func (*ServiceRegionModel) RemoveAllColumns

func (x *ServiceRegionModel) RemoveAllColumns() *ServiceRegionModel

RemoveAllColumns keeps only primary and foreign keys.

func (*ServiceRegionModel) RemoveColumnName

func (x *ServiceRegionModel) RemoveColumnName() *ServiceRegionModel

func (*ServiceRegionModel) RemoveColumnSeq

func (x *ServiceRegionModel) RemoveColumnSeq() *ServiceRegionModel

func (*ServiceRegionModel) RemoveColumnServiceSeq

func (x *ServiceRegionModel) RemoveColumnServiceSeq() *ServiceRegionModel

func (*ServiceRegionModel) Restore

func (x *ServiceRegionModel) Restore() (*ServiceRegionModel, error)

Restore restores the soft-deleted row that the set key values name and returns it.

func (*ServiceRegionModel) Save

Save updates the row when its primary key is known, otherwise creates it.

func (*ServiceRegionModel) Seq

func (x *ServiceRegionModel) Seq[T0 argIntEq](v0 T0) *ServiceRegionModel

func (*ServiceRegionModel) ServiceSeq

func (x *ServiceRegionModel) ServiceSeq[T0 argIntEq](v0 T0) *ServiceRegionModel

func (*ServiceRegionModel) SetName

SetName sets name.

func (*ServiceRegionModel) SetSeq

SetSeq sets seq.

func (*ServiceRegionModel) SetServiceSeq

func (x *ServiceRegionModel) SetServiceSeq(v int64) *ServiceRegionModel

SetServiceSeq sets service_seq.

func (*ServiceRegionModel) SumSeq

func (*ServiceRegionModel) SumServiceSeq

func (x *ServiceRegionModel) SumServiceSeq() *ServiceRegionModel

func (*ServiceRegionModel) ToArray

func (x *ServiceRegionModel) ToArray() map[string]any

ToArray returns the row values.

func (*ServiceRegionModel) Update

func (x *ServiceRegionModel) Update(optimistic ...bool) (*ServiceRegionModel, error)

Update writes the changed columns; Update(true) requires an unchanged updated time.

type SoftRecordModel

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

SoftRecordModel is a soft_record model or row.

func SoftRecord

func SoftRecord() *SoftRecordModel

SoftRecord creates a soft_record model.

func (*SoftRecordModel) AddAllColumns

func (x *SoftRecordModel) AddAllColumns() *SoftRecordModel

AddAllColumns selects every column.

func (*SoftRecordModel) AddColumnDeletedAt

func (x *SoftRecordModel) AddColumnDeletedAt() *SoftRecordModel

func (*SoftRecordModel) AddColumnName

func (x *SoftRecordModel) AddColumnName() *SoftRecordModel

func (*SoftRecordModel) AddColumnSeq

func (x *SoftRecordModel) AddColumnSeq() *SoftRecordModel

func (*SoftRecordModel) And

func (x *SoftRecordModel) And(args ...any) *SoftRecordModel

And joins the next condition with AND, opens an AND group with a callback, or places the conditions of a joined model.

func (*SoftRecordModel) AndNot

func (x *SoftRecordModel) AndNot(fn func(*SoftRecordModel)) *SoftRecordModel

AndNot opens a negated group joined with AND.

func (*SoftRecordModel) AvgSeq

func (x *SoftRecordModel) AvgSeq() *SoftRecordModel

func (*SoftRecordModel) Connect

func (x *SoftRecordModel) Connect(db *orm.DB) *SoftRecordModel

Connect sets the connection.

func (*SoftRecordModel) Create

func (x *SoftRecordModel) Create() (*SoftRecordModel, error)

Create inserts the row and returns the created row.

func (*SoftRecordModel) Creates

func (x *SoftRecordModel) Creates(rows []*SoftRecordModel) (int64, error)

Creates inserts rows in one transaction and returns the inserted row count.

func (*SoftRecordModel) Delete

func (x *SoftRecordModel) Delete(recursive ...bool) error

Delete deletes the row; Delete(true) first deletes loaded related rows.

func (*SoftRecordModel) DeleteLock

func (x *SoftRecordModel) DeleteLock() *SoftRecordModel

DeleteLock excludes the relation from recursive delete.

func (*SoftRecordModel) Duplication

func (x *SoftRecordModel) Duplication(m *SoftRecordModel) *SoftRecordModel

Duplication sets the duplicate-key update of the next Create.

func (*SoftRecordModel) FetchKey

func (x *SoftRecordModel) FetchKey(fn func(*SoftRecordModel) any) *SoftRecordModel

FetchKey computes the collection key of each row.

func (*SoftRecordModel) FetchValue

func (x *SoftRecordModel) FetchValue(fn func(*SoftRecordModel) any) *SoftRecordModel

FetchValue computes a value for each loaded row.

func (*SoftRecordModel) ForShare

func (x *SoftRecordModel) ForShare() *SoftRecordModel

ForShare locks the selected rows for share inside a transaction.

func (*SoftRecordModel) ForShareNoWait

func (x *SoftRecordModel) ForShareNoWait() *SoftRecordModel

ForShareNoWait locks for share without waiting.

func (*SoftRecordModel) ForUpdate

func (x *SoftRecordModel) ForUpdate() *SoftRecordModel

ForUpdate locks the selected rows for update inside a transaction.

func (*SoftRecordModel) ForUpdateNoWait

func (x *SoftRecordModel) ForUpdateNoWait() *SoftRecordModel

ForUpdateNoWait locks for update without waiting.

func (*SoftRecordModel) Get

func (x *SoftRecordModel) Get() (*SoftRecordModel, error)

Get returns the first matching row. It returns orm.CodeNoRows when no row matches.

func (*SoftRecordModel) GetAvg

func (x *SoftRecordModel) GetAvg() (float64, error)

GetAvg returns the average of the column selected with Avg<Col>.

func (*SoftRecordModel) GetBySeq

func (x *SoftRecordModel) GetBySeq[T0 argIntEq](v0 T0) (*SoftRecordModel, error)

func (*SoftRecordModel) GetCount

func (x *SoftRecordModel) GetCount() (int64, error)

GetCount returns the number of matching rows.

func (*SoftRecordModel) GetDeletedAt

func (x *SoftRecordModel) GetDeletedAt() *time.Time

GetDeletedAt returns deleted_at.

func (*SoftRecordModel) GetName

func (x *SoftRecordModel) GetName() string

GetName returns name.

func (*SoftRecordModel) GetQuery

func (x *SoftRecordModel) GetQuery() (*orm.Statement, error)

GetQuery returns the statement of Gets without executing it.

func (*SoftRecordModel) GetSeq

func (x *SoftRecordModel) GetSeq() int64

GetSeq returns seq.

func (*SoftRecordModel) GetSum

func (x *SoftRecordModel) GetSum() (float64, error)

GetSum returns the sum of the column selected with Sum<Col>.

func (*SoftRecordModel) Gets

Gets returns the matching rows.

func (*SoftRecordModel) GetsCount

func (x *SoftRecordModel) GetsCount() (*orm.GroupRows, error)

GetsCount returns grouped rows with row_count.

func (*SoftRecordModel) GetsPage

func (x *SoftRecordModel) GetsPage(page, perPage int) (*orm.Page[*SoftRecordModel], error)

GetsPage returns one page of matching rows.

func (*SoftRecordModel) GroupByDeletedAt

func (x *SoftRecordModel) GroupByDeletedAt() *SoftRecordModel

func (*SoftRecordModel) GroupByName

func (x *SoftRecordModel) GroupByName() *SoftRecordModel

func (*SoftRecordModel) GroupBySeq

func (x *SoftRecordModel) GroupBySeq() *SoftRecordModel

func (*SoftRecordModel) GroupLimit

func (x *SoftRecordModel) GroupLimit(n int) *SoftRecordModel

GroupLimit limits related rows per parent.

func (*SoftRecordModel) KeyNameDeletedAt

func (x *SoftRecordModel) KeyNameDeletedAt() *SoftRecordModel

func (*SoftRecordModel) KeyNameName

func (x *SoftRecordModel) KeyNameName() *SoftRecordModel

func (*SoftRecordModel) KeyNameSeq

func (x *SoftRecordModel) KeyNameSeq() *SoftRecordModel

func (*SoftRecordModel) Limit

func (x *SoftRecordModel) Limit(offset, count int) *SoftRecordModel

Limit sets the row range.

func (*SoftRecordModel) MarshalJSON

func (x *SoftRecordModel) MarshalJSON() ([]byte, error)

MarshalJSON writes the row values in order.

func (*SoftRecordModel) MinusSeq

func (x *SoftRecordModel) MinusSeq(n int64) *SoftRecordModel

func (*SoftRecordModel) Name

func (x *SoftRecordModel) Name[T0 argStringEq](v0 T0) *SoftRecordModel

func (*SoftRecordModel) Not

func (x *SoftRecordModel) Not(fn func(*SoftRecordModel)) *SoftRecordModel

Not opens a negated group, NOT (…), as the first condition or after a connector written as a separate call.

func (*SoftRecordModel) On

On sets the join ON conditions.

func (*SoftRecordModel) Or

func (x *SoftRecordModel) Or(args ...any) *SoftRecordModel

Or joins the next condition with OR, opens an OR group with a callback, or places the conditions of a joined model.

func (*SoftRecordModel) OrNot

func (x *SoftRecordModel) OrNot(fn func(*SoftRecordModel)) *SoftRecordModel

OrNot opens a negated group joined with OR.

func (*SoftRecordModel) OrderByDeletedAtAsc

func (x *SoftRecordModel) OrderByDeletedAtAsc(fn ...orm.Func) *SoftRecordModel

func (*SoftRecordModel) OrderByDeletedAtDesc

func (x *SoftRecordModel) OrderByDeletedAtDesc(fn ...orm.Func) *SoftRecordModel

func (*SoftRecordModel) OrderByNameAsc

func (x *SoftRecordModel) OrderByNameAsc(fn ...orm.Func) *SoftRecordModel

func (*SoftRecordModel) OrderByNameDesc

func (x *SoftRecordModel) OrderByNameDesc(fn ...orm.Func) *SoftRecordModel

func (*SoftRecordModel) OrderByRandom

func (x *SoftRecordModel) OrderByRandom() *SoftRecordModel

OrderByRandom orders rows randomly.

func (*SoftRecordModel) OrderBySeqAsc

func (x *SoftRecordModel) OrderBySeqAsc(fn ...orm.Func) *SoftRecordModel

func (*SoftRecordModel) OrderBySeqDesc

func (x *SoftRecordModel) OrderBySeqDesc(fn ...orm.Func) *SoftRecordModel

func (*SoftRecordModel) Orm_

func (x *SoftRecordModel) Orm_() *orm.Core

func (*SoftRecordModel) ParentNode

func (x *SoftRecordModel) ParentNode() *SoftRecordModel

ParentNode merges the related row into the parent row.

func (*SoftRecordModel) PlusSeq

func (x *SoftRecordModel) PlusSeq(n int64) *SoftRecordModel

func (*SoftRecordModel) Relation

func (x *SoftRecordModel) Relation(child orm.Model) *SoftRecordModel

Relation attaches one related row loaded by a separate query.

func (*SoftRecordModel) Relations

func (x *SoftRecordModel) Relations(child orm.Model) *SoftRecordModel

Relations attaches related rows loaded by a separate query.

func (*SoftRecordModel) RemoveAllColumns

func (x *SoftRecordModel) RemoveAllColumns() *SoftRecordModel

RemoveAllColumns keeps only primary and foreign keys.

func (*SoftRecordModel) RemoveColumnDeletedAt

func (x *SoftRecordModel) RemoveColumnDeletedAt() *SoftRecordModel

func (*SoftRecordModel) RemoveColumnName

func (x *SoftRecordModel) RemoveColumnName() *SoftRecordModel

func (*SoftRecordModel) RemoveColumnSeq

func (x *SoftRecordModel) RemoveColumnSeq() *SoftRecordModel

func (*SoftRecordModel) Restore

func (x *SoftRecordModel) Restore() (*SoftRecordModel, error)

Restore restores the soft-deleted row that the set key values name and returns it.

func (*SoftRecordModel) Save

func (x *SoftRecordModel) Save() (*SoftRecordModel, error)

Save updates the row when its primary key is known, otherwise creates it.

func (*SoftRecordModel) Seq

func (x *SoftRecordModel) Seq[T0 argIntEq](v0 T0) *SoftRecordModel

func (*SoftRecordModel) SetDeletedAt

func (x *SoftRecordModel) SetDeletedAt(v *time.Time) *SoftRecordModel

SetDeletedAt sets deleted_at; nil stores NULL.

func (*SoftRecordModel) SetName

func (x *SoftRecordModel) SetName(v string) *SoftRecordModel

SetName sets name.

func (*SoftRecordModel) SetSeq

func (x *SoftRecordModel) SetSeq(v int64) *SoftRecordModel

SetSeq sets seq.

func (*SoftRecordModel) SumSeq

func (x *SoftRecordModel) SumSeq() *SoftRecordModel

func (*SoftRecordModel) ToArray

func (x *SoftRecordModel) ToArray() map[string]any

ToArray returns the row values.

func (*SoftRecordModel) Update

func (x *SoftRecordModel) Update(optimistic ...bool) (*SoftRecordModel, error)

Update writes the changed columns; Update(true) requires an unchanged updated time.

type TaskModel

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

TaskModel is a task model or row.

func Task

func Task() *TaskModel

Task creates a task model.

func (*TaskModel) AddAllColumns

func (x *TaskModel) AddAllColumns() *TaskModel

AddAllColumns selects every column.

func (*TaskModel) AddColumnSeq

func (x *TaskModel) AddColumnSeq() *TaskModel

func (*TaskModel) AddColumnState

func (x *TaskModel) AddColumnState() *TaskModel

func (*TaskModel) AddColumnTitle

func (x *TaskModel) AddColumnTitle() *TaskModel

func (*TaskModel) And

func (x *TaskModel) And(args ...any) *TaskModel

And joins the next condition with AND, opens an AND group with a callback, or places the conditions of a joined model.

func (*TaskModel) AndNot

func (x *TaskModel) AndNot(fn func(*TaskModel)) *TaskModel

AndNot opens a negated group joined with AND.

func (*TaskModel) AvgSeq

func (x *TaskModel) AvgSeq() *TaskModel

func (*TaskModel) Connect

func (x *TaskModel) Connect(db *orm.DB) *TaskModel

Connect sets the connection.

func (*TaskModel) Create

func (x *TaskModel) Create() (*TaskModel, error)

Create inserts the row and returns the created row.

func (*TaskModel) Creates

func (x *TaskModel) Creates(rows []*TaskModel) (int64, error)

Creates inserts rows in one transaction and returns the inserted row count.

func (*TaskModel) Delete

func (x *TaskModel) Delete(recursive ...bool) error

Delete deletes the row; Delete(true) first deletes loaded related rows.

func (*TaskModel) DeleteLock

func (x *TaskModel) DeleteLock() *TaskModel

DeleteLock excludes the relation from recursive delete.

func (*TaskModel) Duplication

func (x *TaskModel) Duplication(m *TaskModel) *TaskModel

Duplication sets the duplicate-key update of the next Create.

func (*TaskModel) FetchKey

func (x *TaskModel) FetchKey(fn func(*TaskModel) any) *TaskModel

FetchKey computes the collection key of each row.

func (*TaskModel) FetchValue

func (x *TaskModel) FetchValue(fn func(*TaskModel) any) *TaskModel

FetchValue computes a value for each loaded row.

func (*TaskModel) ForShare

func (x *TaskModel) ForShare() *TaskModel

ForShare locks the selected rows for share inside a transaction.

func (*TaskModel) ForShareNoWait

func (x *TaskModel) ForShareNoWait() *TaskModel

ForShareNoWait locks for share without waiting.

func (*TaskModel) ForUpdate

func (x *TaskModel) ForUpdate() *TaskModel

ForUpdate locks the selected rows for update inside a transaction.

func (*TaskModel) ForUpdateNoWait

func (x *TaskModel) ForUpdateNoWait() *TaskModel

ForUpdateNoWait locks for update without waiting.

func (*TaskModel) Get

func (x *TaskModel) Get() (*TaskModel, error)

Get returns the first matching row. It returns orm.CodeNoRows when no row matches.

func (*TaskModel) GetAvg

func (x *TaskModel) GetAvg() (float64, error)

GetAvg returns the average of the column selected with Avg<Col>.

func (*TaskModel) GetCount

func (x *TaskModel) GetCount() (int64, error)

GetCount returns the number of matching rows.

func (*TaskModel) GetQuery

func (x *TaskModel) GetQuery() (*orm.Statement, error)

GetQuery returns the statement of Gets without executing it.

func (*TaskModel) GetSeq

func (x *TaskModel) GetSeq() int64

GetSeq returns seq.

func (*TaskModel) GetState

func (x *TaskModel) GetState() string

GetState returns state.

func (*TaskModel) GetSum

func (x *TaskModel) GetSum() (float64, error)

GetSum returns the sum of the column selected with Sum<Col>.

func (*TaskModel) GetTitle

func (x *TaskModel) GetTitle() string

GetTitle returns title.

func (*TaskModel) Gets

func (x *TaskModel) Gets() (*orm.Collection[*TaskModel], error)

Gets returns the matching rows.

func (*TaskModel) GetsCount

func (x *TaskModel) GetsCount() (*orm.GroupRows, error)

GetsCount returns grouped rows with row_count.

func (*TaskModel) GetsPage

func (x *TaskModel) GetsPage(page, perPage int) (*orm.Page[*TaskModel], error)

GetsPage returns one page of matching rows.

func (*TaskModel) GroupBySeq

func (x *TaskModel) GroupBySeq() *TaskModel

func (*TaskModel) GroupByState

func (x *TaskModel) GroupByState() *TaskModel

func (*TaskModel) GroupByTitle

func (x *TaskModel) GroupByTitle() *TaskModel

func (*TaskModel) GroupLimit

func (x *TaskModel) GroupLimit(n int) *TaskModel

GroupLimit limits related rows per parent.

func (*TaskModel) KeyNameSeq

func (x *TaskModel) KeyNameSeq() *TaskModel

func (*TaskModel) KeyNameState

func (x *TaskModel) KeyNameState() *TaskModel

func (*TaskModel) KeyNameTitle

func (x *TaskModel) KeyNameTitle() *TaskModel

func (*TaskModel) Limit

func (x *TaskModel) Limit(offset, count int) *TaskModel

Limit sets the row range.

func (*TaskModel) MarshalJSON

func (x *TaskModel) MarshalJSON() ([]byte, error)

MarshalJSON writes the row values in order.

func (*TaskModel) MinusSeq

func (x *TaskModel) MinusSeq(n int64) *TaskModel

func (*TaskModel) Not

func (x *TaskModel) Not(fn func(*TaskModel)) *TaskModel

Not opens a negated group, NOT (…), as the first condition or after a connector written as a separate call.

func (*TaskModel) On

func (x *TaskModel) On(fn func(*TaskModel)) *TaskModel

On sets the join ON conditions.

func (*TaskModel) Or

func (x *TaskModel) Or(args ...any) *TaskModel

Or joins the next condition with OR, opens an OR group with a callback, or places the conditions of a joined model.

func (*TaskModel) OrNot

func (x *TaskModel) OrNot(fn func(*TaskModel)) *TaskModel

OrNot opens a negated group joined with OR.

func (*TaskModel) OrderByRandom

func (x *TaskModel) OrderByRandom() *TaskModel

OrderByRandom orders rows randomly.

func (*TaskModel) OrderBySeqAsc

func (x *TaskModel) OrderBySeqAsc(fn ...orm.Func) *TaskModel

func (*TaskModel) OrderBySeqDesc

func (x *TaskModel) OrderBySeqDesc(fn ...orm.Func) *TaskModel

func (*TaskModel) OrderByStateAsc

func (x *TaskModel) OrderByStateAsc(fn ...orm.Func) *TaskModel

func (*TaskModel) OrderByStateDesc

func (x *TaskModel) OrderByStateDesc(fn ...orm.Func) *TaskModel

func (*TaskModel) OrderByTitleAsc

func (x *TaskModel) OrderByTitleAsc(fn ...orm.Func) *TaskModel

func (*TaskModel) OrderByTitleDesc

func (x *TaskModel) OrderByTitleDesc(fn ...orm.Func) *TaskModel

func (*TaskModel) Orm_

func (x *TaskModel) Orm_() *orm.Core

func (*TaskModel) ParentNode

func (x *TaskModel) ParentNode() *TaskModel

ParentNode merges the related row into the parent row.

func (*TaskModel) PlusSeq

func (x *TaskModel) PlusSeq(n int64) *TaskModel

func (*TaskModel) Relation

func (x *TaskModel) Relation(child orm.Model) *TaskModel

Relation attaches one related row loaded by a separate query.

func (*TaskModel) Relations

func (x *TaskModel) Relations(child orm.Model) *TaskModel

Relations attaches related rows loaded by a separate query.

func (*TaskModel) RemoveAllColumns

func (x *TaskModel) RemoveAllColumns() *TaskModel

RemoveAllColumns keeps only primary and foreign keys.

func (*TaskModel) RemoveColumnSeq

func (x *TaskModel) RemoveColumnSeq() *TaskModel

func (*TaskModel) RemoveColumnState

func (x *TaskModel) RemoveColumnState() *TaskModel

func (*TaskModel) RemoveColumnTitle

func (x *TaskModel) RemoveColumnTitle() *TaskModel

func (*TaskModel) Restore

func (x *TaskModel) Restore() (*TaskModel, error)

Restore restores the soft-deleted row that the set key values name and returns it.

func (*TaskModel) Save

func (x *TaskModel) Save() (*TaskModel, error)

Save updates the row when its primary key is known, otherwise creates it.

func (*TaskModel) Seq

func (x *TaskModel) Seq[T0 argIntEq](v0 T0) *TaskModel

func (*TaskModel) SetSeq

func (x *TaskModel) SetSeq(v int64) *TaskModel

SetSeq sets seq.

func (*TaskModel) SetState

func (x *TaskModel) SetState(v string) *TaskModel

SetState sets state.

func (*TaskModel) SetTitle

func (x *TaskModel) SetTitle(v string) *TaskModel

SetTitle sets title.

func (*TaskModel) SumSeq

func (x *TaskModel) SumSeq() *TaskModel

func (*TaskModel) ToArray

func (x *TaskModel) ToArray() map[string]any

ToArray returns the row values.

func (*TaskModel) Update

func (x *TaskModel) Update(optimistic ...bool) (*TaskModel, error)

Update writes the changed columns; Update(true) requires an unchanged updated time.

type UserModel

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

UserModel is a user model or row.

func User

func User() *UserModel

User creates a user model.

func (*UserModel) AddAllColumns

func (x *UserModel) AddAllColumns() *UserModel

AddAllColumns selects every column.

func (*UserModel) AddColumnName

func (x *UserModel) AddColumnName() *UserModel

func (*UserModel) AddColumnReadTotal

func (x *UserModel) AddColumnReadTotal(fn func(*UserModel) orm.Model) *UserModel

func (*UserModel) AddColumnSeq

func (x *UserModel) AddColumnSeq() *UserModel

func (*UserModel) AliasOwner

func (x *UserModel) AliasOwner() *UserModel

func (*UserModel) AliasWriter

func (x *UserModel) AliasWriter() *UserModel

func (*UserModel) And

func (x *UserModel) And(args ...any) *UserModel

And joins the next condition with AND, opens an AND group with a callback, or places the conditions of a joined model.

func (*UserModel) AndNot

func (x *UserModel) AndNot(fn func(*UserModel)) *UserModel

AndNot opens a negated group joined with AND.

func (*UserModel) AvgSeq

func (x *UserModel) AvgSeq() *UserModel

func (*UserModel) Connect

func (x *UserModel) Connect(db *orm.DB) *UserModel

Connect sets the connection.

func (*UserModel) Create

func (x *UserModel) Create() (*UserModel, error)

Create inserts the row and returns the created row.

func (*UserModel) Creates

func (x *UserModel) Creates(rows []*UserModel) (int64, error)

Creates inserts rows in one transaction and returns the inserted row count.

func (*UserModel) Delete

func (x *UserModel) Delete(recursive ...bool) error

Delete deletes the row; Delete(true) first deletes loaded related rows.

func (*UserModel) DeleteLock

func (x *UserModel) DeleteLock() *UserModel

DeleteLock excludes the relation from recursive delete.

func (*UserModel) Duplication

func (x *UserModel) Duplication(m *UserModel) *UserModel

Duplication sets the duplicate-key update of the next Create.

func (*UserModel) FetchKey

func (x *UserModel) FetchKey(fn func(*UserModel) any) *UserModel

FetchKey computes the collection key of each row.

func (*UserModel) FetchValue

func (x *UserModel) FetchValue(fn func(*UserModel) any) *UserModel

FetchValue computes a value for each loaded row.

func (*UserModel) ForShare

func (x *UserModel) ForShare() *UserModel

ForShare locks the selected rows for share inside a transaction.

func (*UserModel) ForShareNoWait

func (x *UserModel) ForShareNoWait() *UserModel

ForShareNoWait locks for share without waiting.

func (*UserModel) ForUpdate

func (x *UserModel) ForUpdate() *UserModel

ForUpdate locks the selected rows for update inside a transaction.

func (*UserModel) ForUpdateNoWait

func (x *UserModel) ForUpdateNoWait() *UserModel

ForUpdateNoWait locks for update without waiting.

func (*UserModel) Get

func (x *UserModel) Get() (*UserModel, error)

Get returns the first matching row. It returns orm.CodeNoRows when no row matches.

func (*UserModel) GetAuthorModels

func (x *UserModel) GetAuthorModels() (*orm.Collection[*AuthorModel], error)

GetAuthorModels returns the author relation result.

func (*UserModel) GetAvg

func (x *UserModel) GetAvg() (float64, error)

GetAvg returns the average of the column selected with Avg<Col>.

func (*UserModel) GetCount

func (x *UserModel) GetCount() (int64, error)

GetCount returns the number of matching rows.

func (*UserModel) GetName

func (x *UserModel) GetName() string

GetName returns name.

func (*UserModel) GetQuery

func (x *UserModel) GetQuery() (*orm.Statement, error)

GetQuery returns the statement of Gets without executing it.

func (*UserModel) GetReadTotal

func (x *UserModel) GetReadTotal() any

GetReadTotal returns the column added with AddColumnReadTotal.

func (*UserModel) GetSeq

func (x *UserModel) GetSeq() int64

GetSeq returns seq.

func (*UserModel) GetSum

func (x *UserModel) GetSum() (float64, error)

GetSum returns the sum of the column selected with Sum<Col>.

func (*UserModel) Gets

func (x *UserModel) Gets() (*orm.Collection[*UserModel], error)

Gets returns the matching rows.

func (*UserModel) GetsCount

func (x *UserModel) GetsCount() (*orm.GroupRows, error)

GetsCount returns grouped rows with row_count.

func (*UserModel) GetsPage

func (x *UserModel) GetsPage(page, perPage int) (*orm.Page[*UserModel], error)

GetsPage returns one page of matching rows.

func (*UserModel) GroupByName

func (x *UserModel) GroupByName() *UserModel

func (*UserModel) GroupBySeq

func (x *UserModel) GroupBySeq() *UserModel

func (*UserModel) GroupLimit

func (x *UserModel) GroupLimit(n int) *UserModel

GroupLimit limits related rows per parent.

func (*UserModel) KeyNameName

func (x *UserModel) KeyNameName() *UserModel

func (*UserModel) KeyNameSeq

func (x *UserModel) KeyNameSeq() *UserModel

func (*UserModel) Limit

func (x *UserModel) Limit(offset, count int) *UserModel

Limit sets the row range.

func (*UserModel) MarshalJSON

func (x *UserModel) MarshalJSON() ([]byte, error)

MarshalJSON writes the row values in order.

func (*UserModel) MatchUserSeqWithSeq

func (x *UserModel) MatchUserSeqWithSeq() *UserModel

func (*UserModel) MinusSeq

func (x *UserModel) MinusSeq(n int64) *UserModel

func (*UserModel) Name

func (x *UserModel) Name[T0 argStringEq](v0 T0) *UserModel

func (*UserModel) NeName

func (x *UserModel) NeName[T0 argStringEq](v0 T0) *UserModel

func (*UserModel) Not

func (x *UserModel) Not(fn func(*UserModel)) *UserModel

Not opens a negated group, NOT (…), as the first condition or after a connector written as a separate call.

func (*UserModel) On

func (x *UserModel) On(fn func(*UserModel)) *UserModel

On sets the join ON conditions.

func (*UserModel) Or

func (x *UserModel) Or(args ...any) *UserModel

Or joins the next condition with OR, opens an OR group with a callback, or places the conditions of a joined model.

func (*UserModel) OrNot

func (x *UserModel) OrNot(fn func(*UserModel)) *UserModel

OrNot opens a negated group joined with OR.

func (*UserModel) OrderByNameAsc

func (x *UserModel) OrderByNameAsc(fn ...orm.Func) *UserModel

func (*UserModel) OrderByNameDesc

func (x *UserModel) OrderByNameDesc(fn ...orm.Func) *UserModel

func (*UserModel) OrderByRandom

func (x *UserModel) OrderByRandom() *UserModel

OrderByRandom orders rows randomly.

func (*UserModel) OrderBySeqAsc

func (x *UserModel) OrderBySeqAsc(fn ...orm.Func) *UserModel

func (*UserModel) OrderBySeqDesc

func (x *UserModel) OrderBySeqDesc(fn ...orm.Func) *UserModel

func (*UserModel) Orm_

func (x *UserModel) Orm_() *orm.Core

func (*UserModel) ParentNode

func (x *UserModel) ParentNode() *UserModel

ParentNode merges the related row into the parent row.

func (*UserModel) PlusSeq

func (x *UserModel) PlusSeq(n int64) *UserModel

func (*UserModel) Relation

func (x *UserModel) Relation(child orm.Model) *UserModel

Relation attaches one related row loaded by a separate query.

func (*UserModel) Relations

func (x *UserModel) Relations(child orm.Model) *UserModel

Relations attaches related rows loaded by a separate query.

func (*UserModel) RemoveAllColumns

func (x *UserModel) RemoveAllColumns() *UserModel

RemoveAllColumns keeps only primary and foreign keys.

func (*UserModel) RemoveColumnName

func (x *UserModel) RemoveColumnName() *UserModel

func (*UserModel) RemoveColumnSeq

func (x *UserModel) RemoveColumnSeq() *UserModel

func (*UserModel) Restore

func (x *UserModel) Restore() (*UserModel, error)

Restore restores the soft-deleted row that the set key values name and returns it.

func (*UserModel) Save

func (x *UserModel) Save() (*UserModel, error)

Save updates the row when its primary key is known, otherwise creates it.

func (*UserModel) Seq

func (x *UserModel) Seq[T0 argIntEq](v0 T0) *UserModel

func (*UserModel) SetName

func (x *UserModel) SetName(v string) *UserModel

SetName sets name.

func (*UserModel) SetSeq

func (x *UserModel) SetSeq(v int64) *UserModel

SetSeq sets seq.

func (*UserModel) SumSeq

func (x *UserModel) SumSeq() *UserModel

func (*UserModel) ToArray

func (x *UserModel) ToArray() map[string]any

ToArray returns the row values.

func (*UserModel) Update

func (x *UserModel) Update(optimistic ...bool) (*UserModel, error)

Update writes the changed columns; Update(true) requires an unchanged updated time.

Jump to

Keyboard shortcuts

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