Versions in this module Expand all Collapse all v0 v0.1.0 Dec 12, 2024 Changes in this version + const COLUMN_CREATED_AT + const COLUMN_ENTITY_ID + const COLUMN_ENTITY_TYPE + const COLUMN_HANDLE + const COLUMN_ID + const COLUMN_MEMO + const COLUMN_METAS + const COLUMN_ROLE + const COLUMN_ROLE_ID + const COLUMN_SOFT_DELETED_AT + const COLUMN_STATUS + const COLUMN_TITLE + const COLUMN_UPDATED_AT + const ERROR_EMPTY_ARRAY + const ERROR_EMPTY_STRING + const ERROR_NEGATIVE_NUMBER + const ROLE_STATUS_ACTIVE + const ROLE_STATUS_DELETED + const ROLE_STATUS_INACTIVE + type EntityRoleInterface interface + CreatedAt func() string + CreatedAtCarbon func() carbon.Carbon + Data func() map[string]string + DataChanged func() map[string]string + EntityID func() string + EntityType func() string + ID func() string + IsSoftDeleted func() bool + MarkAsNotDirty func() + Memo func() string + Meta func(name string) string + Metas func() (map[string]string, error) + RoleID func() string + SetCreatedAt func(createdAt string) EntityRoleInterface + SetEntityID func(entityID string) EntityRoleInterface + SetEntityType func(entityType string) EntityRoleInterface + SetID func(id string) EntityRoleInterface + SetMemo func(memo string) EntityRoleInterface + SetMeta func(name string, value string) error + SetMetas func(metas map[string]string) error + SetRoleID func(roleID string) EntityRoleInterface + SetSoftDeletedAt func(softDeletedAt string) EntityRoleInterface + SetUpdatedAt func(updatedAt string) EntityRoleInterface + SoftDeletedAt func() string + SoftDeletedAtCarbon func() carbon.Carbon + UpdatedAt func() string + UpdatedAtCarbon func() carbon.Carbon + func NewEntityRole() EntityRoleInterface + func NewEntityRoleFromExistingData(data map[string]string) EntityRoleInterface + type EntityRoleQueryInterface interface + Columns func() []string + CreatedAtGte func() string + CreatedAtLte func() string + EntityID func() string + EntityType func() string + HasCountOnly func() bool + HasCreatedAtGte func() bool + HasCreatedAtLte func() bool + HasEntityID func() bool + HasEntityType func() bool + HasID func() bool + HasIDIn func() bool + HasLimit func() bool + HasOffset func() bool + HasOrderBy func() bool + HasRoleID func() bool + HasSoftDeletedIncluded func() bool + HasSortDirection func() bool + ID func() string + IDIn func() []string + IsCountOnly func() bool + Limit func() int + Offset func() int + OrderBy func() string + RoleID func() string + SetColumns func(columns []string) EntityRoleQueryInterface + SetCountOnly func(countOnly bool) EntityRoleQueryInterface + SetCreatedAtGte func(createdAtGte string) EntityRoleQueryInterface + SetCreatedAtLte func(createdAtLte string) EntityRoleQueryInterface + SetEntityID func(entityID string) EntityRoleQueryInterface + SetEntityType func(entityType string) EntityRoleQueryInterface + SetID func(id string) EntityRoleQueryInterface + SetIDIn func(idIn []string) EntityRoleQueryInterface + SetLimit func(limit int) EntityRoleQueryInterface + SetOffset func(offset int) EntityRoleQueryInterface + SetOrderBy func(orderBy string) EntityRoleQueryInterface + SetRoleID func(roleID string) EntityRoleQueryInterface + SetSoftDeletedIncluded func(softDeletedIncluded bool) EntityRoleQueryInterface + SetSortDirection func(sortDirection string) EntityRoleQueryInterface + SoftDeletedIncluded func() bool + SortDirection func() string + Validate func() error + func NewEntityRoleQuery() EntityRoleQueryInterface + type NewStoreOptions struct + AutomigrateEnabled bool + DB *sql.DB + DbDriverName string + DebugEnabled bool + EntityRoleTableName string + RoleTableName string + SqlLogger *slog.Logger + type RoleInterface interface + CreatedAt func() string + CreatedAtCarbon func() carbon.Carbon + Data func() map[string]string + DataChanged func() map[string]string + Handle func() string + ID func() string + IsActive func() bool + IsInactive func() bool + IsSoftDeleted func() bool + MarkAsNotDirty func() + Memo func() string + Meta func(name string) string + Metas func() (map[string]string, error) + SetCreatedAt func(createdAt string) RoleInterface + SetHandle func(handle string) RoleInterface + SetID func(id string) RoleInterface + SetMemo func(memo string) RoleInterface + SetMeta func(name string, value string) error + SetMetas func(metas map[string]string) error + SetSoftDeletedAt func(softDeletedAt string) RoleInterface + SetStatus func(status string) RoleInterface + SetTitle func(title string) RoleInterface + SetUpdatedAt func(updatedAt string) RoleInterface + SoftDeletedAt func() string + SoftDeletedAtCarbon func() carbon.Carbon + Status func() string + Title func() string + UpdatedAt func() string + UpdatedAtCarbon func() carbon.Carbon + func NewRole() RoleInterface + func NewRoleFromExistingData(data map[string]string) RoleInterface + type RoleQueryInterface interface + Columns func() []string + CreatedAtGte func() string + CreatedAtLte func() string + Handle func() string + HasCountOnly func() bool + HasCreatedAtGte func() bool + HasCreatedAtLte func() bool + HasHandle func() bool + HasID func() bool + HasIDIn func() bool + HasLimit func() bool + HasOffset func() bool + HasOrderBy func() bool + HasSoftDeletedIncluded func() bool + HasSortDirection func() bool + HasStatus func() bool + HasStatusIn func() bool + HasTitleLike func() bool + ID func() string + IDIn func() []string + IsCountOnly func() bool + Limit func() int + Offset func() int + OrderBy func() string + SetColumns func(columns []string) RoleQueryInterface + SetCountOnly func(countOnly bool) RoleQueryInterface + SetCreatedAtGte func(createdAtGte string) RoleQueryInterface + SetCreatedAtLte func(createdAtLte string) RoleQueryInterface + SetHandle func(handle string) RoleQueryInterface + SetID func(id string) RoleQueryInterface + SetIDIn func(idIn []string) RoleQueryInterface + SetLimit func(limit int) RoleQueryInterface + SetOffset func(offset int) RoleQueryInterface + SetOrderBy func(orderBy string) RoleQueryInterface + SetSoftDeletedIncluded func(softDeletedIncluded bool) RoleQueryInterface + SetSortDirection func(sortDirection string) RoleQueryInterface + SetStatus func(status string) RoleQueryInterface + SetStatusIn func(statusIn []string) RoleQueryInterface + SetTitleLike func(titleLike string) RoleQueryInterface + SoftDeletedIncluded func() bool + SortDirection func() string + Status func() string + StatusIn func() []string + TitleLike func() string + Validate func() error + func NewRoleQuery() RoleQueryInterface + type StoreInterface interface + AutoMigrate func() error + DB func() *sql.DB + EnableDebug func(debug bool) + EntityRoleCount func(ctx context.Context, options EntityRoleQueryInterface) (int64, error) + EntityRoleCreate func(ctx context.Context, entityRole EntityRoleInterface) error + EntityRoleDelete func(ctx context.Context, entityRole EntityRoleInterface) error + EntityRoleDeleteByID func(ctx context.Context, id string) error + EntityRoleFindByEntityAndRole func(ctx context.Context, entityType string, entityID string, roleID string) (EntityRoleInterface, error) + EntityRoleFindByID func(ctx context.Context, id string) (EntityRoleInterface, error) + EntityRoleList func(ctx context.Context, query EntityRoleQueryInterface) ([]EntityRoleInterface, error) + EntityRoleSoftDelete func(ctx context.Context, entityRole EntityRoleInterface) error + EntityRoleSoftDeleteByID func(ctx context.Context, id string) error + EntityRoleUpdate func(ctx context.Context, entityRole EntityRoleInterface) error + RoleCount func(ctx context.Context, options RoleQueryInterface) (int64, error) + RoleCreate func(ctx context.Context, role RoleInterface) error + RoleDelete func(ctx context.Context, role RoleInterface) error + RoleDeleteByID func(ctx context.Context, id string) error + RoleFindByHandle func(ctx context.Context, handle string) (RoleInterface, error) + RoleFindByID func(ctx context.Context, id string) (RoleInterface, error) + RoleList func(ctx context.Context, query RoleQueryInterface) ([]RoleInterface, error) + RoleSoftDelete func(ctx context.Context, role RoleInterface) error + RoleSoftDeleteByID func(ctx context.Context, id string) error + RoleUpdate func(ctx context.Context, role RoleInterface) error + func NewStore(opts NewStoreOptions) (StoreInterface, error) + type UserInterface interface + BusinessName func() string + Country func() string + CreatedAt func() string + CreatedAtCarbon func() carbon.Carbon + Data func() map[string]string + DataChanged func() map[string]string + Email func() string + FirstName func() string + Get func(columnName string) string + ID func() string + IsActive func() bool + IsAdministrator func() bool + IsInactive func() bool + IsManager func() bool + IsRegistrationCompleted func() bool + IsSoftDeleted func() bool + IsSuperuser func() bool + IsUnverified func() bool + LastName func() string + MarkAsNotDirty func() + Memo func() string + Meta func(name string) string + Metas func() (map[string]string, error) + MiddleNames func() string + Password func() string + PasswordCompare func(password string) bool + Phone func() string + ProfileImageUrl func() string + Role func() string + Set func(columnName string, value string) + SetBusinessName func(businessName string) UserInterface + SetCountry func(country string) UserInterface + SetCreatedAt func(createdAt string) UserInterface + SetEmail func(email string) UserInterface + SetFirstName func(firstName string) UserInterface + SetID func(id string) UserInterface + SetLastName func(lastName string) UserInterface + SetMemo func(memo string) UserInterface + SetMeta func(name string, value string) error + SetMetas func(metas map[string]string) error + SetMiddleNames func(middleNames string) UserInterface + SetPassword func(password string) UserInterface + SetPhone func(phone string) UserInterface + SetProfileImageUrl func(profileImageUrl string) UserInterface + SetRole func(role string) UserInterface + SetSoftDeletedAt func(deletedAt string) UserInterface + SetStatus func(status string) UserInterface + SetTimezone func(timezone string) UserInterface + SetUpdatedAt func(updatedAt string) UserInterface + SoftDeletedAt func() string + SoftDeletedAtCarbon func() carbon.Carbon + Status func() string + Timezone func() string + UpdatedAt func() string + UpdatedAtCarbon func() carbon.Carbon + UpsertMetas func(metas map[string]string) error