Documentation
¶
Overview ¶
Code generated by enterprise.
Code generated by enterprise.
Code generated by enterprise.
Code generated by enterprise.
Code generated by enterprise.
Code generated by enterprise.
Code generated by enterprise.
Code generated by enterprise.
Code generated by enterprise.
Index ¶
- Constants
- func ConvertToSnakeCase(input string) string
- func SetDatabaseAccountListOperationHook(...)
- func SetDatabaseAccountOperationHook(...)
- func SetDatabaseDenemeListOperationHook(...)
- func SetDatabaseDenemeOperationHook(...)
- func SetDatabaseGroupListOperationHook(...)
- func SetDatabaseGroupOperationHook(...)
- func SetDatabaseTestListOperationHook(...)
- func SetDatabaseTestOperationHook(...)
- func ToCamelCase(s string) string
- type Account
- func (t *Account) AddIntoGroup(relationship *Group) error
- func (t *Account) CheckPrimaryKey(v uuid.UUID) bool
- func (t *Account) Create() error
- func (t *Account) Delete() error
- func (t *Account) Get() error
- func (t *Account) GetChangedFields() map[string]any
- func (t *Account) GetContext() context.Context
- func (t *Account) GetDBName() string
- func (t *Account) GetDenemeID() *uuid.UUID
- func (t *Account) GetDenemeIDAsString() string
- func (t *Account) GetDenemeIDValue() uuid.UUID
- func (t *Account) GetID() uuid.UUID
- func (t *Account) GetIDAsString() string
- func (t *Account) GetIDNillable() *uuid.UUID
- func (t *Account) GetName() string
- func (t *Account) GetNameNillable() *string
- func (t *Account) GetPrimaryKey() uuid.UUID
- func (t *Account) GetRelationList() *client.RelationList
- func (t *Account) GetRole() custom_data_type.UserRole
- func (t *Account) GetRoleNillable() *custom_data_type.UserRole
- func (t *Account) GetSelector() *AccountResult
- func (t *Account) GetSerial() uint
- func (t *Account) GetSerialNillable() *uint
- func (t *Account) GetStatus() string
- func (t *Account) GetStatusNillable() *string
- func (t *Account) GetSurname() string
- func (t *Account) GetSurnameNillable() *string
- func (t *Account) IsExist() bool
- func (t *Account) IsInGroup(relationship *Group) (bool, error)
- func (t *Account) NameIN(v ...string) bool
- func (t *Account) NameNotIN(v ...string) bool
- func (t *Account) ParseDenemeID(v string) error
- func (t *Account) ParseID(v string) error
- func (t *Account) Refresh() error
- func (t *Account) RemoveFromGroup(relationship *Group) error
- func (t *Account) RoleIN(v ...custom_data_type.UserRole) bool
- func (t *Account) RoleNotIN(v ...custom_data_type.UserRole) bool
- func (t *Account) ScanResult()
- func (t *Account) Select(fields ...string) *Account
- func (t *Account) SerialIN(v ...uint) bool
- func (t *Account) SerialNotIN(v ...uint) bool
- func (t *Account) SetClient(client *client.Client)
- func (t *Account) SetDefaults()
- func (t *Account) SetDenemeID(v *uuid.UUID)
- func (t *Account) SetDenemeIDField()
- func (t *Account) SetDenemeIDValue(v uuid.UUID)
- func (t *Account) SetID(v uuid.UUID)
- func (t *Account) SetIDField()
- func (t *Account) SetIDNillable(v *uuid.UUID)
- func (t *Account) SetName(v string)
- func (t *Account) SetNameField()
- func (t *Account) SetNameNillable(v *string)
- func (t *Account) SetResult(result client.Result)
- func (t *Account) SetRole(v custom_data_type.UserRole)
- func (t *Account) SetRoleField()
- func (t *Account) SetRoleNillable(v *custom_data_type.UserRole)
- func (t *Account) SetSerial(v uint)
- func (t *Account) SetSerialField()
- func (t *Account) SetSerialNillable(v *uint)
- func (t *Account) SetStatus(v string)
- func (t *Account) SetStatusField()
- func (t *Account) SetStatusNillable(v *string)
- func (t *Account) SetSurname(v string)
- func (t *Account) SetSurnameField()
- func (t *Account) SetSurnameNillable(v *string)
- func (t *Account) StatusIN(v ...string) bool
- func (t *Account) StatusNotIN(v ...string) bool
- func (t *Account) SurnameIN(v ...string) bool
- func (t *Account) SurnameNotIN(v ...string) bool
- func (t *Account) Update() error
- func (t *Account) WhereIf(cond bool, w client.PredicateI) *Account
- func (t *Account) WhereIfFn(cond bool, fn func() client.PredicateI) *Account
- func (t *Account) WhereIn(cond bool, w client.PredicateI) *Account
- func (t *Account) WithDeneme(opts ...func(*Deneme)) *client.Relation
- func (t *Account) WithGroupList(opts ...func(*GroupList)) *client.Relation
- type AccountList
- func (t *AccountList) Aggregate(f func(aggregate *client.Aggregate)) (func() error, error)
- func (t *AccountList) AggregateRows(f func(aggregate *client.Aggregate)) (func() error, func(), error)
- func (t *AccountList) AggregateSeq(fn func(*client.Aggregate)) iter.Seq2[int, error]
- func (t *AccountList) AvgExpr(expr string, cast string, val any) error
- func (t *AccountList) AvgName() (float64, error)
- func (t *AccountList) AvgSerial() (float64, error)
- func (t *AccountList) AvgStatus() (float64, error)
- func (t *AccountList) AvgSurname() (float64, error)
- func (t *AccountList) Count() (int, error)
- func (t *AccountList) Create(list ...*Account) error
- func (t *AccountList) Delete(list ...*Account) error
- func (t *AccountList) DeleteWhere() (int64, error)
- func (t *AccountList) DistinctString(field string) ([]string, error)
- func (t *AccountList) GetByIDs(ids ...uuid.UUID) ([]*Account, error)
- func (t *AccountList) GetByIDsMap(ids ...uuid.UUID) (map[uuid.UUID]*Account, error)
- func (t *AccountList) GetDBName() string
- func (t *AccountList) GetRelationList() *client.RelationList
- func (t *AccountList) GetSelector() *AccountResult
- func (t *AccountList) IsExist() bool
- func (t *AccountList) IsListModel() bool
- func (t *AccountList) List() error
- func (t *AccountList) ListWithTotal(skip, limit int) (int, error)
- func (t *AccountList) MaxName() (string, error)
- func (t *AccountList) MaxSerial() (uint, error)
- func (t *AccountList) MaxStatus() (string, error)
- func (t *AccountList) MaxSurname() (string, error)
- func (t *AccountList) MinName() (string, error)
- func (t *AccountList) MinSerial() (uint, error)
- func (t *AccountList) MinStatus() (string, error)
- func (t *AccountList) MinSurname() (string, error)
- func (t *AccountList) Order(field string) *AccountList
- func (t *AccountList) OrderDesc(field string) *AccountList
- func (t *AccountList) Paging(skip, limit int) *AccountList
- func (t *AccountList) ScanResult()
- func (t *AccountList) Select(fields ...string) *AccountList
- func (t *AccountList) SetClient(client *client.Client)
- func (t *AccountList) SetResult(result client.Result)
- func (t *AccountList) SumExpr(expr string, cast string, val any) error
- func (t *AccountList) SumName() (string, error)
- func (t *AccountList) SumSerial() (uint, error)
- func (t *AccountList) SumStatus() (string, error)
- func (t *AccountList) SumSurname() (string, error)
- func (t *AccountList) Update(list ...*Account) error
- func (t *AccountList) UpdateWhere(set map[string]any) (int64, error)
- func (t *AccountList) WhereIf(cond bool, w client.PredicateI) *AccountList
- func (t *AccountList) WhereIfFn(cond bool, fn func() client.PredicateI) *AccountList
- func (t *AccountList) WhereIn(cond bool, w client.PredicateI) *AccountList
- func (t *AccountList) WithDeneme(opts ...func(*Deneme)) *client.Relation
- func (t *AccountList) WithGroupList(opts ...func(*GroupList)) *client.Relation
- type AccountPredicate
- func (t *AccountPredicate) GetWhereInfoString() string
- func (t *AccountPredicate) IsDenemeIDEqual(v uuid.UUID) *client.Where
- func (t *AccountPredicate) IsDenemeIDILike(v string) *client.Where
- func (t *AccountPredicate) IsDenemeIDIN(v ...uuid.UUID) *client.Where
- func (t *AccountPredicate) IsDenemeIDLike(v string) *client.Where
- func (t *AccountPredicate) IsDenemeIDNil() *client.Where
- func (t *AccountPredicate) IsDenemeIDNotEqual(v uuid.UUID) *client.Where
- func (t *AccountPredicate) IsDenemeIDNotIN(v ...uuid.UUID) *client.Where
- func (t *AccountPredicate) IsDenemeIDNotNil() *client.Where
- func (t *AccountPredicate) IsIDEqual(v uuid.UUID) *client.Where
- func (t *AccountPredicate) IsIDILike(v string) *client.Where
- func (t *AccountPredicate) IsIDIN(v ...uuid.UUID) *client.Where
- func (t *AccountPredicate) IsIDLike(v string) *client.Where
- func (t *AccountPredicate) IsIDNotEqual(v uuid.UUID) *client.Where
- func (t *AccountPredicate) IsIDNotIN(v ...uuid.UUID) *client.Where
- func (t *AccountPredicate) IsNameEqual(v string) *client.Where
- func (t *AccountPredicate) IsNameILike(v string) *client.Where
- func (t *AccountPredicate) IsNameIN(v ...string) *client.Where
- func (t *AccountPredicate) IsNameLike(v string) *client.Where
- func (t *AccountPredicate) IsNameNotEqual(v string) *client.Where
- func (t *AccountPredicate) IsNameNotIN(v ...string) *client.Where
- func (t *AccountPredicate) IsRoleEqual(v custom_data_type.UserRole) *client.Where
- func (t *AccountPredicate) IsRoleIN(v ...custom_data_type.UserRole) *client.Where
- func (t *AccountPredicate) IsRoleNotEqual(v custom_data_type.UserRole) *client.Where
- func (t *AccountPredicate) IsRoleNotIN(v ...custom_data_type.UserRole) *client.Where
- func (t *AccountPredicate) IsSerialEqual(v uint) *client.Where
- func (t *AccountPredicate) IsSerialIN(v ...uint) *client.Where
- func (t *AccountPredicate) IsSerialNotEqual(v uint) *client.Where
- func (t *AccountPredicate) IsSerialNotIN(v ...uint) *client.Where
- func (t *AccountPredicate) IsStatusEqual(v string) *client.Where
- func (t *AccountPredicate) IsStatusILike(v string) *client.Where
- func (t *AccountPredicate) IsStatusIN(v ...string) *client.Where
- func (t *AccountPredicate) IsStatusLike(v string) *client.Where
- func (t *AccountPredicate) IsStatusNotEqual(v string) *client.Where
- func (t *AccountPredicate) IsStatusNotIN(v ...string) *client.Where
- func (t *AccountPredicate) IsSurnameEqual(v string) *client.Where
- func (t *AccountPredicate) IsSurnameILike(v string) *client.Where
- func (t *AccountPredicate) IsSurnameIN(v ...string) *client.Where
- func (t *AccountPredicate) IsSurnameLike(v string) *client.Where
- func (t *AccountPredicate) IsSurnameNotEqual(v string) *client.Where
- func (t *AccountPredicate) IsSurnameNotIN(v ...string) *client.Where
- func (t *AccountPredicate) ORWhere(w ...client.PredicateI)
- func (t *AccountPredicate) SerialGreaterEqualThan(v uint) *client.Where
- func (t *AccountPredicate) SerialGreaterThan(v uint) *client.Where
- func (t *AccountPredicate) SerialLowerEqualThan(v uint) *client.Where
- func (t *AccountPredicate) SerialLowerThan(v uint) *client.Where
- func (t *AccountPredicate) Where(w ...client.PredicateI)
- func (t *AccountPredicate) WhereIf(cond bool, w client.PredicateI) *AccountPredicate
- func (t *AccountPredicate) WhereIfFn(cond bool, fn func() client.PredicateI) *AccountPredicate
- func (t *AccountPredicate) WhereIn(cond bool, w client.PredicateI) *AccountPredicate
- type AccountResult
- func (t *AccountResult) GetDBName() string
- func (t *AccountResult) GetRelations() []client.Result
- func (t *AccountResult) GetSelectedFields() []*client.SelectedField
- func (t *AccountResult) Init()
- func (t *AccountResult) IsExist() bool
- func (t *AccountResult) SelectAll()
- func (t *AccountResult) SelectDenemeID()
- func (t *AccountResult) SelectID()
- func (t *AccountResult) SelectName()
- func (t *AccountResult) SelectRole()
- func (t *AccountResult) SelectSerial()
- func (t *AccountResult) SelectStatus()
- func (t *AccountResult) SelectSurname()
- type BigIntDBField
- func (i *BigIntDBField) AddSerial() *BigIntDBField
- func (i *BigIntDBField) Default(v int64) *BigIntDBField
- func (i *BigIntDBField) DefaultFunc(v func() int64) *BigIntDBField
- func (i *BigIntDBField) GetDefault() string
- func (i *BigIntDBField) GetSQLDefault() (string, bool)
- func (i *BigIntDBField) SetDBName(v string) *BigIntDBField
- type BoolDBField
- type ByteDBField
- type CustomDBField
- type CustomDBFieldI
- type Database
- func (d *Database) Exec(ctx context.Context, sql string, arguments ...any) (commandTag pgconn.CommandTag, err error)
- func (d *Database) Exit()
- func (d *Database) NewTransaction(ctx context.Context, options ...pgx.TxOptions) (client.DatabaseTransactionClient, error)
- func (d *Database) Query(ctx context.Context, sql string, args ...any) (rows pgx.Rows, err error)
- func (d *Database) QueryRow(ctx context.Context, sql string, args ...any) (row pgx.Row)
- func (d *Database) SetupPostgres(dbUrl string) error
- func (d *Database) Transaction(ctx context.Context, fn func(tx client.DatabaseTransactionClient) error, ...) error
- func (d *Database) Tx(ctx context.Context, fn func(tx *Transaction) error, options ...pgx.TxOptions) error
- type DecimalDBField
- type Deneme
- func (t *Deneme) CheckPrimaryKey(v uuid.UUID) bool
- func (t *Deneme) CountIN(v ...int) bool
- func (t *Deneme) CountNotIN(v ...int) bool
- func (t *Deneme) Create() error
- func (t *Deneme) Delete() error
- func (t *Deneme) DenemeTypeIN(v ...DenemeType) bool
- func (t *Deneme) DenemeTypeNotIN(v ...DenemeType) bool
- func (t *Deneme) Get() error
- func (t *Deneme) GetChangedFields() map[string]any
- func (t *Deneme) GetContext() context.Context
- func (t *Deneme) GetCount() int
- func (t *Deneme) GetCountNillable() *int
- func (t *Deneme) GetDBName() string
- func (t *Deneme) GetDenemeType() DenemeType
- func (t *Deneme) GetDenemeTypeNillable() *DenemeType
- func (t *Deneme) GetID() uuid.UUID
- func (t *Deneme) GetIDAsString() string
- func (t *Deneme) GetIDNillable() *uuid.UUID
- func (t *Deneme) GetIsActive() bool
- func (t *Deneme) GetIsActiveNillable() *bool
- func (t *Deneme) GetPrimaryKey() uuid.UUID
- func (t *Deneme) GetRelationList() *client.RelationList
- func (t *Deneme) GetSelector() *DenemeResult
- func (t *Deneme) GetTestID() *uuid.UUID
- func (t *Deneme) GetTestIDAsString() string
- func (t *Deneme) GetTestIDValue() uuid.UUID
- func (t *Deneme) IsExist() bool
- func (t *Deneme) ParseID(v string) error
- func (t *Deneme) ParseTestID(v string) error
- func (t *Deneme) Refresh() error
- func (t *Deneme) ScanResult()
- func (t *Deneme) Select(fields ...string) *Deneme
- func (t *Deneme) SetClient(client *client.Client)
- func (t *Deneme) SetCount(v int)
- func (t *Deneme) SetCountField()
- func (t *Deneme) SetCountNillable(v *int)
- func (t *Deneme) SetDefaults()
- func (t *Deneme) SetDenemeType(v DenemeType)
- func (t *Deneme) SetDenemeTypeField()
- func (t *Deneme) SetDenemeTypeNillable(v *DenemeType)
- func (t *Deneme) SetID(v uuid.UUID)
- func (t *Deneme) SetIDField()
- func (t *Deneme) SetIDNillable(v *uuid.UUID)
- func (t *Deneme) SetIsActive(v bool)
- func (t *Deneme) SetIsActiveField()
- func (t *Deneme) SetIsActiveNillable(v *bool)
- func (t *Deneme) SetResult(result client.Result)
- func (t *Deneme) SetTestID(v *uuid.UUID)
- func (t *Deneme) SetTestIDField()
- func (t *Deneme) SetTestIDValue(v uuid.UUID)
- func (t *Deneme) Update() error
- func (t *Deneme) WhereIf(cond bool, w client.PredicateI) *Deneme
- func (t *Deneme) WhereIfFn(cond bool, fn func() client.PredicateI) *Deneme
- func (t *Deneme) WhereIn(cond bool, w client.PredicateI) *Deneme
- func (t *Deneme) WithAccountList(opts ...func(*AccountList)) *client.Relation
- func (t *Deneme) WithTest(opts ...func(*Test)) *client.Relation
- type DenemeList
- func (t *DenemeList) Aggregate(f func(aggregate *client.Aggregate)) (func() error, error)
- func (t *DenemeList) AggregateRows(f func(aggregate *client.Aggregate)) (func() error, func(), error)
- func (t *DenemeList) AggregateSeq(fn func(*client.Aggregate)) iter.Seq2[int, error]
- func (t *DenemeList) AvgCount() (float64, error)
- func (t *DenemeList) AvgExpr(expr string, cast string, val any) error
- func (t *DenemeList) Count() (int, error)
- func (t *DenemeList) Create(list ...*Deneme) error
- func (t *DenemeList) Delete(list ...*Deneme) error
- func (t *DenemeList) DeleteWhere() (int64, error)
- func (t *DenemeList) DistinctString(field string) ([]string, error)
- func (t *DenemeList) GetByIDs(ids ...uuid.UUID) ([]*Deneme, error)
- func (t *DenemeList) GetByIDsMap(ids ...uuid.UUID) (map[uuid.UUID]*Deneme, error)
- func (t *DenemeList) GetDBName() string
- func (t *DenemeList) GetRelationList() *client.RelationList
- func (t *DenemeList) GetSelector() *DenemeResult
- func (t *DenemeList) IsExist() bool
- func (t *DenemeList) IsListModel() bool
- func (t *DenemeList) List() error
- func (t *DenemeList) ListWithTotal(skip, limit int) (int, error)
- func (t *DenemeList) MaxCount() (int, error)
- func (t *DenemeList) MinCount() (int, error)
- func (t *DenemeList) Order(field string) *DenemeList
- func (t *DenemeList) OrderDesc(field string) *DenemeList
- func (t *DenemeList) Paging(skip, limit int) *DenemeList
- func (t *DenemeList) ScanResult()
- func (t *DenemeList) Select(fields ...string) *DenemeList
- func (t *DenemeList) SetClient(client *client.Client)
- func (t *DenemeList) SetResult(result client.Result)
- func (t *DenemeList) SumCount() (int, error)
- func (t *DenemeList) SumExpr(expr string, cast string, val any) error
- func (t *DenemeList) Update(list ...*Deneme) error
- func (t *DenemeList) UpdateWhere(set map[string]any) (int64, error)
- func (t *DenemeList) WhereIf(cond bool, w client.PredicateI) *DenemeList
- func (t *DenemeList) WhereIfFn(cond bool, fn func() client.PredicateI) *DenemeList
- func (t *DenemeList) WhereIn(cond bool, w client.PredicateI) *DenemeList
- func (t *DenemeList) WithAccountList(opts ...func(*AccountList)) *client.Relation
- func (t *DenemeList) WithTest(opts ...func(*Test)) *client.Relation
- type DenemePredicate
- func (t *DenemePredicate) CountGreaterEqualThan(v int) *client.Where
- func (t *DenemePredicate) CountGreaterThan(v int) *client.Where
- func (t *DenemePredicate) CountLowerEqualThan(v int) *client.Where
- func (t *DenemePredicate) CountLowerThan(v int) *client.Where
- func (t *DenemePredicate) GetWhereInfoString() string
- func (t *DenemePredicate) IsCountEqual(v int) *client.Where
- func (t *DenemePredicate) IsCountIN(v ...int) *client.Where
- func (t *DenemePredicate) IsCountNotEqual(v int) *client.Where
- func (t *DenemePredicate) IsCountNotIN(v ...int) *client.Where
- func (t *DenemePredicate) IsDenemeTypeEqual(v DenemeType) *client.Where
- func (t *DenemePredicate) IsDenemeTypeIN(v ...DenemeType) *client.Where
- func (t *DenemePredicate) IsDenemeTypeNotEqual(v DenemeType) *client.Where
- func (t *DenemePredicate) IsDenemeTypeNotIN(v ...DenemeType) *client.Where
- func (t *DenemePredicate) IsIDEqual(v uuid.UUID) *client.Where
- func (t *DenemePredicate) IsIDILike(v string) *client.Where
- func (t *DenemePredicate) IsIDIN(v ...uuid.UUID) *client.Where
- func (t *DenemePredicate) IsIDLike(v string) *client.Where
- func (t *DenemePredicate) IsIDNotEqual(v uuid.UUID) *client.Where
- func (t *DenemePredicate) IsIDNotIN(v ...uuid.UUID) *client.Where
- func (t *DenemePredicate) IsIsActiveEqual(v bool) *client.Where
- func (t *DenemePredicate) IsIsActiveIN(v ...bool) *client.Where
- func (t *DenemePredicate) IsIsActiveNotEqual(v bool) *client.Where
- func (t *DenemePredicate) IsIsActiveNotIN(v ...bool) *client.Where
- func (t *DenemePredicate) IsTestIDEqual(v uuid.UUID) *client.Where
- func (t *DenemePredicate) IsTestIDILike(v string) *client.Where
- func (t *DenemePredicate) IsTestIDIN(v ...uuid.UUID) *client.Where
- func (t *DenemePredicate) IsTestIDLike(v string) *client.Where
- func (t *DenemePredicate) IsTestIDNil() *client.Where
- func (t *DenemePredicate) IsTestIDNotEqual(v uuid.UUID) *client.Where
- func (t *DenemePredicate) IsTestIDNotIN(v ...uuid.UUID) *client.Where
- func (t *DenemePredicate) IsTestIDNotNil() *client.Where
- func (t *DenemePredicate) ORWhere(w ...client.PredicateI)
- func (t *DenemePredicate) Where(w ...client.PredicateI)
- func (t *DenemePredicate) WhereIf(cond bool, w client.PredicateI) *DenemePredicate
- func (t *DenemePredicate) WhereIfFn(cond bool, fn func() client.PredicateI) *DenemePredicate
- func (t *DenemePredicate) WhereIn(cond bool, w client.PredicateI) *DenemePredicate
- type DenemeResult
- func (t *DenemeResult) GetDBName() string
- func (t *DenemeResult) GetRelations() []client.Result
- func (t *DenemeResult) GetSelectedFields() []*client.SelectedField
- func (t *DenemeResult) Init()
- func (t *DenemeResult) IsExist() bool
- func (t *DenemeResult) SelectAll()
- func (t *DenemeResult) SelectCount()
- func (t *DenemeResult) SelectDenemeType()
- func (t *DenemeResult) SelectID()
- func (t *DenemeResult) SelectIsActive()
- func (t *DenemeResult) SelectTestID()
- type DenemeType
- type EnumDBField
- func (s *EnumDBField) Default(v string) *EnumDBField
- func (s *EnumDBField) DefaultFunc(v func() string) *EnumDBField
- func (s *EnumDBField) GetDefault() string
- func (s *EnumDBField) GetSQLDefault() (string, bool)
- func (s *EnumDBField) GoType(t reflect.Type) *EnumDBField
- func (s *EnumDBField) SetDBName(v string) *EnumDBField
- type EnumValue
- type Field
- func (f *Field) CanBeGreater() bool
- func (f *Field) CanTime() bool
- func (f *Field) CanUUID() bool
- func (f *Field) CanUseIf() bool
- func (f *Field) DefaultFunc(v any)
- func (f *Field) GetAddressType() string
- func (f *Field) GetBaseType() string
- func (f *Field) GetCustomType() string
- func (f *Field) GetDBName() string
- func (f *Field) GetDefault() string
- func (f *Field) GetFieldType() int
- func (f *Field) GetName() string
- func (f *Field) GetNameLower() string
- func (f *Field) GetNameTitle() string
- func (f *Field) GetPrecision() int
- func (f *Field) GetRequiredPackages() []string
- func (f *Field) GetSQLDefault() (string, bool)
- func (f *Field) GetScale() int
- func (f *Field) GetType() string
- func (f *Field) IsCanIn() bool
- func (f *Field) IsComparable() bool
- func (f *Field) IsCustomType() bool
- func (f *Field) IsDefault() bool
- func (f *Field) IsNillable() bool
- func (f *Field) IsNumeric() bool
- func (f *Field) IsSerial() bool
- func (f *Field) NeedPrepare() bool
- func (f *Field) SetDBName(v string)
- func (f *Field) SetDBNameManually(name string)
- func (f *Field) SetNillable() *Field
- type FieldI
- type Float32DBField
- type Float64DBField
- type FuncStruct
- type Generation
- type Group
- func (t *Group) AddIntoAccount(relationship *Account) error
- func (t *Group) CheckPrimaryKey(v uuid.UUID) bool
- func (t *Group) Create() error
- func (t *Group) Delete() error
- func (t *Group) Get() error
- func (t *Group) GetChangedFields() map[string]any
- func (t *Group) GetContext() context.Context
- func (t *Group) GetDBName() string
- func (t *Group) GetData() map[string]any
- func (t *Group) GetDataNillable() *map[string]any
- func (t *Group) GetID() uuid.UUID
- func (t *Group) GetIDAsString() string
- func (t *Group) GetIDNillable() *uuid.UUID
- func (t *Group) GetName() string
- func (t *Group) GetNameNillable() *string
- func (t *Group) GetPrimaryKey() uuid.UUID
- func (t *Group) GetRelationList() *client.RelationList
- func (t *Group) GetSelector() *GroupResult
- func (t *Group) GetSurname() string
- func (t *Group) GetSurnameNillable() *string
- func (t *Group) IsExist() bool
- func (t *Group) IsInAccount(relationship *Account) (bool, error)
- func (t *Group) NameIN(v ...string) bool
- func (t *Group) NameNotIN(v ...string) bool
- func (t *Group) ParseID(v string) error
- func (t *Group) Refresh() error
- func (t *Group) RemoveFromAccount(relationship *Account) error
- func (t *Group) ScanResult()
- func (t *Group) Select(fields ...string) *Group
- func (t *Group) SetClient(client *client.Client)
- func (t *Group) SetData(v map[string]any)
- func (t *Group) SetDataField()
- func (t *Group) SetDataNillable(v *map[string]any)
- func (t *Group) SetDefaults()
- func (t *Group) SetID(v uuid.UUID)
- func (t *Group) SetIDField()
- func (t *Group) SetIDNillable(v *uuid.UUID)
- func (t *Group) SetName(v string)
- func (t *Group) SetNameField()
- func (t *Group) SetNameNillable(v *string)
- func (t *Group) SetResult(result client.Result)
- func (t *Group) SetSurname(v string)
- func (t *Group) SetSurnameField()
- func (t *Group) SetSurnameNillable(v *string)
- func (t *Group) SurnameIN(v ...string) bool
- func (t *Group) SurnameNotIN(v ...string) bool
- func (t *Group) Update() error
- func (t *Group) WhereIf(cond bool, w client.PredicateI) *Group
- func (t *Group) WhereIfFn(cond bool, fn func() client.PredicateI) *Group
- func (t *Group) WhereIn(cond bool, w client.PredicateI) *Group
- func (t *Group) WithAccountList(opts ...func(*AccountList)) *client.Relation
- type GroupList
- func (t *GroupList) Aggregate(f func(aggregate *client.Aggregate)) (func() error, error)
- func (t *GroupList) AggregateRows(f func(aggregate *client.Aggregate)) (func() error, func(), error)
- func (t *GroupList) AggregateSeq(fn func(*client.Aggregate)) iter.Seq2[int, error]
- func (t *GroupList) AvgExpr(expr string, cast string, val any) error
- func (t *GroupList) AvgName() (float64, error)
- func (t *GroupList) AvgSurname() (float64, error)
- func (t *GroupList) Count() (int, error)
- func (t *GroupList) Create(list ...*Group) error
- func (t *GroupList) Delete(list ...*Group) error
- func (t *GroupList) DeleteWhere() (int64, error)
- func (t *GroupList) DistinctString(field string) ([]string, error)
- func (t *GroupList) GetByIDs(ids ...uuid.UUID) ([]*Group, error)
- func (t *GroupList) GetByIDsMap(ids ...uuid.UUID) (map[uuid.UUID]*Group, error)
- func (t *GroupList) GetDBName() string
- func (t *GroupList) GetRelationList() *client.RelationList
- func (t *GroupList) GetSelector() *GroupResult
- func (t *GroupList) IsExist() bool
- func (t *GroupList) IsListModel() bool
- func (t *GroupList) List() error
- func (t *GroupList) ListWithTotal(skip, limit int) (int, error)
- func (t *GroupList) MaxName() (string, error)
- func (t *GroupList) MaxSurname() (string, error)
- func (t *GroupList) MinName() (string, error)
- func (t *GroupList) MinSurname() (string, error)
- func (t *GroupList) Order(field string) *GroupList
- func (t *GroupList) OrderDesc(field string) *GroupList
- func (t *GroupList) Paging(skip, limit int) *GroupList
- func (t *GroupList) ScanResult()
- func (t *GroupList) Select(fields ...string) *GroupList
- func (t *GroupList) SetClient(client *client.Client)
- func (t *GroupList) SetResult(result client.Result)
- func (t *GroupList) SumExpr(expr string, cast string, val any) error
- func (t *GroupList) SumName() (string, error)
- func (t *GroupList) SumSurname() (string, error)
- func (t *GroupList) Update(list ...*Group) error
- func (t *GroupList) UpdateWhere(set map[string]any) (int64, error)
- func (t *GroupList) WhereIf(cond bool, w client.PredicateI) *GroupList
- func (t *GroupList) WhereIfFn(cond bool, fn func() client.PredicateI) *GroupList
- func (t *GroupList) WhereIn(cond bool, w client.PredicateI) *GroupList
- func (t *GroupList) WithAccountList(opts ...func(*AccountList)) *client.Relation
- type GroupPredicate
- func (t *GroupPredicate) GetWhereInfoString() string
- func (t *GroupPredicate) IsDataEqual(v map[string]any) *client.Where
- func (t *GroupPredicate) IsDataIN(v ...map[string]any) *client.Where
- func (t *GroupPredicate) IsDataNotEqual(v map[string]any) *client.Where
- func (t *GroupPredicate) IsDataNotIN(v ...map[string]any) *client.Where
- func (t *GroupPredicate) IsIDEqual(v uuid.UUID) *client.Where
- func (t *GroupPredicate) IsIDILike(v string) *client.Where
- func (t *GroupPredicate) IsIDIN(v ...uuid.UUID) *client.Where
- func (t *GroupPredicate) IsIDLike(v string) *client.Where
- func (t *GroupPredicate) IsIDNotEqual(v uuid.UUID) *client.Where
- func (t *GroupPredicate) IsIDNotIN(v ...uuid.UUID) *client.Where
- func (t *GroupPredicate) IsNameEqual(v string) *client.Where
- func (t *GroupPredicate) IsNameILike(v string) *client.Where
- func (t *GroupPredicate) IsNameIN(v ...string) *client.Where
- func (t *GroupPredicate) IsNameLike(v string) *client.Where
- func (t *GroupPredicate) IsNameNotEqual(v string) *client.Where
- func (t *GroupPredicate) IsNameNotIN(v ...string) *client.Where
- func (t *GroupPredicate) IsSurnameEqual(v string) *client.Where
- func (t *GroupPredicate) IsSurnameILike(v string) *client.Where
- func (t *GroupPredicate) IsSurnameIN(v ...string) *client.Where
- func (t *GroupPredicate) IsSurnameLike(v string) *client.Where
- func (t *GroupPredicate) IsSurnameNotEqual(v string) *client.Where
- func (t *GroupPredicate) IsSurnameNotIN(v ...string) *client.Where
- func (t *GroupPredicate) ORWhere(w ...client.PredicateI)
- func (t *GroupPredicate) Where(w ...client.PredicateI)
- func (t *GroupPredicate) WhereIf(cond bool, w client.PredicateI) *GroupPredicate
- func (t *GroupPredicate) WhereIfFn(cond bool, fn func() client.PredicateI) *GroupPredicate
- func (t *GroupPredicate) WhereIn(cond bool, w client.PredicateI) *GroupPredicate
- type GroupResult
- func (t *GroupResult) GetDBName() string
- func (t *GroupResult) GetRelations() []client.Result
- func (t *GroupResult) GetSelectedFields() []*client.SelectedField
- func (t *GroupResult) Init()
- func (t *GroupResult) IsExist() bool
- func (t *GroupResult) SelectAll()
- func (t *GroupResult) SelectData()
- func (t *GroupResult) SelectID()
- func (t *GroupResult) SelectName()
- func (t *GroupResult) SelectSurname()
- type IDatabase
- type Index
- type IntDBField
- type JSONDBField
- func (u *JSONDBField) DefaultFunc(v func() map[string]any) *JSONDBField
- func (u *JSONDBField) GetDefault() string
- func (u *JSONDBField) GetSQLDefault() (string, bool)
- func (u *JSONDBField) PrepareFunc() string
- func (u *JSONDBField) SetDBName(v string) *JSONDBField
- func (u *JSONDBField) SetNillable() *JSONDBField
- type Options
- type PredicateI
- type QueryObserver
- type Relation
- type SmallIntDBField
- func (i *SmallIntDBField) AddSerial() *SmallIntDBField
- func (i *SmallIntDBField) Default(v int16) *SmallIntDBField
- func (i *SmallIntDBField) DefaultFunc(v func() int16) *SmallIntDBField
- func (i *SmallIntDBField) GetDefault() string
- func (i *SmallIntDBField) GetSQLDefault() (string, bool)
- func (i *SmallIntDBField) SetDBName(v string) *SmallIntDBField
- type StringArrayDBField
- func (s *StringArrayDBField) Default(v []string) *StringArrayDBField
- func (s *StringArrayDBField) DefaultFunc(v func() []string) *StringArrayDBField
- func (s *StringArrayDBField) GetDefault() string
- func (s *StringArrayDBField) GetSQLDefault() (string, bool)
- func (s *StringArrayDBField) SetDBName(v string) *StringArrayDBField
- type StringDBField
- type Table
- type Test
- func (t *Test) CheckPrimaryKey(v uuid.UUID) bool
- func (t *Test) Create() error
- func (t *Test) Delete() error
- func (t *Test) FormatCreatedAt(v string) string
- func (t *Test) Get() error
- func (t *Test) GetChangedFields() map[string]any
- func (t *Test) GetContext() context.Context
- func (t *Test) GetCreatedAt() time.Time
- func (t *Test) GetCreatedAtNillable() *time.Time
- func (t *Test) GetDBName() string
- func (t *Test) GetID() uuid.UUID
- func (t *Test) GetIDAsString() string
- func (t *Test) GetIDNillable() *uuid.UUID
- func (t *Test) GetInfo() *custom_data_type.Custom
- func (t *Test) GetInfoValue() custom_data_type.Custom
- func (t *Test) GetMetadata() *map[string]any
- func (t *Test) GetMetadataValue() map[string]any
- func (t *Test) GetName() string
- func (t *Test) GetNameNillable() *string
- func (t *Test) GetPrimaryKey() uuid.UUID
- func (t *Test) GetRelationList() *client.RelationList
- func (t *Test) GetSelector() *TestResult
- func (t *Test) GetType() string
- func (t *Test) GetTypeNillable() *string
- func (t *Test) IsExist() bool
- func (t *Test) NameIN(v ...string) bool
- func (t *Test) NameNotIN(v ...string) bool
- func (t *Test) ParseCreatedAt(layout, value string) error
- func (t *Test) ParseID(v string) error
- func (t *Test) Refresh() error
- func (t *Test) ScanResult()
- func (t *Test) Select(fields ...string) *Test
- func (t *Test) SetClient(client *client.Client)
- func (t *Test) SetCreatedAt(v time.Time)
- func (t *Test) SetCreatedAtField()
- func (t *Test) SetCreatedAtNillable(v *time.Time)
- func (t *Test) SetDefaults()
- func (t *Test) SetID(v uuid.UUID)
- func (t *Test) SetIDField()
- func (t *Test) SetIDNillable(v *uuid.UUID)
- func (t *Test) SetInfo(v *custom_data_type.Custom)
- func (t *Test) SetInfoField()
- func (t *Test) SetInfoValue(v custom_data_type.Custom)
- func (t *Test) SetMetadata(v *map[string]any)
- func (t *Test) SetMetadataField()
- func (t *Test) SetMetadataValue(v map[string]any)
- func (t *Test) SetName(v string)
- func (t *Test) SetNameField()
- func (t *Test) SetNameNillable(v *string)
- func (t *Test) SetResult(result client.Result)
- func (t *Test) SetType(v string)
- func (t *Test) SetTypeField()
- func (t *Test) SetTypeNillable(v *string)
- func (t *Test) TypeIN(v ...string) bool
- func (t *Test) TypeNotIN(v ...string) bool
- func (t *Test) Update() error
- func (t *Test) WhereIf(cond bool, w client.PredicateI) *Test
- func (t *Test) WhereIfFn(cond bool, fn func() client.PredicateI) *Test
- func (t *Test) WhereIn(cond bool, w client.PredicateI) *Test
- func (t *Test) WithDenemeList(opts ...func(*DenemeList)) *client.Relation
- type TestList
- func (t *TestList) Aggregate(f func(aggregate *client.Aggregate)) (func() error, error)
- func (t *TestList) AggregateRows(f func(aggregate *client.Aggregate)) (func() error, func(), error)
- func (t *TestList) AggregateSeq(fn func(*client.Aggregate)) iter.Seq2[int, error]
- func (t *TestList) AvgExpr(expr string, cast string, val any) error
- func (t *TestList) AvgName() (float64, error)
- func (t *TestList) AvgType() (float64, error)
- func (t *TestList) Count() (int, error)
- func (t *TestList) Create(list ...*Test) error
- func (t *TestList) Delete(list ...*Test) error
- func (t *TestList) DeleteWhere() (int64, error)
- func (t *TestList) DistinctString(field string) ([]string, error)
- func (t *TestList) GetByIDs(ids ...uuid.UUID) ([]*Test, error)
- func (t *TestList) GetByIDsMap(ids ...uuid.UUID) (map[uuid.UUID]*Test, error)
- func (t *TestList) GetDBName() string
- func (t *TestList) GetRelationList() *client.RelationList
- func (t *TestList) GetSelector() *TestResult
- func (t *TestList) IsExist() bool
- func (t *TestList) IsListModel() bool
- func (t *TestList) List() error
- func (t *TestList) ListWithTotal(skip, limit int) (int, error)
- func (t *TestList) MaxCreatedAt() (time.Time, error)
- func (t *TestList) MaxName() (string, error)
- func (t *TestList) MaxType() (string, error)
- func (t *TestList) MinCreatedAt() (time.Time, error)
- func (t *TestList) MinName() (string, error)
- func (t *TestList) MinType() (string, error)
- func (t *TestList) Order(field string) *TestList
- func (t *TestList) OrderDesc(field string) *TestList
- func (t *TestList) Paging(skip, limit int) *TestList
- func (t *TestList) ScanResult()
- func (t *TestList) Select(fields ...string) *TestList
- func (t *TestList) SetClient(client *client.Client)
- func (t *TestList) SetResult(result client.Result)
- func (t *TestList) SumExpr(expr string, cast string, val any) error
- func (t *TestList) SumName() (string, error)
- func (t *TestList) SumType() (string, error)
- func (t *TestList) Update(list ...*Test) error
- func (t *TestList) UpdateWhere(set map[string]any) (int64, error)
- func (t *TestList) WhereIf(cond bool, w client.PredicateI) *TestList
- func (t *TestList) WhereIfFn(cond bool, fn func() client.PredicateI) *TestList
- func (t *TestList) WhereIn(cond bool, w client.PredicateI) *TestList
- func (t *TestList) WithDenemeList(opts ...func(*DenemeList)) *client.Relation
- type TestPredicate
- func (t *TestPredicate) CreatedAtGreaterEqualThan(v time.Time) *client.Where
- func (t *TestPredicate) CreatedAtGreaterThan(v time.Time) *client.Where
- func (t *TestPredicate) CreatedAtLowerEqualThan(v time.Time) *client.Where
- func (t *TestPredicate) CreatedAtLowerThan(v time.Time) *client.Where
- func (t *TestPredicate) GetWhereInfoString() string
- func (t *TestPredicate) IsCreatedAtEqual(v time.Time) *client.Where
- func (t *TestPredicate) IsCreatedAtIN(v ...time.Time) *client.Where
- func (t *TestPredicate) IsCreatedAtNotEqual(v time.Time) *client.Where
- func (t *TestPredicate) IsCreatedAtNotIN(v ...time.Time) *client.Where
- func (t *TestPredicate) IsIDEqual(v uuid.UUID) *client.Where
- func (t *TestPredicate) IsIDILike(v string) *client.Where
- func (t *TestPredicate) IsIDIN(v ...uuid.UUID) *client.Where
- func (t *TestPredicate) IsIDLike(v string) *client.Where
- func (t *TestPredicate) IsIDNotEqual(v uuid.UUID) *client.Where
- func (t *TestPredicate) IsIDNotIN(v ...uuid.UUID) *client.Where
- func (t *TestPredicate) IsInfoEqual(v custom_data_type.Custom) *client.Where
- func (t *TestPredicate) IsInfoIN(v ...custom_data_type.Custom) *client.Where
- func (t *TestPredicate) IsInfoNil() *client.Where
- func (t *TestPredicate) IsInfoNotEqual(v custom_data_type.Custom) *client.Where
- func (t *TestPredicate) IsInfoNotIN(v ...custom_data_type.Custom) *client.Where
- func (t *TestPredicate) IsInfoNotNil() *client.Where
- func (t *TestPredicate) IsMetadataEqual(v map[string]any) *client.Where
- func (t *TestPredicate) IsMetadataIN(v ...map[string]any) *client.Where
- func (t *TestPredicate) IsMetadataNil() *client.Where
- func (t *TestPredicate) IsMetadataNotEqual(v map[string]any) *client.Where
- func (t *TestPredicate) IsMetadataNotIN(v ...map[string]any) *client.Where
- func (t *TestPredicate) IsMetadataNotNil() *client.Where
- func (t *TestPredicate) IsNameEqual(v string) *client.Where
- func (t *TestPredicate) IsNameILike(v string) *client.Where
- func (t *TestPredicate) IsNameIN(v ...string) *client.Where
- func (t *TestPredicate) IsNameLike(v string) *client.Where
- func (t *TestPredicate) IsNameNotEqual(v string) *client.Where
- func (t *TestPredicate) IsNameNotIN(v ...string) *client.Where
- func (t *TestPredicate) IsTypeEqual(v string) *client.Where
- func (t *TestPredicate) IsTypeILike(v string) *client.Where
- func (t *TestPredicate) IsTypeIN(v ...string) *client.Where
- func (t *TestPredicate) IsTypeLike(v string) *client.Where
- func (t *TestPredicate) IsTypeNotEqual(v string) *client.Where
- func (t *TestPredicate) IsTypeNotIN(v ...string) *client.Where
- func (t *TestPredicate) ORWhere(w ...client.PredicateI)
- func (t *TestPredicate) Where(w ...client.PredicateI)
- func (t *TestPredicate) WhereIf(cond bool, w client.PredicateI) *TestPredicate
- func (t *TestPredicate) WhereIfFn(cond bool, fn func() client.PredicateI) *TestPredicate
- func (t *TestPredicate) WhereIn(cond bool, w client.PredicateI) *TestPredicate
- type TestResult
- func (t *TestResult) GetDBName() string
- func (t *TestResult) GetRelations() []client.Result
- func (t *TestResult) GetSelectedFields() []*client.SelectedField
- func (t *TestResult) Init()
- func (t *TestResult) IsExist() bool
- func (t *TestResult) SelectAll()
- func (t *TestResult) SelectCreatedAt()
- func (t *TestResult) SelectID()
- func (t *TestResult) SelectInfo()
- func (t *TestResult) SelectMetadata()
- func (t *TestResult) SelectName()
- func (t *TestResult) SelectType()
- type TimeDBField
- func (t *TimeDBField) DefaultFunc(v func() time.Time) *TimeDBField
- func (t *TimeDBField) GetDefault() string
- func (t *TimeDBField) GetSQLDefault() (string, bool)
- func (t *TimeDBField) PrepareFunc() string
- func (t *TimeDBField) SetDBName(v string) *TimeDBField
- func (t *TimeDBField) SetNillable() *TimeDBField
- type Transaction
- func (t *Transaction) Exec(ctx context.Context, sql string, arguments ...any) (commandTag pgconn.CommandTag, err error)
- func (t Transaction) GetLogger() logger.Logger
- func (t *Transaction) Query(ctx context.Context, sql string, args ...any) (rows pgx.Rows, err error)
- func (t *Transaction) QueryRow(ctx context.Context, sql string, args ...any) (row pgx.Row)
- type UUIDDBField
- func (u *UUIDDBField) DefaultFunc(v func() uuid.UUID) *UUIDDBField
- func (u *UUIDDBField) GetDefault() string
- func (u *UUIDDBField) GetSQLDefault() (string, bool)
- func (u *UUIDDBField) PrepareFunc() string
- func (u *UUIDDBField) SetDBName(v string) *UUIDDBField
- func (u *UUIDDBField) SetNillable() *UUIDDBField
- type UintDBField
- func (i *UintDBField) AddSerial() *UintDBField
- func (i *UintDBField) Default(v uint) *UintDBField
- func (i *UintDBField) DefaultFunc(v func() uint) *UintDBField
- func (i *UintDBField) GetDefault() string
- func (i *UintDBField) GetSQLDefault() (string, bool)
- func (i *UintDBField) SetDBName(v string) *UintDBField
Constants ¶
View Source
const ( AccountTableIDField string = "id" AccountTableNameField string = "name" AccountTableSurnameField string = "surname" AccountTableStatusField string = "status" AccountTableDenemeIDField string = "deneme_id" AccountTableSerialField string = "serial" AccountTableRoleField string = "role" )
View Source
const ( DenemeTableIDField string = "id" DenemeTableTestIDField string = "test_id" DenemeTableCountField string = "count" DenemeTableIsActiveField string = "is_active" DenemeTableDenemeTypeField string = "deneme_type" )
View Source
const ( FieldTypeBool = iota + 1 FieldTypeEnum FieldTypeInt FieldTypeSmallInt FieldTypeBigInt FieldTypeFloat32 FieldTypeFloat64 FieldTypeString FieldTypeTime FieldTypeUUID FieldTypeUint FieldTypeByte FieldTypeJSON FieldTypeCustom FieldTypeDecimal FieldTypeStringArray )
View Source
const ( GroupTableIDField string = "id" GroupTableNameField string = "name" GroupTableSurnameField string = "surname" GroupTableDataField string = "data" )
View Source
const ( RelationTypeManyToOne = iota RelationTypeOneToMany RelationTypeManyToMany )
View Source
const ( TestTableIDField string = "id" TestTableNameField string = "name" TestTableCreatedAtField string = "created_at" TestTableInfoField string = "info" TestTableTypeField string = "type" TestTableMetadataField string = "metadata" )
View Source
const AccountTableName = "account"
View Source
const DenemeTableName = "deneme"
View Source
const GroupTableName = "group"
View Source
const TestTableName = "test"
Variables ¶
This section is empty.
Functions ¶
func ConvertToSnakeCase ¶
func SetDatabaseAccountListOperationHook ¶ added in v0.8.16
func SetDatabaseAccountListOperationHook(f func(ctx context.Context, operationInfo *client.OperationInfo, model *AccountList, operationFunc func() error) error)
func SetDatabaseAccountOperationHook ¶ added in v0.8.16
func SetDatabaseDenemeListOperationHook ¶ added in v0.8.16
func SetDatabaseDenemeListOperationHook(f func(ctx context.Context, operationInfo *client.OperationInfo, model *DenemeList, operationFunc func() error) error)
func SetDatabaseDenemeOperationHook ¶ added in v0.8.16
func SetDatabaseGroupListOperationHook ¶ added in v0.8.16
func SetDatabaseGroupOperationHook ¶ added in v0.8.16
func SetDatabaseTestListOperationHook ¶ added in v0.8.16
func SetDatabaseTestOperationHook ¶ added in v0.8.16
func ToCamelCase ¶ added in v0.8.2
Types ¶
type Account ¶ added in v0.8.16
type Account struct {
AccountPredicate
Deneme *Deneme
GroupList *GroupList
// contains filtered or unexported fields
}
func NewAccount ¶ added in v0.8.16
func NewAccount(ctx context.Context, dc client.DatabaseClient) *Account
func NewRelationAccount ¶ added in v0.8.16
func NewRelationAccount(ctx context.Context, dc client.DatabaseClient) *Account
func (*Account) AddIntoGroup ¶ added in v0.8.16
func (*Account) CheckPrimaryKey ¶ added in v0.8.16
func (*Account) GetChangedFields ¶ added in v0.8.16
func (*Account) GetContext ¶ added in v0.8.16
func (*Account) GetDenemeID ¶ added in v0.8.16
func (*Account) GetDenemeIDAsString ¶ added in v0.8.16
func (*Account) GetDenemeIDValue ¶ added in v0.8.16
func (*Account) GetIDAsString ¶ added in v0.8.16
func (*Account) GetIDNillable ¶ added in v0.8.16
func (*Account) GetNameNillable ¶ added in v0.8.16
func (*Account) GetPrimaryKey ¶ added in v0.8.16
func (*Account) GetRelationList ¶ added in v0.8.16
func (t *Account) GetRelationList() *client.RelationList
func (*Account) GetRole ¶ added in v0.8.21
func (t *Account) GetRole() custom_data_type.UserRole
func (*Account) GetRoleNillable ¶ added in v0.8.21
func (t *Account) GetRoleNillable() *custom_data_type.UserRole
func (*Account) GetSelector ¶ added in v0.8.16
func (t *Account) GetSelector() *AccountResult
func (*Account) GetSerialNillable ¶ added in v0.8.16
func (*Account) GetStatusNillable ¶ added in v0.8.16
func (*Account) GetSurname ¶ added in v0.8.16
func (*Account) GetSurnameNillable ¶ added in v0.8.16
func (*Account) ParseDenemeID ¶ added in v0.8.16
func (*Account) RemoveFromGroup ¶ added in v0.8.16
func (*Account) RoleIN ¶ added in v0.8.21
func (t *Account) RoleIN(v ...custom_data_type.UserRole) bool
func (*Account) RoleNotIN ¶ added in v0.8.21
func (t *Account) RoleNotIN(v ...custom_data_type.UserRole) bool
func (*Account) ScanResult ¶ added in v0.8.16
func (t *Account) ScanResult()
func (*Account) SerialNotIN ¶ added in v0.8.16
func (*Account) SetDefaults ¶ added in v0.8.16
func (t *Account) SetDefaults()
func (*Account) SetDenemeID ¶ added in v0.8.16
func (*Account) SetDenemeIDField ¶ added in v0.8.16
func (t *Account) SetDenemeIDField()
func (*Account) SetDenemeIDValue ¶ added in v0.8.16
func (*Account) SetIDField ¶ added in v0.8.16
func (t *Account) SetIDField()
func (*Account) SetIDNillable ¶ added in v0.8.16
func (*Account) SetNameField ¶ added in v0.8.16
func (t *Account) SetNameField()
func (*Account) SetNameNillable ¶ added in v0.8.16
func (*Account) SetRole ¶ added in v0.8.21
func (t *Account) SetRole(v custom_data_type.UserRole)
func (*Account) SetRoleField ¶ added in v0.8.21
func (t *Account) SetRoleField()
func (*Account) SetRoleNillable ¶ added in v0.8.21
func (t *Account) SetRoleNillable(v *custom_data_type.UserRole)
func (*Account) SetSerialField ¶ added in v0.8.16
func (t *Account) SetSerialField()
func (*Account) SetSerialNillable ¶ added in v0.8.16
func (*Account) SetStatusField ¶ added in v0.8.16
func (t *Account) SetStatusField()
func (*Account) SetStatusNillable ¶ added in v0.8.16
func (*Account) SetSurname ¶ added in v0.8.16
func (*Account) SetSurnameField ¶ added in v0.8.16
func (t *Account) SetSurnameField()
func (*Account) SetSurnameNillable ¶ added in v0.8.16
func (*Account) StatusNotIN ¶ added in v0.8.16
func (*Account) SurnameNotIN ¶ added in v0.8.16
func (*Account) WhereIf ¶ added in v0.8.21
func (t *Account) WhereIf(cond bool, w client.PredicateI) *Account
func (*Account) WhereIfFn ¶ added in v0.8.21
func (t *Account) WhereIfFn(cond bool, fn func() client.PredicateI) *Account
func (*Account) WhereIn ¶ added in v0.8.21
func (t *Account) WhereIn(cond bool, w client.PredicateI) *Account
func (*Account) WithDeneme ¶ added in v0.8.16
type AccountList ¶ added in v0.8.16
type AccountList struct {
Items []*Account
AccountPredicate
// contains filtered or unexported fields
}
func NewAccountList ¶ added in v0.8.16
func NewAccountList(ctx context.Context, dc client.DatabaseClient) *AccountList
func NewRelationAccountList ¶ added in v0.8.16
func NewRelationAccountList(ctx context.Context, dc client.DatabaseClient) *AccountList
func (*AccountList) Aggregate ¶ added in v0.8.16
func (t *AccountList) Aggregate(f func(aggregate *client.Aggregate)) (func() error, error)
func (*AccountList) AggregateRows ¶ added in v0.8.21
func (t *AccountList) AggregateRows(f func(aggregate *client.Aggregate)) (func() error, func(), error)
func (*AccountList) AggregateSeq ¶ added in v0.8.21
func (*AccountList) AvgExpr ¶ added in v0.8.21
func (t *AccountList) AvgExpr(expr string, cast string, val any) error
func (*AccountList) AvgName ¶ added in v0.8.21
func (t *AccountList) AvgName() (float64, error)
func (*AccountList) AvgSerial ¶ added in v0.8.16
func (t *AccountList) AvgSerial() (float64, error)
func (*AccountList) AvgStatus ¶ added in v0.8.21
func (t *AccountList) AvgStatus() (float64, error)
func (*AccountList) AvgSurname ¶ added in v0.8.21
func (t *AccountList) AvgSurname() (float64, error)
func (*AccountList) Count ¶ added in v0.8.16
func (t *AccountList) Count() (int, error)
func (*AccountList) Create ¶ added in v0.8.16
func (t *AccountList) Create(list ...*Account) error
func (*AccountList) Delete ¶ added in v0.8.16
func (t *AccountList) Delete(list ...*Account) error
func (*AccountList) DeleteWhere ¶ added in v0.8.21
func (t *AccountList) DeleteWhere() (int64, error)
func (*AccountList) DistinctString ¶ added in v0.8.16
func (t *AccountList) DistinctString(field string) ([]string, error)
func (*AccountList) GetByIDs ¶ added in v0.8.21
func (t *AccountList) GetByIDs(ids ...uuid.UUID) ([]*Account, error)
func (*AccountList) GetByIDsMap ¶ added in v0.8.21
func (*AccountList) GetDBName ¶ added in v0.8.16
func (t *AccountList) GetDBName() string
func (*AccountList) GetRelationList ¶ added in v0.8.16
func (t *AccountList) GetRelationList() *client.RelationList
func (*AccountList) GetSelector ¶ added in v0.8.16
func (t *AccountList) GetSelector() *AccountResult
func (*AccountList) IsExist ¶ added in v0.8.16
func (t *AccountList) IsExist() bool
func (*AccountList) IsListModel ¶ added in v0.8.21
func (t *AccountList) IsListModel() bool
func (*AccountList) List ¶ added in v0.8.16
func (t *AccountList) List() error
func (*AccountList) ListWithTotal ¶ added in v0.8.21
func (t *AccountList) ListWithTotal(skip, limit int) (int, error)
func (*AccountList) MaxName ¶ added in v0.8.16
func (t *AccountList) MaxName() (string, error)
func (*AccountList) MaxSerial ¶ added in v0.8.16
func (t *AccountList) MaxSerial() (uint, error)
func (*AccountList) MaxStatus ¶ added in v0.8.16
func (t *AccountList) MaxStatus() (string, error)
func (*AccountList) MaxSurname ¶ added in v0.8.16
func (t *AccountList) MaxSurname() (string, error)
func (*AccountList) MinName ¶ added in v0.8.16
func (t *AccountList) MinName() (string, error)
func (*AccountList) MinSerial ¶ added in v0.8.16
func (t *AccountList) MinSerial() (uint, error)
func (*AccountList) MinStatus ¶ added in v0.8.16
func (t *AccountList) MinStatus() (string, error)
func (*AccountList) MinSurname ¶ added in v0.8.16
func (t *AccountList) MinSurname() (string, error)
func (*AccountList) Order ¶ added in v0.8.16
func (t *AccountList) Order(field string) *AccountList
func (*AccountList) OrderDesc ¶ added in v0.8.16
func (t *AccountList) OrderDesc(field string) *AccountList
func (*AccountList) Paging ¶ added in v0.8.16
func (t *AccountList) Paging(skip, limit int) *AccountList
func (*AccountList) ScanResult ¶ added in v0.8.16
func (t *AccountList) ScanResult()
func (*AccountList) Select ¶ added in v0.8.21
func (t *AccountList) Select(fields ...string) *AccountList
func (*AccountList) SetClient ¶ added in v0.8.16
func (t *AccountList) SetClient(client *client.Client)
func (*AccountList) SetResult ¶ added in v0.8.16
func (t *AccountList) SetResult(result client.Result)
func (*AccountList) SumExpr ¶ added in v0.8.21
func (t *AccountList) SumExpr(expr string, cast string, val any) error
func (*AccountList) SumName ¶ added in v0.8.21
func (t *AccountList) SumName() (string, error)
func (*AccountList) SumSerial ¶ added in v0.8.16
func (t *AccountList) SumSerial() (uint, error)
func (*AccountList) SumStatus ¶ added in v0.8.21
func (t *AccountList) SumStatus() (string, error)
func (*AccountList) SumSurname ¶ added in v0.8.21
func (t *AccountList) SumSurname() (string, error)
func (*AccountList) Update ¶ added in v0.8.16
func (t *AccountList) Update(list ...*Account) error
func (*AccountList) UpdateWhere ¶ added in v0.8.21
func (t *AccountList) UpdateWhere(set map[string]any) (int64, error)
func (*AccountList) WhereIf ¶ added in v0.8.21
func (t *AccountList) WhereIf(cond bool, w client.PredicateI) *AccountList
func (*AccountList) WhereIfFn ¶ added in v0.8.21
func (t *AccountList) WhereIfFn(cond bool, fn func() client.PredicateI) *AccountList
func (*AccountList) WhereIn ¶ added in v0.8.21
func (t *AccountList) WhereIn(cond bool, w client.PredicateI) *AccountList
func (*AccountList) WithDeneme ¶ added in v0.8.16
func (t *AccountList) WithDeneme(opts ...func(*Deneme)) *client.Relation
func (*AccountList) WithGroupList ¶ added in v0.8.16
func (t *AccountList) WithGroupList(opts ...func(*GroupList)) *client.Relation
type AccountPredicate ¶ added in v0.8.16
type AccountPredicate struct {
// contains filtered or unexported fields
}
func (*AccountPredicate) GetWhereInfoString ¶ added in v0.8.16
func (t *AccountPredicate) GetWhereInfoString() string
func (*AccountPredicate) IsDenemeIDEqual ¶ added in v0.8.16
func (t *AccountPredicate) IsDenemeIDEqual(v uuid.UUID) *client.Where
func (*AccountPredicate) IsDenemeIDILike ¶ added in v0.8.21
func (t *AccountPredicate) IsDenemeIDILike(v string) *client.Where
func (*AccountPredicate) IsDenemeIDIN ¶ added in v0.8.16
func (t *AccountPredicate) IsDenemeIDIN(v ...uuid.UUID) *client.Where
func (*AccountPredicate) IsDenemeIDLike ¶ added in v0.8.21
func (t *AccountPredicate) IsDenemeIDLike(v string) *client.Where
func (*AccountPredicate) IsDenemeIDNil ¶ added in v0.8.16
func (t *AccountPredicate) IsDenemeIDNil() *client.Where
func (*AccountPredicate) IsDenemeIDNotEqual ¶ added in v0.8.16
func (t *AccountPredicate) IsDenemeIDNotEqual(v uuid.UUID) *client.Where
func (*AccountPredicate) IsDenemeIDNotIN ¶ added in v0.8.16
func (t *AccountPredicate) IsDenemeIDNotIN(v ...uuid.UUID) *client.Where
func (*AccountPredicate) IsDenemeIDNotNil ¶ added in v0.8.16
func (t *AccountPredicate) IsDenemeIDNotNil() *client.Where
func (*AccountPredicate) IsIDEqual ¶ added in v0.8.16
func (t *AccountPredicate) IsIDEqual(v uuid.UUID) *client.Where
func (*AccountPredicate) IsIDILike ¶ added in v0.8.21
func (t *AccountPredicate) IsIDILike(v string) *client.Where
func (*AccountPredicate) IsIDIN ¶ added in v0.8.16
func (t *AccountPredicate) IsIDIN(v ...uuid.UUID) *client.Where
func (*AccountPredicate) IsIDLike ¶ added in v0.8.21
func (t *AccountPredicate) IsIDLike(v string) *client.Where
func (*AccountPredicate) IsIDNotEqual ¶ added in v0.8.16
func (t *AccountPredicate) IsIDNotEqual(v uuid.UUID) *client.Where
func (*AccountPredicate) IsIDNotIN ¶ added in v0.8.16
func (t *AccountPredicate) IsIDNotIN(v ...uuid.UUID) *client.Where
func (*AccountPredicate) IsNameEqual ¶ added in v0.8.16
func (t *AccountPredicate) IsNameEqual(v string) *client.Where
func (*AccountPredicate) IsNameILike ¶ added in v0.8.16
func (t *AccountPredicate) IsNameILike(v string) *client.Where
func (*AccountPredicate) IsNameIN ¶ added in v0.8.16
func (t *AccountPredicate) IsNameIN(v ...string) *client.Where
func (*AccountPredicate) IsNameLike ¶ added in v0.8.16
func (t *AccountPredicate) IsNameLike(v string) *client.Where
func (*AccountPredicate) IsNameNotEqual ¶ added in v0.8.16
func (t *AccountPredicate) IsNameNotEqual(v string) *client.Where
func (*AccountPredicate) IsNameNotIN ¶ added in v0.8.16
func (t *AccountPredicate) IsNameNotIN(v ...string) *client.Where
func (*AccountPredicate) IsRoleEqual ¶ added in v0.8.21
func (t *AccountPredicate) IsRoleEqual(v custom_data_type.UserRole) *client.Where
func (*AccountPredicate) IsRoleIN ¶ added in v0.8.21
func (t *AccountPredicate) IsRoleIN(v ...custom_data_type.UserRole) *client.Where
func (*AccountPredicate) IsRoleNotEqual ¶ added in v0.8.21
func (t *AccountPredicate) IsRoleNotEqual(v custom_data_type.UserRole) *client.Where
func (*AccountPredicate) IsRoleNotIN ¶ added in v0.8.21
func (t *AccountPredicate) IsRoleNotIN(v ...custom_data_type.UserRole) *client.Where
func (*AccountPredicate) IsSerialEqual ¶ added in v0.8.16
func (t *AccountPredicate) IsSerialEqual(v uint) *client.Where
func (*AccountPredicate) IsSerialIN ¶ added in v0.8.16
func (t *AccountPredicate) IsSerialIN(v ...uint) *client.Where
func (*AccountPredicate) IsSerialNotEqual ¶ added in v0.8.16
func (t *AccountPredicate) IsSerialNotEqual(v uint) *client.Where
func (*AccountPredicate) IsSerialNotIN ¶ added in v0.8.16
func (t *AccountPredicate) IsSerialNotIN(v ...uint) *client.Where
func (*AccountPredicate) IsStatusEqual ¶ added in v0.8.16
func (t *AccountPredicate) IsStatusEqual(v string) *client.Where
func (*AccountPredicate) IsStatusILike ¶ added in v0.8.16
func (t *AccountPredicate) IsStatusILike(v string) *client.Where
func (*AccountPredicate) IsStatusIN ¶ added in v0.8.16
func (t *AccountPredicate) IsStatusIN(v ...string) *client.Where
func (*AccountPredicate) IsStatusLike ¶ added in v0.8.16
func (t *AccountPredicate) IsStatusLike(v string) *client.Where
func (*AccountPredicate) IsStatusNotEqual ¶ added in v0.8.16
func (t *AccountPredicate) IsStatusNotEqual(v string) *client.Where
func (*AccountPredicate) IsStatusNotIN ¶ added in v0.8.16
func (t *AccountPredicate) IsStatusNotIN(v ...string) *client.Where
func (*AccountPredicate) IsSurnameEqual ¶ added in v0.8.16
func (t *AccountPredicate) IsSurnameEqual(v string) *client.Where
func (*AccountPredicate) IsSurnameILike ¶ added in v0.8.16
func (t *AccountPredicate) IsSurnameILike(v string) *client.Where
func (*AccountPredicate) IsSurnameIN ¶ added in v0.8.16
func (t *AccountPredicate) IsSurnameIN(v ...string) *client.Where
func (*AccountPredicate) IsSurnameLike ¶ added in v0.8.16
func (t *AccountPredicate) IsSurnameLike(v string) *client.Where
func (*AccountPredicate) IsSurnameNotEqual ¶ added in v0.8.16
func (t *AccountPredicate) IsSurnameNotEqual(v string) *client.Where
func (*AccountPredicate) IsSurnameNotIN ¶ added in v0.8.16
func (t *AccountPredicate) IsSurnameNotIN(v ...string) *client.Where
func (*AccountPredicate) ORWhere ¶ added in v0.8.16
func (t *AccountPredicate) ORWhere(w ...client.PredicateI)
func (*AccountPredicate) SerialGreaterEqualThan ¶ added in v0.8.16
func (t *AccountPredicate) SerialGreaterEqualThan(v uint) *client.Where
func (*AccountPredicate) SerialGreaterThan ¶ added in v0.8.16
func (t *AccountPredicate) SerialGreaterThan(v uint) *client.Where
func (*AccountPredicate) SerialLowerEqualThan ¶ added in v0.8.16
func (t *AccountPredicate) SerialLowerEqualThan(v uint) *client.Where
func (*AccountPredicate) SerialLowerThan ¶ added in v0.8.16
func (t *AccountPredicate) SerialLowerThan(v uint) *client.Where
func (*AccountPredicate) Where ¶ added in v0.8.16
func (t *AccountPredicate) Where(w ...client.PredicateI)
func (*AccountPredicate) WhereIf ¶ added in v0.8.21
func (t *AccountPredicate) WhereIf(cond bool, w client.PredicateI) *AccountPredicate
func (*AccountPredicate) WhereIfFn ¶ added in v0.8.21
func (t *AccountPredicate) WhereIfFn(cond bool, fn func() client.PredicateI) *AccountPredicate
func (*AccountPredicate) WhereIn ¶ added in v0.8.21
func (t *AccountPredicate) WhereIn(cond bool, w client.PredicateI) *AccountPredicate
type AccountResult ¶ added in v0.8.16
type AccountResult struct {
Deneme *DenemeResult
Group *GroupResult
// contains filtered or unexported fields
}
func (*AccountResult) GetDBName ¶ added in v0.8.16
func (t *AccountResult) GetDBName() string
func (*AccountResult) GetRelations ¶ added in v0.8.16
func (t *AccountResult) GetRelations() []client.Result
func (*AccountResult) GetSelectedFields ¶ added in v0.8.16
func (t *AccountResult) GetSelectedFields() []*client.SelectedField
func (*AccountResult) Init ¶ added in v0.8.16
func (t *AccountResult) Init()
func (*AccountResult) IsExist ¶ added in v0.8.16
func (t *AccountResult) IsExist() bool
func (*AccountResult) SelectAll ¶ added in v0.8.16
func (t *AccountResult) SelectAll()
func (*AccountResult) SelectDenemeID ¶ added in v0.8.16
func (t *AccountResult) SelectDenemeID()
func (*AccountResult) SelectID ¶ added in v0.8.16
func (t *AccountResult) SelectID()
func (*AccountResult) SelectName ¶ added in v0.8.16
func (t *AccountResult) SelectName()
func (*AccountResult) SelectRole ¶ added in v0.8.21
func (t *AccountResult) SelectRole()
func (*AccountResult) SelectSerial ¶ added in v0.8.16
func (t *AccountResult) SelectSerial()
func (*AccountResult) SelectStatus ¶ added in v0.8.16
func (t *AccountResult) SelectStatus()
func (*AccountResult) SelectSurname ¶ added in v0.8.16
func (t *AccountResult) SelectSurname()
type BigIntDBField ¶ added in v0.8.23
type BigIntDBField struct {
*Field
DefaultValue int64
DefaultFuncStruct *FuncStruct
}
func BigIntField ¶ added in v0.8.23
func BigIntField(name string) *BigIntDBField
func (*BigIntDBField) AddSerial ¶ added in v0.8.23
func (i *BigIntDBField) AddSerial() *BigIntDBField
func (*BigIntDBField) Default ¶ added in v0.8.23
func (i *BigIntDBField) Default(v int64) *BigIntDBField
func (*BigIntDBField) DefaultFunc ¶ added in v0.8.23
func (i *BigIntDBField) DefaultFunc(v func() int64) *BigIntDBField
func (*BigIntDBField) GetDefault ¶ added in v0.8.23
func (i *BigIntDBField) GetDefault() string
func (*BigIntDBField) GetSQLDefault ¶ added in v0.8.23
func (i *BigIntDBField) GetSQLDefault() (string, bool)
func (*BigIntDBField) SetDBName ¶ added in v0.8.23
func (i *BigIntDBField) SetDBName(v string) *BigIntDBField
type BoolDBField ¶
type BoolDBField struct {
*Field
DefaultValue bool
DefaultFuncStruct *FuncStruct
}
func BoolField ¶
func BoolField(name string) *BoolDBField
func (*BoolDBField) Default ¶
func (i *BoolDBField) Default(v bool) *BoolDBField
func (*BoolDBField) DefaultFunc ¶
func (i *BoolDBField) DefaultFunc(v func() bool) *BoolDBField
func (*BoolDBField) GetDefault ¶
func (i *BoolDBField) GetDefault() string
func (*BoolDBField) GetSQLDefault ¶ added in v0.8.15
func (i *BoolDBField) GetSQLDefault() (string, bool)
func (*BoolDBField) SetDBName ¶
func (i *BoolDBField) SetDBName(v string) *BoolDBField
type ByteDBField ¶ added in v0.4.0
type ByteDBField struct {
*Field
DefaultValue []byte
DefaultFuncStruct *FuncStruct
}
func ByteField ¶ added in v0.4.0
func ByteField(name string) *ByteDBField
func (*ByteDBField) Default ¶ added in v0.4.0
func (i *ByteDBField) Default(v []byte) *ByteDBField
func (*ByteDBField) DefaultFunc ¶ added in v0.4.0
func (i *ByteDBField) DefaultFunc(v func() []byte) *ByteDBField
func (*ByteDBField) GetDefault ¶ added in v0.4.0
func (i *ByteDBField) GetDefault() string
func (*ByteDBField) GetSQLDefault ¶ added in v0.8.15
func (i *ByteDBField) GetSQLDefault() (string, bool)
func (*ByteDBField) SetDBName ¶ added in v0.4.0
func (i *ByteDBField) SetDBName(v string) *ByteDBField
type CustomDBField ¶ added in v0.6.0
type CustomDBField struct {
*Field
}
CustomDBField represents a field with a custom type in the database. Note: defaults for CustomField must be function-based (via DefaultFunc) as there is no single-value Default method.
func CustomField ¶ added in v0.6.0
func CustomField(name, postgresType string, v CustomDBFieldI) *CustomDBField
func (*CustomDBField) GetSQLDefault ¶ added in v0.8.15
func (i *CustomDBField) GetSQLDefault() (string, bool)
func (*CustomDBField) SetDBName ¶ added in v0.6.0
func (i *CustomDBField) SetDBName(v string) *CustomDBField
type CustomDBFieldI ¶ added in v0.6.0
type Database ¶ added in v0.8.16
type Database struct {
Options *Options
Logger logger.Logger
// contains filtered or unexported fields
}
func (*Database) NewTransaction ¶ added in v0.8.16
func (*Database) SetupPostgres ¶ added in v0.8.16
func (*Database) Transaction ¶ added in v0.8.16
type DecimalDBField ¶ added in v0.8.22
type DecimalDBField struct {
*Field
DefaultValue string
DefaultFuncStruct *FuncStruct
}
func DecimalField ¶ added in v0.8.22
func DecimalField(name string, precision, scale int) *DecimalDBField
DecimalField defines a numeric(precision, scale) column. The value is carried as a string (to avoid precision loss).
func (*DecimalDBField) Default ¶ added in v0.8.22
func (d *DecimalDBField) Default(v string) *DecimalDBField
func (*DecimalDBField) DefaultFunc ¶ added in v0.8.22
func (d *DecimalDBField) DefaultFunc(v func() string) *DecimalDBField
func (*DecimalDBField) GetDefault ¶ added in v0.8.22
func (d *DecimalDBField) GetDefault() string
func (*DecimalDBField) GetSQLDefault ¶ added in v0.8.22
func (d *DecimalDBField) GetSQLDefault() (string, bool)
func (*DecimalDBField) SetDBName ¶ added in v0.8.22
func (d *DecimalDBField) SetDBName(v string) *DecimalDBField
type Deneme ¶ added in v0.8.16
type Deneme struct {
DenemePredicate
Test *Test
AccountList *AccountList
// contains filtered or unexported fields
}
func NewDeneme ¶ added in v0.8.16
func NewDeneme(ctx context.Context, dc client.DatabaseClient) *Deneme
func NewRelationDeneme ¶ added in v0.8.16
func NewRelationDeneme(ctx context.Context, dc client.DatabaseClient) *Deneme
func (*Deneme) CheckPrimaryKey ¶ added in v0.8.16
func (*Deneme) CountNotIN ¶ added in v0.8.16
func (*Deneme) DenemeTypeIN ¶ added in v0.8.16
func (t *Deneme) DenemeTypeIN(v ...DenemeType) bool
func (*Deneme) DenemeTypeNotIN ¶ added in v0.8.16
func (t *Deneme) DenemeTypeNotIN(v ...DenemeType) bool
func (*Deneme) GetChangedFields ¶ added in v0.8.16
func (*Deneme) GetContext ¶ added in v0.8.16
func (*Deneme) GetCountNillable ¶ added in v0.8.16
func (*Deneme) GetDenemeType ¶ added in v0.8.16
func (t *Deneme) GetDenemeType() DenemeType
func (*Deneme) GetDenemeTypeNillable ¶ added in v0.8.16
func (t *Deneme) GetDenemeTypeNillable() *DenemeType
func (*Deneme) GetIDAsString ¶ added in v0.8.16
func (*Deneme) GetIDNillable ¶ added in v0.8.16
func (*Deneme) GetIsActive ¶ added in v0.8.16
func (*Deneme) GetIsActiveNillable ¶ added in v0.8.16
func (*Deneme) GetPrimaryKey ¶ added in v0.8.16
func (*Deneme) GetRelationList ¶ added in v0.8.16
func (t *Deneme) GetRelationList() *client.RelationList
func (*Deneme) GetSelector ¶ added in v0.8.16
func (t *Deneme) GetSelector() *DenemeResult
func (*Deneme) GetTestIDAsString ¶ added in v0.8.16
func (*Deneme) GetTestIDValue ¶ added in v0.8.16
func (*Deneme) ParseTestID ¶ added in v0.8.16
func (*Deneme) ScanResult ¶ added in v0.8.16
func (t *Deneme) ScanResult()
func (*Deneme) SetCountField ¶ added in v0.8.16
func (t *Deneme) SetCountField()
func (*Deneme) SetCountNillable ¶ added in v0.8.16
func (*Deneme) SetDefaults ¶ added in v0.8.16
func (t *Deneme) SetDefaults()
func (*Deneme) SetDenemeType ¶ added in v0.8.16
func (t *Deneme) SetDenemeType(v DenemeType)
func (*Deneme) SetDenemeTypeField ¶ added in v0.8.16
func (t *Deneme) SetDenemeTypeField()
func (*Deneme) SetDenemeTypeNillable ¶ added in v0.8.16
func (t *Deneme) SetDenemeTypeNillable(v *DenemeType)
func (*Deneme) SetIDField ¶ added in v0.8.16
func (t *Deneme) SetIDField()
func (*Deneme) SetIDNillable ¶ added in v0.8.16
func (*Deneme) SetIsActive ¶ added in v0.8.16
func (*Deneme) SetIsActiveField ¶ added in v0.8.16
func (t *Deneme) SetIsActiveField()
func (*Deneme) SetIsActiveNillable ¶ added in v0.8.16
func (*Deneme) SetTestIDField ¶ added in v0.8.16
func (t *Deneme) SetTestIDField()
func (*Deneme) SetTestIDValue ¶ added in v0.8.16
func (*Deneme) WhereIf ¶ added in v0.8.21
func (t *Deneme) WhereIf(cond bool, w client.PredicateI) *Deneme
func (*Deneme) WhereIfFn ¶ added in v0.8.21
func (t *Deneme) WhereIfFn(cond bool, fn func() client.PredicateI) *Deneme
func (*Deneme) WhereIn ¶ added in v0.8.21
func (t *Deneme) WhereIn(cond bool, w client.PredicateI) *Deneme
func (*Deneme) WithAccountList ¶ added in v0.8.16
func (t *Deneme) WithAccountList(opts ...func(*AccountList)) *client.Relation
type DenemeList ¶ added in v0.8.16
type DenemeList struct {
Items []*Deneme
DenemePredicate
// contains filtered or unexported fields
}
func NewDenemeList ¶ added in v0.8.16
func NewDenemeList(ctx context.Context, dc client.DatabaseClient) *DenemeList
func NewRelationDenemeList ¶ added in v0.8.16
func NewRelationDenemeList(ctx context.Context, dc client.DatabaseClient) *DenemeList
func (*DenemeList) Aggregate ¶ added in v0.8.16
func (t *DenemeList) Aggregate(f func(aggregate *client.Aggregate)) (func() error, error)
func (*DenemeList) AggregateRows ¶ added in v0.8.21
func (t *DenemeList) AggregateRows(f func(aggregate *client.Aggregate)) (func() error, func(), error)
func (*DenemeList) AggregateSeq ¶ added in v0.8.21
func (*DenemeList) AvgCount ¶ added in v0.8.16
func (t *DenemeList) AvgCount() (float64, error)
func (*DenemeList) AvgExpr ¶ added in v0.8.21
func (t *DenemeList) AvgExpr(expr string, cast string, val any) error
func (*DenemeList) Count ¶ added in v0.8.16
func (t *DenemeList) Count() (int, error)
func (*DenemeList) Create ¶ added in v0.8.16
func (t *DenemeList) Create(list ...*Deneme) error
func (*DenemeList) Delete ¶ added in v0.8.16
func (t *DenemeList) Delete(list ...*Deneme) error
func (*DenemeList) DeleteWhere ¶ added in v0.8.21
func (t *DenemeList) DeleteWhere() (int64, error)
func (*DenemeList) DistinctString ¶ added in v0.8.16
func (t *DenemeList) DistinctString(field string) ([]string, error)
func (*DenemeList) GetByIDs ¶ added in v0.8.21
func (t *DenemeList) GetByIDs(ids ...uuid.UUID) ([]*Deneme, error)
func (*DenemeList) GetByIDsMap ¶ added in v0.8.21
func (*DenemeList) GetDBName ¶ added in v0.8.16
func (t *DenemeList) GetDBName() string
func (*DenemeList) GetRelationList ¶ added in v0.8.16
func (t *DenemeList) GetRelationList() *client.RelationList
func (*DenemeList) GetSelector ¶ added in v0.8.16
func (t *DenemeList) GetSelector() *DenemeResult
func (*DenemeList) IsExist ¶ added in v0.8.16
func (t *DenemeList) IsExist() bool
func (*DenemeList) IsListModel ¶ added in v0.8.21
func (t *DenemeList) IsListModel() bool
func (*DenemeList) List ¶ added in v0.8.16
func (t *DenemeList) List() error
func (*DenemeList) ListWithTotal ¶ added in v0.8.21
func (t *DenemeList) ListWithTotal(skip, limit int) (int, error)
func (*DenemeList) MaxCount ¶ added in v0.8.16
func (t *DenemeList) MaxCount() (int, error)
func (*DenemeList) MinCount ¶ added in v0.8.16
func (t *DenemeList) MinCount() (int, error)
func (*DenemeList) Order ¶ added in v0.8.16
func (t *DenemeList) Order(field string) *DenemeList
func (*DenemeList) OrderDesc ¶ added in v0.8.16
func (t *DenemeList) OrderDesc(field string) *DenemeList
func (*DenemeList) Paging ¶ added in v0.8.16
func (t *DenemeList) Paging(skip, limit int) *DenemeList
func (*DenemeList) ScanResult ¶ added in v0.8.16
func (t *DenemeList) ScanResult()
func (*DenemeList) Select ¶ added in v0.8.21
func (t *DenemeList) Select(fields ...string) *DenemeList
func (*DenemeList) SetClient ¶ added in v0.8.16
func (t *DenemeList) SetClient(client *client.Client)
func (*DenemeList) SetResult ¶ added in v0.8.16
func (t *DenemeList) SetResult(result client.Result)
func (*DenemeList) SumCount ¶ added in v0.8.16
func (t *DenemeList) SumCount() (int, error)
func (*DenemeList) SumExpr ¶ added in v0.8.21
func (t *DenemeList) SumExpr(expr string, cast string, val any) error
func (*DenemeList) Update ¶ added in v0.8.16
func (t *DenemeList) Update(list ...*Deneme) error
func (*DenemeList) UpdateWhere ¶ added in v0.8.21
func (t *DenemeList) UpdateWhere(set map[string]any) (int64, error)
func (*DenemeList) WhereIf ¶ added in v0.8.21
func (t *DenemeList) WhereIf(cond bool, w client.PredicateI) *DenemeList
func (*DenemeList) WhereIfFn ¶ added in v0.8.21
func (t *DenemeList) WhereIfFn(cond bool, fn func() client.PredicateI) *DenemeList
func (*DenemeList) WhereIn ¶ added in v0.8.21
func (t *DenemeList) WhereIn(cond bool, w client.PredicateI) *DenemeList
func (*DenemeList) WithAccountList ¶ added in v0.8.16
func (t *DenemeList) WithAccountList(opts ...func(*AccountList)) *client.Relation
type DenemePredicate ¶ added in v0.8.16
type DenemePredicate struct {
// contains filtered or unexported fields
}
func (*DenemePredicate) CountGreaterEqualThan ¶ added in v0.8.16
func (t *DenemePredicate) CountGreaterEqualThan(v int) *client.Where
func (*DenemePredicate) CountGreaterThan ¶ added in v0.8.16
func (t *DenemePredicate) CountGreaterThan(v int) *client.Where
func (*DenemePredicate) CountLowerEqualThan ¶ added in v0.8.16
func (t *DenemePredicate) CountLowerEqualThan(v int) *client.Where
func (*DenemePredicate) CountLowerThan ¶ added in v0.8.16
func (t *DenemePredicate) CountLowerThan(v int) *client.Where
func (*DenemePredicate) GetWhereInfoString ¶ added in v0.8.16
func (t *DenemePredicate) GetWhereInfoString() string
func (*DenemePredicate) IsCountEqual ¶ added in v0.8.16
func (t *DenemePredicate) IsCountEqual(v int) *client.Where
func (*DenemePredicate) IsCountIN ¶ added in v0.8.16
func (t *DenemePredicate) IsCountIN(v ...int) *client.Where
func (*DenemePredicate) IsCountNotEqual ¶ added in v0.8.16
func (t *DenemePredicate) IsCountNotEqual(v int) *client.Where
func (*DenemePredicate) IsCountNotIN ¶ added in v0.8.16
func (t *DenemePredicate) IsCountNotIN(v ...int) *client.Where
func (*DenemePredicate) IsDenemeTypeEqual ¶ added in v0.8.16
func (t *DenemePredicate) IsDenemeTypeEqual(v DenemeType) *client.Where
func (*DenemePredicate) IsDenemeTypeIN ¶ added in v0.8.16
func (t *DenemePredicate) IsDenemeTypeIN(v ...DenemeType) *client.Where
func (*DenemePredicate) IsDenemeTypeNotEqual ¶ added in v0.8.16
func (t *DenemePredicate) IsDenemeTypeNotEqual(v DenemeType) *client.Where
func (*DenemePredicate) IsDenemeTypeNotIN ¶ added in v0.8.16
func (t *DenemePredicate) IsDenemeTypeNotIN(v ...DenemeType) *client.Where
func (*DenemePredicate) IsIDEqual ¶ added in v0.8.16
func (t *DenemePredicate) IsIDEqual(v uuid.UUID) *client.Where
func (*DenemePredicate) IsIDILike ¶ added in v0.8.21
func (t *DenemePredicate) IsIDILike(v string) *client.Where
func (*DenemePredicate) IsIDIN ¶ added in v0.8.16
func (t *DenemePredicate) IsIDIN(v ...uuid.UUID) *client.Where
func (*DenemePredicate) IsIDLike ¶ added in v0.8.21
func (t *DenemePredicate) IsIDLike(v string) *client.Where
func (*DenemePredicate) IsIDNotEqual ¶ added in v0.8.16
func (t *DenemePredicate) IsIDNotEqual(v uuid.UUID) *client.Where
func (*DenemePredicate) IsIDNotIN ¶ added in v0.8.16
func (t *DenemePredicate) IsIDNotIN(v ...uuid.UUID) *client.Where
func (*DenemePredicate) IsIsActiveEqual ¶ added in v0.8.16
func (t *DenemePredicate) IsIsActiveEqual(v bool) *client.Where
func (*DenemePredicate) IsIsActiveIN ¶ added in v0.8.16
func (t *DenemePredicate) IsIsActiveIN(v ...bool) *client.Where
func (*DenemePredicate) IsIsActiveNotEqual ¶ added in v0.8.16
func (t *DenemePredicate) IsIsActiveNotEqual(v bool) *client.Where
func (*DenemePredicate) IsIsActiveNotIN ¶ added in v0.8.16
func (t *DenemePredicate) IsIsActiveNotIN(v ...bool) *client.Where
func (*DenemePredicate) IsTestIDEqual ¶ added in v0.8.16
func (t *DenemePredicate) IsTestIDEqual(v uuid.UUID) *client.Where
func (*DenemePredicate) IsTestIDILike ¶ added in v0.8.21
func (t *DenemePredicate) IsTestIDILike(v string) *client.Where
func (*DenemePredicate) IsTestIDIN ¶ added in v0.8.16
func (t *DenemePredicate) IsTestIDIN(v ...uuid.UUID) *client.Where
func (*DenemePredicate) IsTestIDLike ¶ added in v0.8.21
func (t *DenemePredicate) IsTestIDLike(v string) *client.Where
func (*DenemePredicate) IsTestIDNil ¶ added in v0.8.16
func (t *DenemePredicate) IsTestIDNil() *client.Where
func (*DenemePredicate) IsTestIDNotEqual ¶ added in v0.8.16
func (t *DenemePredicate) IsTestIDNotEqual(v uuid.UUID) *client.Where
func (*DenemePredicate) IsTestIDNotIN ¶ added in v0.8.16
func (t *DenemePredicate) IsTestIDNotIN(v ...uuid.UUID) *client.Where
func (*DenemePredicate) IsTestIDNotNil ¶ added in v0.8.16
func (t *DenemePredicate) IsTestIDNotNil() *client.Where
func (*DenemePredicate) ORWhere ¶ added in v0.8.16
func (t *DenemePredicate) ORWhere(w ...client.PredicateI)
func (*DenemePredicate) Where ¶ added in v0.8.16
func (t *DenemePredicate) Where(w ...client.PredicateI)
func (*DenemePredicate) WhereIf ¶ added in v0.8.21
func (t *DenemePredicate) WhereIf(cond bool, w client.PredicateI) *DenemePredicate
func (*DenemePredicate) WhereIfFn ¶ added in v0.8.21
func (t *DenemePredicate) WhereIfFn(cond bool, fn func() client.PredicateI) *DenemePredicate
func (*DenemePredicate) WhereIn ¶ added in v0.8.21
func (t *DenemePredicate) WhereIn(cond bool, w client.PredicateI) *DenemePredicate
type DenemeResult ¶ added in v0.8.16
type DenemeResult struct {
Test *TestResult
Account *AccountResult
// contains filtered or unexported fields
}
func (*DenemeResult) GetDBName ¶ added in v0.8.16
func (t *DenemeResult) GetDBName() string
func (*DenemeResult) GetRelations ¶ added in v0.8.16
func (t *DenemeResult) GetRelations() []client.Result
func (*DenemeResult) GetSelectedFields ¶ added in v0.8.16
func (t *DenemeResult) GetSelectedFields() []*client.SelectedField
func (*DenemeResult) Init ¶ added in v0.8.16
func (t *DenemeResult) Init()
func (*DenemeResult) IsExist ¶ added in v0.8.16
func (t *DenemeResult) IsExist() bool
func (*DenemeResult) SelectAll ¶ added in v0.8.16
func (t *DenemeResult) SelectAll()
func (*DenemeResult) SelectCount ¶ added in v0.8.16
func (t *DenemeResult) SelectCount()
func (*DenemeResult) SelectDenemeType ¶ added in v0.8.16
func (t *DenemeResult) SelectDenemeType()
func (*DenemeResult) SelectID ¶ added in v0.8.16
func (t *DenemeResult) SelectID()
func (*DenemeResult) SelectIsActive ¶ added in v0.8.16
func (t *DenemeResult) SelectIsActive()
func (*DenemeResult) SelectTestID ¶ added in v0.8.16
func (t *DenemeResult) SelectTestID()
type DenemeType ¶ added in v0.8.16
type DenemeType string
const ( DenemeTypeTest DenemeType = "Test" DenemeTypeDeneme DenemeType = "Deneme" )
type EnumDBField ¶
type EnumDBField struct {
*Field
DefaultValue string
DefaultFuncStruct *FuncStruct
TypeName string
Values []*EnumValue
}
func EnumField ¶
func EnumField(name string, values []string) *EnumDBField
func (*EnumDBField) Default ¶
func (s *EnumDBField) Default(v string) *EnumDBField
func (*EnumDBField) DefaultFunc ¶
func (s *EnumDBField) DefaultFunc(v func() string) *EnumDBField
func (*EnumDBField) GetDefault ¶
func (s *EnumDBField) GetDefault() string
func (*EnumDBField) GetSQLDefault ¶ added in v0.8.15
func (s *EnumDBField) GetSQLDefault() (string, bool)
func (*EnumDBField) GoType ¶ added in v0.8.20
func (s *EnumDBField) GoType(t reflect.Type) *EnumDBField
func (*EnumDBField) SetDBName ¶
func (s *EnumDBField) SetDBName(v string) *EnumDBField
type EnumValue ¶ added in v0.8.2
type EnumValue struct {
// contains filtered or unexported fields
}
type Field ¶
type Field struct {
FieldType int
Name string
DBName string
Type string
BaseType string
Nillable bool
HaveDefault bool
IsPrepare bool
IsGreater bool
HaveCustomType bool
IsTime bool
IsUUID bool
IsBool bool
CanIn bool
Serial bool
CustomDBType string
Precision int
Scale int
RequiredPackages []string
DefaultFuncStruct *FuncStruct
// contains filtered or unexported fields
}
func (*Field) CanBeGreater ¶
func (*Field) DefaultFunc ¶ added in v0.8.8
func (*Field) GetAddressType ¶
func (*Field) GetBaseType ¶
func (*Field) GetCustomType ¶ added in v0.6.0
func (*Field) GetDefault ¶ added in v0.8.2
func (*Field) GetFieldType ¶
func (*Field) GetNameLower ¶
func (*Field) GetNameTitle ¶
func (*Field) GetPrecision ¶ added in v0.8.22
func (*Field) GetRequiredPackages ¶
func (*Field) GetSQLDefault ¶ added in v0.8.15
func (*Field) IsComparable ¶ added in v0.8.11
func (*Field) IsCustomType ¶
func (*Field) IsNillable ¶
func (*Field) NeedPrepare ¶
func (*Field) SetDBNameManually ¶
func (*Field) SetNillable ¶
type FieldI ¶
type FieldI interface {
GetRequiredPackages() []string
GetFieldType() int
GetType() string
GetName() string
GetDBName() string
GetCustomType() string
IsNillable() bool
IsSerial() bool
IsCanIn() bool
GetDefault() string
IsNumeric() bool
IsComparable() bool
GetSQLDefault() (string, bool)
CanUUID() bool
GetPrecision() int
GetScale() int
}
type Float32DBField ¶
type Float32DBField struct {
*Field
DefaultValue float32
DefaultFuncStruct *FuncStruct
}
func Float32Field ¶
func Float32Field(name string) *Float32DBField
func (*Float32DBField) Default ¶
func (i *Float32DBField) Default(v float32) *Float32DBField
func (*Float32DBField) DefaultFunc ¶
func (i *Float32DBField) DefaultFunc(v func() float32) *Float32DBField
func (*Float32DBField) GetDefault ¶
func (i *Float32DBField) GetDefault() string
func (*Float32DBField) GetSQLDefault ¶ added in v0.8.15
func (i *Float32DBField) GetSQLDefault() (string, bool)
func (*Float32DBField) SetDBName ¶
func (i *Float32DBField) SetDBName(v string) *Float32DBField
type Float64DBField ¶
type Float64DBField struct {
*Field
DefaultValue float64
DefaultFuncStruct *FuncStruct
}
func Float64Field ¶
func Float64Field(name string) *Float64DBField
func (*Float64DBField) Default ¶
func (i *Float64DBField) Default(v float64) *Float64DBField
func (*Float64DBField) DefaultFunc ¶
func (i *Float64DBField) DefaultFunc(v func() float64) *Float64DBField
func (*Float64DBField) GetDefault ¶
func (i *Float64DBField) GetDefault() string
func (*Float64DBField) GetSQLDefault ¶ added in v0.8.15
func (i *Float64DBField) GetSQLDefault() (string, bool)
func (*Float64DBField) SetDBName ¶
func (i *Float64DBField) SetDBName(v string) *Float64DBField
type FuncStruct ¶
func (*FuncStruct) DefaultFunc ¶
func (f *FuncStruct) DefaultFunc(v any)
type Generation ¶
type Generation struct {
Tables []*Table
}
type Group ¶ added in v0.8.16
type Group struct {
GroupPredicate
AccountList *AccountList
// contains filtered or unexported fields
}
func NewGroup ¶ added in v0.8.16
func NewGroup(ctx context.Context, dc client.DatabaseClient) *Group
func NewRelationGroup ¶ added in v0.8.16
func NewRelationGroup(ctx context.Context, dc client.DatabaseClient) *Group
func (*Group) AddIntoAccount ¶ added in v0.8.16
func (*Group) GetChangedFields ¶ added in v0.8.16
func (*Group) GetContext ¶ added in v0.8.16
func (*Group) GetDataNillable ¶ added in v0.8.16
func (*Group) GetIDAsString ¶ added in v0.8.16
func (*Group) GetIDNillable ¶ added in v0.8.16
func (*Group) GetNameNillable ¶ added in v0.8.16
func (*Group) GetPrimaryKey ¶ added in v0.8.16
func (*Group) GetRelationList ¶ added in v0.8.16
func (t *Group) GetRelationList() *client.RelationList
func (*Group) GetSelector ¶ added in v0.8.16
func (t *Group) GetSelector() *GroupResult
func (*Group) GetSurname ¶ added in v0.8.16
func (*Group) GetSurnameNillable ¶ added in v0.8.16
func (*Group) IsInAccount ¶ added in v0.8.16
func (*Group) RemoveFromAccount ¶ added in v0.8.16
func (*Group) ScanResult ¶ added in v0.8.16
func (t *Group) ScanResult()
func (*Group) SetDataField ¶ added in v0.8.16
func (t *Group) SetDataField()
func (*Group) SetDataNillable ¶ added in v0.8.16
func (*Group) SetDefaults ¶ added in v0.8.16
func (t *Group) SetDefaults()
func (*Group) SetIDField ¶ added in v0.8.16
func (t *Group) SetIDField()
func (*Group) SetIDNillable ¶ added in v0.8.16
func (*Group) SetNameField ¶ added in v0.8.16
func (t *Group) SetNameField()
func (*Group) SetNameNillable ¶ added in v0.8.16
func (*Group) SetSurname ¶ added in v0.8.16
func (*Group) SetSurnameField ¶ added in v0.8.16
func (t *Group) SetSurnameField()
func (*Group) SetSurnameNillable ¶ added in v0.8.16
func (*Group) SurnameNotIN ¶ added in v0.8.16
func (*Group) WhereIf ¶ added in v0.8.21
func (t *Group) WhereIf(cond bool, w client.PredicateI) *Group
func (*Group) WhereIfFn ¶ added in v0.8.21
func (t *Group) WhereIfFn(cond bool, fn func() client.PredicateI) *Group
func (*Group) WhereIn ¶ added in v0.8.21
func (t *Group) WhereIn(cond bool, w client.PredicateI) *Group
func (*Group) WithAccountList ¶ added in v0.8.16
func (t *Group) WithAccountList(opts ...func(*AccountList)) *client.Relation
type GroupList ¶ added in v0.8.16
type GroupList struct {
Items []*Group
GroupPredicate
// contains filtered or unexported fields
}
func NewGroupList ¶ added in v0.8.16
func NewGroupList(ctx context.Context, dc client.DatabaseClient) *GroupList
func NewRelationGroupList ¶ added in v0.8.16
func NewRelationGroupList(ctx context.Context, dc client.DatabaseClient) *GroupList
func (*GroupList) AggregateRows ¶ added in v0.8.21
func (*GroupList) AggregateSeq ¶ added in v0.8.21
func (*GroupList) AvgSurname ¶ added in v0.8.21
func (*GroupList) DeleteWhere ¶ added in v0.8.21
func (*GroupList) DistinctString ¶ added in v0.8.16
func (*GroupList) GetByIDsMap ¶ added in v0.8.21
func (*GroupList) GetRelationList ¶ added in v0.8.16
func (t *GroupList) GetRelationList() *client.RelationList
func (*GroupList) GetSelector ¶ added in v0.8.16
func (t *GroupList) GetSelector() *GroupResult
func (*GroupList) IsListModel ¶ added in v0.8.21
func (*GroupList) ListWithTotal ¶ added in v0.8.21
func (*GroupList) MaxSurname ¶ added in v0.8.16
func (*GroupList) MinSurname ¶ added in v0.8.16
func (*GroupList) ScanResult ¶ added in v0.8.16
func (t *GroupList) ScanResult()
func (*GroupList) SumSurname ¶ added in v0.8.21
func (*GroupList) UpdateWhere ¶ added in v0.8.21
func (*GroupList) WhereIf ¶ added in v0.8.21
func (t *GroupList) WhereIf(cond bool, w client.PredicateI) *GroupList
func (*GroupList) WhereIfFn ¶ added in v0.8.21
func (t *GroupList) WhereIfFn(cond bool, fn func() client.PredicateI) *GroupList
func (*GroupList) WhereIn ¶ added in v0.8.21
func (t *GroupList) WhereIn(cond bool, w client.PredicateI) *GroupList
func (*GroupList) WithAccountList ¶ added in v0.8.16
func (t *GroupList) WithAccountList(opts ...func(*AccountList)) *client.Relation
type GroupPredicate ¶ added in v0.8.16
type GroupPredicate struct {
// contains filtered or unexported fields
}
func (*GroupPredicate) GetWhereInfoString ¶ added in v0.8.16
func (t *GroupPredicate) GetWhereInfoString() string
func (*GroupPredicate) IsDataEqual ¶ added in v0.8.16
func (t *GroupPredicate) IsDataEqual(v map[string]any) *client.Where
func (*GroupPredicate) IsDataIN ¶ added in v0.8.16
func (t *GroupPredicate) IsDataIN(v ...map[string]any) *client.Where
func (*GroupPredicate) IsDataNotEqual ¶ added in v0.8.16
func (t *GroupPredicate) IsDataNotEqual(v map[string]any) *client.Where
func (*GroupPredicate) IsDataNotIN ¶ added in v0.8.16
func (t *GroupPredicate) IsDataNotIN(v ...map[string]any) *client.Where
func (*GroupPredicate) IsIDEqual ¶ added in v0.8.16
func (t *GroupPredicate) IsIDEqual(v uuid.UUID) *client.Where
func (*GroupPredicate) IsIDILike ¶ added in v0.8.21
func (t *GroupPredicate) IsIDILike(v string) *client.Where
func (*GroupPredicate) IsIDIN ¶ added in v0.8.16
func (t *GroupPredicate) IsIDIN(v ...uuid.UUID) *client.Where
func (*GroupPredicate) IsIDLike ¶ added in v0.8.21
func (t *GroupPredicate) IsIDLike(v string) *client.Where
func (*GroupPredicate) IsIDNotEqual ¶ added in v0.8.16
func (t *GroupPredicate) IsIDNotEqual(v uuid.UUID) *client.Where
func (*GroupPredicate) IsIDNotIN ¶ added in v0.8.16
func (t *GroupPredicate) IsIDNotIN(v ...uuid.UUID) *client.Where
func (*GroupPredicate) IsNameEqual ¶ added in v0.8.16
func (t *GroupPredicate) IsNameEqual(v string) *client.Where
func (*GroupPredicate) IsNameILike ¶ added in v0.8.16
func (t *GroupPredicate) IsNameILike(v string) *client.Where
func (*GroupPredicate) IsNameIN ¶ added in v0.8.16
func (t *GroupPredicate) IsNameIN(v ...string) *client.Where
func (*GroupPredicate) IsNameLike ¶ added in v0.8.16
func (t *GroupPredicate) IsNameLike(v string) *client.Where
func (*GroupPredicate) IsNameNotEqual ¶ added in v0.8.16
func (t *GroupPredicate) IsNameNotEqual(v string) *client.Where
func (*GroupPredicate) IsNameNotIN ¶ added in v0.8.16
func (t *GroupPredicate) IsNameNotIN(v ...string) *client.Where
func (*GroupPredicate) IsSurnameEqual ¶ added in v0.8.16
func (t *GroupPredicate) IsSurnameEqual(v string) *client.Where
func (*GroupPredicate) IsSurnameILike ¶ added in v0.8.16
func (t *GroupPredicate) IsSurnameILike(v string) *client.Where
func (*GroupPredicate) IsSurnameIN ¶ added in v0.8.16
func (t *GroupPredicate) IsSurnameIN(v ...string) *client.Where
func (*GroupPredicate) IsSurnameLike ¶ added in v0.8.16
func (t *GroupPredicate) IsSurnameLike(v string) *client.Where
func (*GroupPredicate) IsSurnameNotEqual ¶ added in v0.8.16
func (t *GroupPredicate) IsSurnameNotEqual(v string) *client.Where
func (*GroupPredicate) IsSurnameNotIN ¶ added in v0.8.16
func (t *GroupPredicate) IsSurnameNotIN(v ...string) *client.Where
func (*GroupPredicate) ORWhere ¶ added in v0.8.16
func (t *GroupPredicate) ORWhere(w ...client.PredicateI)
func (*GroupPredicate) Where ¶ added in v0.8.16
func (t *GroupPredicate) Where(w ...client.PredicateI)
func (*GroupPredicate) WhereIf ¶ added in v0.8.21
func (t *GroupPredicate) WhereIf(cond bool, w client.PredicateI) *GroupPredicate
func (*GroupPredicate) WhereIfFn ¶ added in v0.8.21
func (t *GroupPredicate) WhereIfFn(cond bool, fn func() client.PredicateI) *GroupPredicate
func (*GroupPredicate) WhereIn ¶ added in v0.8.21
func (t *GroupPredicate) WhereIn(cond bool, w client.PredicateI) *GroupPredicate
type GroupResult ¶ added in v0.8.16
type GroupResult struct {
Account *AccountResult
// contains filtered or unexported fields
}
func (*GroupResult) GetDBName ¶ added in v0.8.16
func (t *GroupResult) GetDBName() string
func (*GroupResult) GetRelations ¶ added in v0.8.16
func (t *GroupResult) GetRelations() []client.Result
func (*GroupResult) GetSelectedFields ¶ added in v0.8.16
func (t *GroupResult) GetSelectedFields() []*client.SelectedField
func (*GroupResult) Init ¶ added in v0.8.16
func (t *GroupResult) Init()
func (*GroupResult) IsExist ¶ added in v0.8.16
func (t *GroupResult) IsExist() bool
func (*GroupResult) SelectAll ¶ added in v0.8.16
func (t *GroupResult) SelectAll()
func (*GroupResult) SelectData ¶ added in v0.8.16
func (t *GroupResult) SelectData()
func (*GroupResult) SelectID ¶ added in v0.8.16
func (t *GroupResult) SelectID()
func (*GroupResult) SelectName ¶ added in v0.8.16
func (t *GroupResult) SelectName()
func (*GroupResult) SelectSurname ¶ added in v0.8.16
func (t *GroupResult) SelectSurname()
type IDatabase ¶ added in v0.8.16
type IDatabase interface {
NewTransaction(ctx context.Context, options ...pgx.TxOptions) (client.DatabaseTransactionClient, error)
Transaction(ctx context.Context, fn func(tx client.DatabaseTransactionClient) error, options ...pgx.TxOptions) error
Tx(ctx context.Context, fn func(tx *Transaction) error, options ...pgx.TxOptions) error
Exit()
client.DatabaseClient
}
type IntDBField ¶
type IntDBField struct {
*Field
DefaultValue int
DefaultFuncStruct *FuncStruct
}
func IntField ¶
func IntField(name string) *IntDBField
func (*IntDBField) AddSerial ¶
func (i *IntDBField) AddSerial() *IntDBField
func (*IntDBField) Default ¶
func (i *IntDBField) Default(v int) *IntDBField
func (*IntDBField) DefaultFunc ¶
func (i *IntDBField) DefaultFunc(v func() int) *IntDBField
func (*IntDBField) GetDefault ¶
func (i *IntDBField) GetDefault() string
func (*IntDBField) GetSQLDefault ¶ added in v0.8.15
func (i *IntDBField) GetSQLDefault() (string, bool)
func (*IntDBField) SetDBName ¶
func (i *IntDBField) SetDBName(v string) *IntDBField
type JSONDBField ¶ added in v0.4.0
type JSONDBField struct {
*Field
DefaultFuncStruct *FuncStruct
}
func JSONField ¶ added in v0.4.0
func JSONField(name string) *JSONDBField
func (*JSONDBField) DefaultFunc ¶ added in v0.4.0
func (u *JSONDBField) DefaultFunc(v func() map[string]any) *JSONDBField
func (*JSONDBField) GetDefault ¶ added in v0.4.0
func (u *JSONDBField) GetDefault() string
func (*JSONDBField) GetSQLDefault ¶ added in v0.8.15
func (u *JSONDBField) GetSQLDefault() (string, bool)
func (*JSONDBField) PrepareFunc ¶ added in v0.4.0
func (u *JSONDBField) PrepareFunc() string
func (*JSONDBField) SetDBName ¶ added in v0.4.0
func (u *JSONDBField) SetDBName(v string) *JSONDBField
func (*JSONDBField) SetNillable ¶ added in v0.4.0
func (u *JSONDBField) SetNillable() *JSONDBField
type Options ¶ added in v0.8.16
type Options struct {
Url string
Debug bool
Observer QueryObserver
}
type PredicateI ¶ added in v0.8.16
type PredicateI = client.PredicateI
func And ¶ added in v0.8.16
func And(preds ...PredicateI) PredicateI
func Or ¶ added in v0.8.16
func Or(preds ...PredicateI) PredicateI
type QueryObserver ¶ added in v0.8.21
type Relation ¶
type Relation struct {
RelationTable string
RelationTableDBName string
RelationField string
OnField string
ManyTableDBName string
RelationTableField string
RelationType int
}
func ManyToMany ¶
func (*Relation) GetRelationField ¶
func (*Relation) GetRelationTableLower ¶
func (*Relation) IsManyToMany ¶
func (*Relation) IsRelationList ¶
type SmallIntDBField ¶ added in v0.8.23
type SmallIntDBField struct {
*Field
DefaultValue int16
DefaultFuncStruct *FuncStruct
}
func SmallIntField ¶ added in v0.8.23
func SmallIntField(name string) *SmallIntDBField
func (*SmallIntDBField) AddSerial ¶ added in v0.8.23
func (i *SmallIntDBField) AddSerial() *SmallIntDBField
func (*SmallIntDBField) Default ¶ added in v0.8.23
func (i *SmallIntDBField) Default(v int16) *SmallIntDBField
func (*SmallIntDBField) DefaultFunc ¶ added in v0.8.23
func (i *SmallIntDBField) DefaultFunc(v func() int16) *SmallIntDBField
func (*SmallIntDBField) GetDefault ¶ added in v0.8.23
func (i *SmallIntDBField) GetDefault() string
func (*SmallIntDBField) GetSQLDefault ¶ added in v0.8.23
func (i *SmallIntDBField) GetSQLDefault() (string, bool)
func (*SmallIntDBField) SetDBName ¶ added in v0.8.23
func (i *SmallIntDBField) SetDBName(v string) *SmallIntDBField
type StringArrayDBField ¶ added in v0.8.22
type StringArrayDBField struct {
*Field
DefaultValue []string
DefaultFuncStruct *FuncStruct
}
func StringArrayField ¶ added in v0.8.22
func StringArrayField(name string) *StringArrayDBField
func (*StringArrayDBField) Default ¶ added in v0.8.22
func (s *StringArrayDBField) Default(v []string) *StringArrayDBField
func (*StringArrayDBField) DefaultFunc ¶ added in v0.8.22
func (s *StringArrayDBField) DefaultFunc(v func() []string) *StringArrayDBField
func (*StringArrayDBField) GetDefault ¶ added in v0.8.22
func (s *StringArrayDBField) GetDefault() string
func (*StringArrayDBField) GetSQLDefault ¶ added in v0.8.22
func (s *StringArrayDBField) GetSQLDefault() (string, bool)
func (*StringArrayDBField) SetDBName ¶ added in v0.8.22
func (s *StringArrayDBField) SetDBName(v string) *StringArrayDBField
type StringDBField ¶
type StringDBField struct {
*Field
DefaultValue string
DefaultFuncStruct *FuncStruct
}
func StringField ¶
func StringField(name string) *StringDBField
func (*StringDBField) Default ¶
func (s *StringDBField) Default(v string) *StringDBField
func (*StringDBField) DefaultFunc ¶
func (s *StringDBField) DefaultFunc(v func() string) *StringDBField
func (*StringDBField) GetDefault ¶
func (s *StringDBField) GetDefault() string
func (*StringDBField) GetSQLDefault ¶ added in v0.8.15
func (s *StringDBField) GetSQLDefault() (string, bool)
func (*StringDBField) SetDBName ¶
func (s *StringDBField) SetDBName(v string) *StringDBField
type Table ¶
type Table struct {
PackageName string
TableName string
DBName string
IDField string
IDDBField string
IDFieldType string
Fields []FieldI
Relations []*Relation
IDColumn FieldI
RequiredPackages []string
InternalRequiredPackages []string
Indexes []Index
}
func (*Table) AddUniqueIndex ¶ added in v0.8.22
func (*Table) IDFieldLower ¶
func (*Table) SetIDField ¶
func (*Table) SetTableName ¶
type Test ¶ added in v0.8.16
type Test struct {
TestPredicate
DenemeList *DenemeList
// contains filtered or unexported fields
}
func NewRelationTest ¶ added in v0.8.16
func NewRelationTest(ctx context.Context, dc client.DatabaseClient) *Test
func (*Test) FormatCreatedAt ¶ added in v0.8.16
func (*Test) GetChangedFields ¶ added in v0.8.16
func (*Test) GetContext ¶ added in v0.8.16
func (*Test) GetCreatedAt ¶ added in v0.8.16
func (*Test) GetCreatedAtNillable ¶ added in v0.8.16
func (*Test) GetIDAsString ¶ added in v0.8.16
func (*Test) GetIDNillable ¶ added in v0.8.16
func (*Test) GetInfo ¶ added in v0.8.16
func (t *Test) GetInfo() *custom_data_type.Custom
func (*Test) GetInfoValue ¶ added in v0.8.16
func (t *Test) GetInfoValue() custom_data_type.Custom
func (*Test) GetMetadata ¶ added in v0.8.16
func (*Test) GetMetadataValue ¶ added in v0.8.16
func (*Test) GetNameNillable ¶ added in v0.8.16
func (*Test) GetPrimaryKey ¶ added in v0.8.16
func (*Test) GetRelationList ¶ added in v0.8.16
func (t *Test) GetRelationList() *client.RelationList
func (*Test) GetSelector ¶ added in v0.8.16
func (t *Test) GetSelector() *TestResult
func (*Test) GetTypeNillable ¶ added in v0.8.16
func (*Test) ParseCreatedAt ¶ added in v0.8.16
func (*Test) ScanResult ¶ added in v0.8.16
func (t *Test) ScanResult()
func (*Test) SetCreatedAt ¶ added in v0.8.16
func (*Test) SetCreatedAtField ¶ added in v0.8.16
func (t *Test) SetCreatedAtField()
func (*Test) SetCreatedAtNillable ¶ added in v0.8.16
func (*Test) SetDefaults ¶ added in v0.8.16
func (t *Test) SetDefaults()
func (*Test) SetIDField ¶ added in v0.8.16
func (t *Test) SetIDField()
func (*Test) SetIDNillable ¶ added in v0.8.16
func (*Test) SetInfo ¶ added in v0.8.16
func (t *Test) SetInfo(v *custom_data_type.Custom)
func (*Test) SetInfoField ¶ added in v0.8.16
func (t *Test) SetInfoField()
func (*Test) SetInfoValue ¶ added in v0.8.16
func (t *Test) SetInfoValue(v custom_data_type.Custom)
func (*Test) SetMetadata ¶ added in v0.8.16
func (*Test) SetMetadataField ¶ added in v0.8.16
func (t *Test) SetMetadataField()
func (*Test) SetMetadataValue ¶ added in v0.8.16
func (*Test) SetNameField ¶ added in v0.8.16
func (t *Test) SetNameField()
func (*Test) SetNameNillable ¶ added in v0.8.16
func (*Test) SetTypeField ¶ added in v0.8.16
func (t *Test) SetTypeField()
func (*Test) SetTypeNillable ¶ added in v0.8.16
func (*Test) WhereIf ¶ added in v0.8.21
func (t *Test) WhereIf(cond bool, w client.PredicateI) *Test
func (*Test) WhereIfFn ¶ added in v0.8.21
func (t *Test) WhereIfFn(cond bool, fn func() client.PredicateI) *Test
func (*Test) WhereIn ¶ added in v0.8.21
func (t *Test) WhereIn(cond bool, w client.PredicateI) *Test
func (*Test) WithDenemeList ¶ added in v0.8.16
func (t *Test) WithDenemeList(opts ...func(*DenemeList)) *client.Relation
type TestList ¶ added in v0.8.16
type TestList struct {
Items []*Test
TestPredicate
// contains filtered or unexported fields
}
func NewRelationTestList ¶ added in v0.8.16
func NewRelationTestList(ctx context.Context, dc client.DatabaseClient) *TestList
func NewTestList ¶ added in v0.8.16
func NewTestList(ctx context.Context, dc client.DatabaseClient) *TestList
func (*TestList) AggregateRows ¶ added in v0.8.21
func (*TestList) AggregateSeq ¶ added in v0.8.21
func (*TestList) DeleteWhere ¶ added in v0.8.21
func (*TestList) DistinctString ¶ added in v0.8.16
func (*TestList) GetByIDsMap ¶ added in v0.8.21
func (*TestList) GetRelationList ¶ added in v0.8.16
func (t *TestList) GetRelationList() *client.RelationList
func (*TestList) GetSelector ¶ added in v0.8.16
func (t *TestList) GetSelector() *TestResult
func (*TestList) IsListModel ¶ added in v0.8.21
func (*TestList) ListWithTotal ¶ added in v0.8.21
func (*TestList) MaxCreatedAt ¶ added in v0.8.16
func (*TestList) MinCreatedAt ¶ added in v0.8.16
func (*TestList) ScanResult ¶ added in v0.8.16
func (t *TestList) ScanResult()
func (*TestList) UpdateWhere ¶ added in v0.8.21
func (*TestList) WhereIf ¶ added in v0.8.21
func (t *TestList) WhereIf(cond bool, w client.PredicateI) *TestList
func (*TestList) WhereIfFn ¶ added in v0.8.21
func (t *TestList) WhereIfFn(cond bool, fn func() client.PredicateI) *TestList
func (*TestList) WhereIn ¶ added in v0.8.21
func (t *TestList) WhereIn(cond bool, w client.PredicateI) *TestList
func (*TestList) WithDenemeList ¶ added in v0.8.16
func (t *TestList) WithDenemeList(opts ...func(*DenemeList)) *client.Relation
type TestPredicate ¶ added in v0.8.16
type TestPredicate struct {
// contains filtered or unexported fields
}
func (*TestPredicate) CreatedAtGreaterEqualThan ¶ added in v0.8.16
func (t *TestPredicate) CreatedAtGreaterEqualThan(v time.Time) *client.Where
func (*TestPredicate) CreatedAtGreaterThan ¶ added in v0.8.16
func (t *TestPredicate) CreatedAtGreaterThan(v time.Time) *client.Where
func (*TestPredicate) CreatedAtLowerEqualThan ¶ added in v0.8.16
func (t *TestPredicate) CreatedAtLowerEqualThan(v time.Time) *client.Where
func (*TestPredicate) CreatedAtLowerThan ¶ added in v0.8.16
func (t *TestPredicate) CreatedAtLowerThan(v time.Time) *client.Where
func (*TestPredicate) GetWhereInfoString ¶ added in v0.8.16
func (t *TestPredicate) GetWhereInfoString() string
func (*TestPredicate) IsCreatedAtEqual ¶ added in v0.8.16
func (t *TestPredicate) IsCreatedAtEqual(v time.Time) *client.Where
func (*TestPredicate) IsCreatedAtIN ¶ added in v0.8.16
func (t *TestPredicate) IsCreatedAtIN(v ...time.Time) *client.Where
func (*TestPredicate) IsCreatedAtNotEqual ¶ added in v0.8.16
func (t *TestPredicate) IsCreatedAtNotEqual(v time.Time) *client.Where
func (*TestPredicate) IsCreatedAtNotIN ¶ added in v0.8.16
func (t *TestPredicate) IsCreatedAtNotIN(v ...time.Time) *client.Where
func (*TestPredicate) IsIDEqual ¶ added in v0.8.16
func (t *TestPredicate) IsIDEqual(v uuid.UUID) *client.Where
func (*TestPredicate) IsIDILike ¶ added in v0.8.21
func (t *TestPredicate) IsIDILike(v string) *client.Where
func (*TestPredicate) IsIDIN ¶ added in v0.8.16
func (t *TestPredicate) IsIDIN(v ...uuid.UUID) *client.Where
func (*TestPredicate) IsIDLike ¶ added in v0.8.21
func (t *TestPredicate) IsIDLike(v string) *client.Where
func (*TestPredicate) IsIDNotEqual ¶ added in v0.8.16
func (t *TestPredicate) IsIDNotEqual(v uuid.UUID) *client.Where
func (*TestPredicate) IsIDNotIN ¶ added in v0.8.16
func (t *TestPredicate) IsIDNotIN(v ...uuid.UUID) *client.Where
func (*TestPredicate) IsInfoEqual ¶ added in v0.8.16
func (t *TestPredicate) IsInfoEqual(v custom_data_type.Custom) *client.Where
func (*TestPredicate) IsInfoIN ¶ added in v0.8.16
func (t *TestPredicate) IsInfoIN(v ...custom_data_type.Custom) *client.Where
func (*TestPredicate) IsInfoNil ¶ added in v0.8.16
func (t *TestPredicate) IsInfoNil() *client.Where
func (*TestPredicate) IsInfoNotEqual ¶ added in v0.8.16
func (t *TestPredicate) IsInfoNotEqual(v custom_data_type.Custom) *client.Where
func (*TestPredicate) IsInfoNotIN ¶ added in v0.8.16
func (t *TestPredicate) IsInfoNotIN(v ...custom_data_type.Custom) *client.Where
func (*TestPredicate) IsInfoNotNil ¶ added in v0.8.16
func (t *TestPredicate) IsInfoNotNil() *client.Where
func (*TestPredicate) IsMetadataEqual ¶ added in v0.8.16
func (t *TestPredicate) IsMetadataEqual(v map[string]any) *client.Where
func (*TestPredicate) IsMetadataIN ¶ added in v0.8.16
func (t *TestPredicate) IsMetadataIN(v ...map[string]any) *client.Where
func (*TestPredicate) IsMetadataNil ¶ added in v0.8.16
func (t *TestPredicate) IsMetadataNil() *client.Where
func (*TestPredicate) IsMetadataNotEqual ¶ added in v0.8.16
func (t *TestPredicate) IsMetadataNotEqual(v map[string]any) *client.Where
func (*TestPredicate) IsMetadataNotIN ¶ added in v0.8.16
func (t *TestPredicate) IsMetadataNotIN(v ...map[string]any) *client.Where
func (*TestPredicate) IsMetadataNotNil ¶ added in v0.8.16
func (t *TestPredicate) IsMetadataNotNil() *client.Where
func (*TestPredicate) IsNameEqual ¶ added in v0.8.16
func (t *TestPredicate) IsNameEqual(v string) *client.Where
func (*TestPredicate) IsNameILike ¶ added in v0.8.16
func (t *TestPredicate) IsNameILike(v string) *client.Where
func (*TestPredicate) IsNameIN ¶ added in v0.8.16
func (t *TestPredicate) IsNameIN(v ...string) *client.Where
func (*TestPredicate) IsNameLike ¶ added in v0.8.16
func (t *TestPredicate) IsNameLike(v string) *client.Where
func (*TestPredicate) IsNameNotEqual ¶ added in v0.8.16
func (t *TestPredicate) IsNameNotEqual(v string) *client.Where
func (*TestPredicate) IsNameNotIN ¶ added in v0.8.16
func (t *TestPredicate) IsNameNotIN(v ...string) *client.Where
func (*TestPredicate) IsTypeEqual ¶ added in v0.8.16
func (t *TestPredicate) IsTypeEqual(v string) *client.Where
func (*TestPredicate) IsTypeILike ¶ added in v0.8.16
func (t *TestPredicate) IsTypeILike(v string) *client.Where
func (*TestPredicate) IsTypeIN ¶ added in v0.8.16
func (t *TestPredicate) IsTypeIN(v ...string) *client.Where
func (*TestPredicate) IsTypeLike ¶ added in v0.8.16
func (t *TestPredicate) IsTypeLike(v string) *client.Where
func (*TestPredicate) IsTypeNotEqual ¶ added in v0.8.16
func (t *TestPredicate) IsTypeNotEqual(v string) *client.Where
func (*TestPredicate) IsTypeNotIN ¶ added in v0.8.16
func (t *TestPredicate) IsTypeNotIN(v ...string) *client.Where
func (*TestPredicate) ORWhere ¶ added in v0.8.16
func (t *TestPredicate) ORWhere(w ...client.PredicateI)
func (*TestPredicate) Where ¶ added in v0.8.16
func (t *TestPredicate) Where(w ...client.PredicateI)
func (*TestPredicate) WhereIf ¶ added in v0.8.21
func (t *TestPredicate) WhereIf(cond bool, w client.PredicateI) *TestPredicate
func (*TestPredicate) WhereIfFn ¶ added in v0.8.21
func (t *TestPredicate) WhereIfFn(cond bool, fn func() client.PredicateI) *TestPredicate
func (*TestPredicate) WhereIn ¶ added in v0.8.21
func (t *TestPredicate) WhereIn(cond bool, w client.PredicateI) *TestPredicate
type TestResult ¶ added in v0.8.16
type TestResult struct {
Deneme *DenemeResult
// contains filtered or unexported fields
}
func (*TestResult) GetDBName ¶ added in v0.8.16
func (t *TestResult) GetDBName() string
func (*TestResult) GetRelations ¶ added in v0.8.16
func (t *TestResult) GetRelations() []client.Result
func (*TestResult) GetSelectedFields ¶ added in v0.8.16
func (t *TestResult) GetSelectedFields() []*client.SelectedField
func (*TestResult) Init ¶ added in v0.8.16
func (t *TestResult) Init()
func (*TestResult) IsExist ¶ added in v0.8.16
func (t *TestResult) IsExist() bool
func (*TestResult) SelectAll ¶ added in v0.8.16
func (t *TestResult) SelectAll()
func (*TestResult) SelectCreatedAt ¶ added in v0.8.16
func (t *TestResult) SelectCreatedAt()
func (*TestResult) SelectID ¶ added in v0.8.16
func (t *TestResult) SelectID()
func (*TestResult) SelectInfo ¶ added in v0.8.16
func (t *TestResult) SelectInfo()
func (*TestResult) SelectMetadata ¶ added in v0.8.16
func (t *TestResult) SelectMetadata()
func (*TestResult) SelectName ¶ added in v0.8.16
func (t *TestResult) SelectName()
func (*TestResult) SelectType ¶ added in v0.8.16
func (t *TestResult) SelectType()
type TimeDBField ¶
type TimeDBField struct {
*Field
DefaultFuncStruct *FuncStruct
}
func TimeField ¶
func TimeField(name string) *TimeDBField
func (*TimeDBField) DefaultFunc ¶
func (t *TimeDBField) DefaultFunc(v func() time.Time) *TimeDBField
func (*TimeDBField) GetDefault ¶
func (t *TimeDBField) GetDefault() string
func (*TimeDBField) GetSQLDefault ¶ added in v0.8.15
func (t *TimeDBField) GetSQLDefault() (string, bool)
func (*TimeDBField) PrepareFunc ¶
func (t *TimeDBField) PrepareFunc() string
func (*TimeDBField) SetDBName ¶
func (t *TimeDBField) SetDBName(v string) *TimeDBField
func (*TimeDBField) SetNillable ¶
func (t *TimeDBField) SetNillable() *TimeDBField
type Transaction ¶ added in v0.8.16
func (*Transaction) Exec ¶ added in v0.8.21
func (t *Transaction) Exec(ctx context.Context, sql string, arguments ...any) (commandTag pgconn.CommandTag, err error)
func (Transaction) GetLogger ¶ added in v0.8.16
func (t Transaction) GetLogger() logger.Logger
type UUIDDBField ¶
type UUIDDBField struct {
*Field
DefaultFuncStruct *FuncStruct
}
func UUIDField ¶
func UUIDField(name string) *UUIDDBField
func (*UUIDDBField) DefaultFunc ¶
func (u *UUIDDBField) DefaultFunc(v func() uuid.UUID) *UUIDDBField
func (*UUIDDBField) GetDefault ¶
func (u *UUIDDBField) GetDefault() string
func (*UUIDDBField) GetSQLDefault ¶ added in v0.8.15
func (u *UUIDDBField) GetSQLDefault() (string, bool)
func (*UUIDDBField) PrepareFunc ¶
func (u *UUIDDBField) PrepareFunc() string
func (*UUIDDBField) SetDBName ¶
func (u *UUIDDBField) SetDBName(v string) *UUIDDBField
func (*UUIDDBField) SetNillable ¶
func (u *UUIDDBField) SetNillable() *UUIDDBField
type UintDBField ¶
type UintDBField struct {
*Field
DefaultValue uint
DefaultFuncStruct *FuncStruct
}
func UintField ¶
func UintField(name string) *UintDBField
func (*UintDBField) AddSerial ¶
func (i *UintDBField) AddSerial() *UintDBField
func (*UintDBField) Default ¶
func (i *UintDBField) Default(v uint) *UintDBField
func (*UintDBField) DefaultFunc ¶
func (i *UintDBField) DefaultFunc(v func() uint) *UintDBField
func (*UintDBField) GetDefault ¶
func (i *UintDBField) GetDefault() string
func (*UintDBField) GetSQLDefault ¶ added in v0.8.15
func (i *UintDBField) GetSQLDefault() (string, bool)
func (*UintDBField) SetDBName ¶
func (i *UintDBField) SetDBName(v string) *UintDBField
Source Files
¶
Click to show internal directories.
Click to hide internal directories.