Versions in this module Expand all Collapse all v1 v1.1.0 Mar 29, 2024 Changes in this version + var ErrModelIsNil = errors.New("model is nil") + var ErrNoTransaction = errors.New("no transaction provided") + var ErrRowAlreadyExist = errors.New("row already exist") + var ErrRowNotFound = errors.New("row not found") + func Dsn(filepath string, mode string, cache string, timeout int) string + func Open(dsn string, opts ...BlogDatabaseClientOption) (*sql.DB, error) + func TxFromContext(ctx context.Context) (*sql.Tx, bool) + type Address struct + City string + CreatedAt string + Id string + State int32 + Street string + UpdatedAt *string + User *User + UserId string + Zip int64 + func (t *Address) ScanRow(r *sql.Row) error + func (t *Address) ScanRows(r *sql.Rows) error + func (t *Address) TableName() string + type AddressAdvancedDeletion interface + DeleteMany func(ctx context.Context, builders ...*QueryBuilder) error + type AddressCRUDOperations interface + Create func(ctx context.Context, model *Address, opts ...Option) (*string, error) + DeleteById func(ctx context.Context, id string, opts ...Option) error + FindById func(ctx context.Context, id string, opts ...Option) (*Address, error) + Update func(ctx context.Context, id string, updateData *AddressUpdate) error + type AddressFilters struct + Id *string + UserId *string + type AddressPaginationOperations interface + FindManyWithPagination func(ctx context.Context, limit int, page int, builders ...*QueryBuilder) ([]*Address, *Paginator, error) + type AddressRawQueryOperations interface + Query func(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + QueryRow func(ctx context.Context, query string, args ...interface{}) *sql.Row + QueryRows func(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + type AddressRelationLoading interface + LoadBatchUser func(ctx context.Context, items []*Address, builders ...*QueryBuilder) error + LoadUser func(ctx context.Context, model *Address, builders ...*QueryBuilder) error + type AddressSearchOperations interface + Count func(ctx context.Context, builders ...*QueryBuilder) (int64, error) + FindMany func(ctx context.Context, builder ...*QueryBuilder) ([]*Address, error) + FindOne func(ctx context.Context, builders ...*QueryBuilder) (*Address, error) + SelectForUpdate func(ctx context.Context, builders ...*QueryBuilder) (*Address, error) + type AddressStorage interface + func NewAddressStorage(db *sql.DB) AddressStorage + type AddressTableManager interface + CreateTable func(ctx context.Context) error + DropTable func(ctx context.Context) error + TruncateTable func(ctx context.Context) error + UpgradeTable func(ctx context.Context) error + type AddressUpdate struct + City *string + CreatedAt *string + State *int32 + Street *string + UpdatedAt *string + UserId *string + Zip *int64 + type AndCondition struct + Where []FilterApplier + func (c AndCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c AndCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type BetweenCondition struct + Field string + Max interface{} + Min interface{} + func (c BetweenCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c BetweenCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type BlogDatabaseClientOption func(*BlogDatabaseClientOptions) + func WithConnMaxIdleTime(connMaxIdleTime time.Duration) BlogDatabaseClientOption + func WithMaxIdleConns(maxIdleConns int) BlogDatabaseClientOption + func WithMaxLifetime(maxLifetime time.Duration) BlogDatabaseClientOption + func WithMaxOpenConns(maxOpenConns int) BlogDatabaseClientOption + type BlogDatabaseClientOptions struct + ConnMaxIdleTime time.Duration + MaxIdleConns int + MaxLifetime time.Duration + MaxOpenConns int + type BlogStorages interface + CreateTables func(ctx context.Context) error + DropTables func(ctx context.Context) error + GetAddressStorage func() AddressStorage + GetDeviceStorage func() DeviceStorage + GetPostStorage func() PostStorage + GetSettingStorage func() SettingStorage + GetUserStorage func() UserStorage + TruncateTables func(ctx context.Context) error + TxManager func() *TxManager + UpgradeTables func(ctx context.Context) error + func NewBlogStorages(db *sql.DB) BlogStorages + type CommentMeta struct + Browser string + Ip string + Os string + func (m *CommentMeta) Scan(src interface{}) error + func (m *CommentMeta) Value() (driver.Value, error) + type Device struct + Name string + UserId string + Value string + func (t *Device) ScanRow(r *sql.Row) error + func (t *Device) ScanRows(r *sql.Rows) error + func (t *Device) TableName() string + type DeviceAdvancedDeletion interface + DeleteMany func(ctx context.Context, builders ...*QueryBuilder) error + type DeviceCRUDOperations interface + Create func(ctx context.Context, model *Device, opts ...Option) error + Update func(ctx context.Context, id int64, updateData *DeviceUpdate) error + type DeviceFilters struct + UserId *string + type DevicePaginationOperations interface + FindManyWithPagination func(ctx context.Context, limit int, page int, builders ...*QueryBuilder) ([]*Device, *Paginator, error) + type DeviceRawQueryOperations interface + Query func(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + QueryRow func(ctx context.Context, query string, args ...interface{}) *sql.Row + QueryRows func(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + type DeviceRelationLoading interface + type DeviceSearchOperations interface + Count func(ctx context.Context, builders ...*QueryBuilder) (int64, error) + FindMany func(ctx context.Context, builder ...*QueryBuilder) ([]*Device, error) + FindOne func(ctx context.Context, builders ...*QueryBuilder) (*Device, error) + SelectForUpdate func(ctx context.Context, builders ...*QueryBuilder) (*Device, error) + type DeviceStorage interface + func NewDeviceStorage(db *sql.DB) DeviceStorage + type DeviceTableManager interface + CreateTable func(ctx context.Context) error + DropTable func(ctx context.Context) error + TruncateTable func(ctx context.Context) error + UpgradeTable func(ctx context.Context) error + type DeviceUpdate struct + Name *string + UserId *string + Value *string + type EqualsCondition struct + Field string + Value interface{} + func (c EqualsCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c EqualsCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type FilterApplier interface + Apply func(query sq.SelectBuilder) sq.SelectBuilder + ApplyDelete func(query sq.DeleteBuilder) sq.DeleteBuilder + func AddressIdBetween(min, max string) FilterApplier + func AddressIdEq(value string) FilterApplier + func AddressIdGT(value string) FilterApplier + func AddressIdGTE(value string) FilterApplier + func AddressIdIn(values ...interface{}) FilterApplier + func AddressIdLT(value string) FilterApplier + func AddressIdLTE(value string) FilterApplier + func AddressIdLike(value string) FilterApplier + func AddressIdNotEq(value string) FilterApplier + func AddressIdNotIn(values ...interface{}) FilterApplier + func AddressIdNotLike(value string) FilterApplier + func AddressIdOrderBy(asc bool) FilterApplier + func AddressUserIdBetween(min, max string) FilterApplier + func AddressUserIdEq(value string) FilterApplier + func AddressUserIdGT(value string) FilterApplier + func AddressUserIdGTE(value string) FilterApplier + func AddressUserIdIn(values ...interface{}) FilterApplier + func AddressUserIdLT(value string) FilterApplier + func AddressUserIdLTE(value string) FilterApplier + func AddressUserIdLike(value string) FilterApplier + func AddressUserIdNotEq(value string) FilterApplier + func AddressUserIdNotIn(values ...interface{}) FilterApplier + func AddressUserIdNotLike(value string) FilterApplier + func AddressUserIdOrderBy(asc bool) FilterApplier + func And(conditions ...FilterApplier) FilterApplier + func Between(field string, min, max interface{}) FilterApplier + func DeviceUserIdBetween(min, max string) FilterApplier + func DeviceUserIdEq(value string) FilterApplier + func DeviceUserIdGT(value string) FilterApplier + func DeviceUserIdGTE(value string) FilterApplier + func DeviceUserIdIn(values ...interface{}) FilterApplier + func DeviceUserIdLT(value string) FilterApplier + func DeviceUserIdLTE(value string) FilterApplier + func DeviceUserIdLike(value string) FilterApplier + func DeviceUserIdNotEq(value string) FilterApplier + func DeviceUserIdNotIn(values ...interface{}) FilterApplier + func DeviceUserIdNotLike(value string) FilterApplier + func DeviceUserIdOrderBy(asc bool) FilterApplier + func Eq(field string, value interface{}) FilterApplier + func GreaterThan(field string, value interface{}) FilterApplier + func GreaterThanOrEq(field string, value interface{}) FilterApplier + func In(field string, values ...interface{}) FilterApplier + func IsNotNull(field string) FilterApplier + func IsNull(field string) FilterApplier + func Join(joinType JoinType, table Table, on FilterApplier) FilterApplier + func LessThan(field string, value interface{}) FilterApplier + func LessThanOrEq(field string, value interface{}) FilterApplier + func Like(field string, value interface{}) FilterApplier + func NotEq(field string, value interface{}) FilterApplier + func NotIn(field string, values ...interface{}) FilterApplier + func NotLike(field string, value interface{}) FilterApplier + func Or(conditions ...FilterApplier) FilterApplier + func OrderBy(column string, asc bool) FilterApplier + func PostAuthorIdBetween(min, max string) FilterApplier + func PostAuthorIdEq(value string) FilterApplier + func PostAuthorIdGT(value string) FilterApplier + func PostAuthorIdGTE(value string) FilterApplier + func PostAuthorIdIn(values ...interface{}) FilterApplier + func PostAuthorIdLT(value string) FilterApplier + func PostAuthorIdLTE(value string) FilterApplier + func PostAuthorIdLike(value string) FilterApplier + func PostAuthorIdNotEq(value string) FilterApplier + func PostAuthorIdNotIn(values ...interface{}) FilterApplier + func PostAuthorIdNotLike(value string) FilterApplier + func PostAuthorIdOrderBy(asc bool) FilterApplier + func PostIdBetween(min, max int32) FilterApplier + func PostIdEq(value int32) FilterApplier + func PostIdGT(value int32) FilterApplier + func PostIdGTE(value int32) FilterApplier + func PostIdIn(values ...interface{}) FilterApplier + func PostIdLT(value int32) FilterApplier + func PostIdLTE(value int32) FilterApplier + func PostIdNotEq(value int32) FilterApplier + func PostIdNotIn(values ...interface{}) FilterApplier + func PostIdOrderBy(asc bool) FilterApplier + func SettingIdBetween(min, max int32) FilterApplier + func SettingIdEq(value int32) FilterApplier + func SettingIdGT(value int32) FilterApplier + func SettingIdGTE(value int32) FilterApplier + func SettingIdIn(values ...interface{}) FilterApplier + func SettingIdLT(value int32) FilterApplier + func SettingIdLTE(value int32) FilterApplier + func SettingIdNotEq(value int32) FilterApplier + func SettingIdNotIn(values ...interface{}) FilterApplier + func SettingIdOrderBy(asc bool) FilterApplier + func SettingUserIdBetween(min, max string) FilterApplier + func SettingUserIdEq(value string) FilterApplier + func SettingUserIdGT(value string) FilterApplier + func SettingUserIdGTE(value string) FilterApplier + func SettingUserIdIn(values ...interface{}) FilterApplier + func SettingUserIdLT(value string) FilterApplier + func SettingUserIdLTE(value string) FilterApplier + func SettingUserIdLike(value string) FilterApplier + func SettingUserIdNotEq(value string) FilterApplier + func SettingUserIdNotIn(values ...interface{}) FilterApplier + func SettingUserIdNotLike(value string) FilterApplier + func SettingUserIdOrderBy(asc bool) FilterApplier + func UserAgeBetween(min, max int32) FilterApplier + func UserAgeEq(value int32) FilterApplier + func UserAgeGT(value int32) FilterApplier + func UserAgeGTE(value int32) FilterApplier + func UserAgeIn(values ...interface{}) FilterApplier + func UserAgeLT(value int32) FilterApplier + func UserAgeLTE(value int32) FilterApplier + func UserAgeNotEq(value int32) FilterApplier + func UserAgeNotIn(values ...interface{}) FilterApplier + func UserAgeOrderBy(asc bool) FilterApplier + func UserEmailBetween(min, max string) FilterApplier + func UserEmailEq(value string) FilterApplier + func UserEmailGT(value string) FilterApplier + func UserEmailGTE(value string) FilterApplier + func UserEmailIn(values ...interface{}) FilterApplier + func UserEmailLT(value string) FilterApplier + func UserEmailLTE(value string) FilterApplier + func UserEmailLike(value string) FilterApplier + func UserEmailNotEq(value string) FilterApplier + func UserEmailNotIn(values ...interface{}) FilterApplier + func UserEmailNotLike(value string) FilterApplier + func UserEmailOrderBy(asc bool) FilterApplier + func UserIdBetween(min, max string) FilterApplier + func UserIdEq(value string) FilterApplier + func UserIdGT(value string) FilterApplier + func UserIdGTE(value string) FilterApplier + func UserIdIn(values ...interface{}) FilterApplier + func UserIdLT(value string) FilterApplier + func UserIdLTE(value string) FilterApplier + func UserIdLike(value string) FilterApplier + func UserIdNotEq(value string) FilterApplier + func UserIdNotIn(values ...interface{}) FilterApplier + func UserIdNotLike(value string) FilterApplier + func UserIdOrderBy(asc bool) FilterApplier + func UserNameBetween(min, max string) FilterApplier + func UserNameEq(value string) FilterApplier + func UserNameGT(value string) FilterApplier + func UserNameGTE(value string) FilterApplier + func UserNameIn(values ...interface{}) FilterApplier + func UserNameLT(value string) FilterApplier + func UserNameLTE(value string) FilterApplier + func UserNameLike(value string) FilterApplier + func UserNameNotEq(value string) FilterApplier + func UserNameNotIn(values ...interface{}) FilterApplier + func UserNameNotLike(value string) FilterApplier + func UserNameOrderBy(asc bool) FilterApplier + type GreaterThanCondition struct + Field string + Value interface{} + func (c GreaterThanCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c GreaterThanCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type GreaterThanOrEqualCondition struct + Field string + Value interface{} + func (c GreaterThanOrEqualCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c GreaterThanOrEqualCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type InCondition struct + Field string + Values []interface{} + func (c InCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c InCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type IsNotNullCondition struct + Field string + func (c IsNotNullCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c IsNotNullCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type IsNullCondition struct + Field string + func (c IsNullCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c IsNullCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type JoinCondition struct + On FilterApplier + Table Table + Type JoinType + func (c JoinCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c JoinCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type JoinType string + const InnerJoin + const LeftJoin + const RightJoin + type LessThanCondition struct + Field string + Value interface{} + func (c LessThanCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c LessThanCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type LessThanOrEqualCondition struct + Field string + Value interface{} + func (c LessThanOrEqualCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c LessThanOrEqualCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type LikeCondition struct + Field string + Value interface{} + func (c LikeCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c LikeCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type NotEqualsCondition struct + Field string + Value interface{} + func (c NotEqualsCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c NotEqualsCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type NotInCondition struct + Field string + Values []interface{} + func (c NotInCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c NotInCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type NotLikeCondition struct + Field string + Value interface{} + func (c NotLikeCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c NotLikeCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type Option func(*Options) + func WithRelations() Option + type Options struct + type OrCondition struct + Conditions []FilterApplier + func (c OrCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c OrCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type OrderCondition struct + Asc bool + Column string + func (c OrderCondition) Apply(query sq.SelectBuilder) sq.SelectBuilder + func (c OrderCondition) ApplyDelete(query sq.DeleteBuilder) sq.DeleteBuilder + type Pagination struct + func Limit(limit uint64) *Pagination + func NewPagination(limit, offset uint64) *Pagination + func Offset(offset uint64) *Pagination + type Paginator struct + Limit int + Page int + TotalCount int64 + TotalPages int + type Post struct + Author *User + AuthorId string + Body string + Id int32 + Title string + func (t *Post) ScanRow(r *sql.Row) error + func (t *Post) ScanRows(r *sql.Rows) error + func (t *Post) TableName() string + type PostAdvancedDeletion interface + DeleteMany func(ctx context.Context, builders ...*QueryBuilder) error + type PostCRUDOperations interface + Create func(ctx context.Context, model *Post, opts ...Option) (*int32, error) + DeleteById func(ctx context.Context, id int32, opts ...Option) error + FindById func(ctx context.Context, id int32, opts ...Option) (*Post, error) + Update func(ctx context.Context, id int32, updateData *PostUpdate) error + type PostFilters struct + AuthorId *string + Id *int32 + type PostPaginationOperations interface + FindManyWithPagination func(ctx context.Context, limit int, page int, builders ...*QueryBuilder) ([]*Post, *Paginator, error) + type PostRawQueryOperations interface + Query func(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + QueryRow func(ctx context.Context, query string, args ...interface{}) *sql.Row + QueryRows func(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + type PostRelationLoading interface + LoadAuthor func(ctx context.Context, model *Post, builders ...*QueryBuilder) error + LoadBatchAuthor func(ctx context.Context, items []*Post, builders ...*QueryBuilder) error + type PostSearchOperations interface + Count func(ctx context.Context, builders ...*QueryBuilder) (int64, error) + FindMany func(ctx context.Context, builder ...*QueryBuilder) ([]*Post, error) + FindOne func(ctx context.Context, builders ...*QueryBuilder) (*Post, error) + SelectForUpdate func(ctx context.Context, builders ...*QueryBuilder) (*Post, error) + type PostStorage interface + func NewPostStorage(db *sql.DB) PostStorage + type PostTableManager interface + CreateTable func(ctx context.Context) error + DropTable func(ctx context.Context) error + TruncateTable func(ctx context.Context) error + UpgradeTable func(ctx context.Context) error + type PostUpdate struct + AuthorId *string + Body *string + Title *string + type QueryBuilder struct + func FilterBuilder(filterOptions ...FilterApplier) *QueryBuilder + func LimitBuilder(limit uint64) *QueryBuilder + func NewQueryBuilder() *QueryBuilder + func OffsetBuilder(offset uint64) *QueryBuilder + func PaginateBuilder(limit, offset uint64) *QueryBuilder + func SortBuilder(sortOptions ...FilterApplier) *QueryBuilder + func (b *QueryBuilder) WithFilter(filterOptions ...FilterApplier) *QueryBuilder + func (b *QueryBuilder) WithOptions(options ...Option) *QueryBuilder + func (b *QueryBuilder) WithPagination(pagination *Pagination) *QueryBuilder + func (b *QueryBuilder) WithSort(sortOptions ...FilterApplier) *QueryBuilder + type QueryExecer interface + ExecContext func(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + QueryContext func(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + QueryRowContext func(ctx context.Context, query string, args ...interface{}) *sql.Row + type Setting struct + Id int32 + Name string + User *User + UserId string + Value string + func (t *Setting) ScanRow(r *sql.Row) error + func (t *Setting) ScanRows(r *sql.Rows) error + func (t *Setting) TableName() string + type SettingAdvancedDeletion interface + DeleteMany func(ctx context.Context, builders ...*QueryBuilder) error + type SettingCRUDOperations interface + Create func(ctx context.Context, model *Setting, opts ...Option) (*int32, error) + DeleteById func(ctx context.Context, id int32, opts ...Option) error + FindById func(ctx context.Context, id int32, opts ...Option) (*Setting, error) + Update func(ctx context.Context, id int32, updateData *SettingUpdate) error + type SettingFilters struct + Id *int32 + UserId *string + type SettingPaginationOperations interface + FindManyWithPagination func(ctx context.Context, limit int, page int, builders ...*QueryBuilder) ([]*Setting, *Paginator, error) + type SettingRawQueryOperations interface + Query func(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + QueryRow func(ctx context.Context, query string, args ...interface{}) *sql.Row + QueryRows func(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + type SettingRelationLoading interface + LoadBatchUser func(ctx context.Context, items []*Setting, builders ...*QueryBuilder) error + LoadUser func(ctx context.Context, model *Setting, builders ...*QueryBuilder) error + type SettingSearchOperations interface + Count func(ctx context.Context, builders ...*QueryBuilder) (int64, error) + FindMany func(ctx context.Context, builder ...*QueryBuilder) ([]*Setting, error) + FindOne func(ctx context.Context, builders ...*QueryBuilder) (*Setting, error) + SelectForUpdate func(ctx context.Context, builders ...*QueryBuilder) (*Setting, error) + type SettingStorage interface + func NewSettingStorage(db *sql.DB) SettingStorage + type SettingTableManager interface + CreateTable func(ctx context.Context) error + DropTable func(ctx context.Context) error + TruncateTable func(ctx context.Context) error + UpgradeTable func(ctx context.Context) error + type SettingUpdate struct + Name *string + UserId *string + Value *string + type Table interface + TableName func() string + type TxManager struct + func NewTxManager(db *sql.DB) *TxManager + func (m *TxManager) Begin(ctx context.Context) (context.Context, error) + func (m *TxManager) Commit(ctx context.Context) error + func (m *TxManager) ExecFuncWithTx(ctx context.Context, f func(context.Context) error) error + func (m *TxManager) IsTxOpen(ctx context.Context) bool + func (m *TxManager) Rollback(ctx context.Context) error + type User struct + Addresses []*Address + Age int32 + Balls UserBallsRepeated + Comments UserCommentsRepeated + CreatedAt string + Device *Device + Email string + Id string + LastName *string + Name string + NotificationSettings *UserNotificationSetting + Numrs UserNumrsRepeated + Phones UserPhonesRepeated + Posts []*Post + Settings *Setting + UpdatedAt *string + func (t *User) ScanRow(r *sql.Row) error + func (t *User) ScanRows(r *sql.Rows) error + func (t *User) TableName() string + type UserAdvancedDeletion interface + DeleteMany func(ctx context.Context, builders ...*QueryBuilder) error + type UserBallsRepeated []int32 + func NewBallsField(v []int32) UserBallsRepeated + func (m *UserBallsRepeated) Scan(src interface{}) error + func (m *UserBallsRepeated) String() string + func (m UserBallsRepeated) Get() []int32 + func (m UserBallsRepeated) Value() (driver.Value, error) + type UserCRUDOperations interface + Create func(ctx context.Context, model *User, opts ...Option) (*string, error) + DeleteById func(ctx context.Context, id string, opts ...Option) error + FindById func(ctx context.Context, id string, opts ...Option) (*User, error) + Update func(ctx context.Context, id string, updateData *UserUpdate) error + type UserComment struct + Meta *CommentMeta + Name string + func (m *UserComment) Scan(src interface{}) error + func (m *UserComment) Value() (driver.Value, error) + type UserCommentsRepeated []UserComment + func NewCommentsField(v []UserComment) UserCommentsRepeated + func (m *UserCommentsRepeated) Scan(src interface{}) error + func (m *UserCommentsRepeated) String() string + func (m UserCommentsRepeated) Get() []UserComment + func (m UserCommentsRepeated) Value() (driver.Value, error) + type UserFilters struct + Age *int32 + Email *string + Id *string + Name *string + type UserNotificationSetting struct + OrderEmail bool + RegistrationEmail bool + func (m *UserNotificationSetting) Scan(src interface{}) error + func (m *UserNotificationSetting) Value() (driver.Value, error) + type UserNumr struct + City string + State int32 + Street string + Zip int64 + func (m *UserNumr) Scan(src interface{}) error + func (m *UserNumr) Value() (driver.Value, error) + type UserNumrsRepeated []UserNumr + func NewNumrsField(v []UserNumr) UserNumrsRepeated + func (m *UserNumrsRepeated) Scan(src interface{}) error + func (m *UserNumrsRepeated) String() string + func (m UserNumrsRepeated) Get() []UserNumr + func (m UserNumrsRepeated) Value() (driver.Value, error) + type UserPaginationOperations interface + FindManyWithPagination func(ctx context.Context, limit int, page int, builders ...*QueryBuilder) ([]*User, *Paginator, error) + type UserPhonesRepeated []string + func NewPhonesField(v []string) UserPhonesRepeated + func (m *UserPhonesRepeated) Scan(src interface{}) error + func (m *UserPhonesRepeated) String() string + func (m UserPhonesRepeated) Get() []string + func (m UserPhonesRepeated) Value() (driver.Value, error) + type UserRawQueryOperations interface + Query func(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + QueryRow func(ctx context.Context, query string, args ...interface{}) *sql.Row + QueryRows func(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + type UserRelationLoading interface + LoadAddresses func(ctx context.Context, model *User, builders ...*QueryBuilder) error + LoadBatchAddresses func(ctx context.Context, items []*User, builders ...*QueryBuilder) error + LoadBatchDevice func(ctx context.Context, items []*User, builders ...*QueryBuilder) error + LoadBatchPosts func(ctx context.Context, items []*User, builders ...*QueryBuilder) error + LoadBatchSettings func(ctx context.Context, items []*User, builders ...*QueryBuilder) error + LoadDevice func(ctx context.Context, model *User, builders ...*QueryBuilder) error + LoadPosts func(ctx context.Context, model *User, builders ...*QueryBuilder) error + LoadSettings func(ctx context.Context, model *User, builders ...*QueryBuilder) error + type UserSearchOperations interface + Count func(ctx context.Context, builders ...*QueryBuilder) (int64, error) + FindMany func(ctx context.Context, builder ...*QueryBuilder) ([]*User, error) + FindOne func(ctx context.Context, builders ...*QueryBuilder) (*User, error) + SelectForUpdate func(ctx context.Context, builders ...*QueryBuilder) (*User, error) + type UserStorage interface + func NewUserStorage(db *sql.DB) UserStorage + type UserTableManager interface + CreateTable func(ctx context.Context) error + DropTable func(ctx context.Context) error + TruncateTable func(ctx context.Context) error + UpgradeTable func(ctx context.Context) error + type UserUpdate struct + Age *int32 + Balls *UserBallsRepeated + Comments *UserCommentsRepeated + CreatedAt *string + Email *string + LastName *string + Name *string + NotificationSettings *UserNotificationSetting + Numrs *UserNumrsRepeated + Phones *UserPhonesRepeated + UpdatedAt *string