Versions in this module Expand all Collapse all v0 v0.5.0 Sep 1, 2025 Changes in this version + const COLUMN_CONTENT + const COLUMN_CREATED_AT + const COLUMN_ENTITY_ID + const COLUMN_ENTITY_TYPE + const COLUMN_ID + const COLUMN_SOFT_DELETED_AT + const COLUMN_UPDATED_AT + type NewStoreOptions struct + AutomigrateEnabled bool + DB *sql.DB + DebugEnabled bool + Logger *slog.Logger + TableName string + type StoreInterface interface + AutoMigrate func() error + EnableDebug func(debug bool) + VersionCreate func(context context.Context, version VersionInterface) error + VersionDelete func(context context.Context, version VersionInterface) error + VersionDeleteByID func(context context.Context, versionID string) error + VersionFindByID func(context context.Context, versionID string) (VersionInterface, error) + VersionList func(context context.Context, query VersionQueryInterface) ([]VersionInterface, error) + VersionSoftDelete func(context context.Context, version VersionInterface) error + VersionSoftDeleteByID func(context context.Context, versionID string) error + VersionUpdate func(context context.Context, version VersionInterface) error + func NewStore(opts NewStoreOptions) (StoreInterface, error) + type VersionInterface interface + Content func() string + CreatedAt func() string + Data func() map[string]string + DataChanged func() map[string]string + EntityID func() string + EntityType func() string + ID func() string + MarkAsNotDirty func() + SetContent func(content string) VersionInterface + SetCreatedAt func(createdAt string) VersionInterface + SetEntityID func(entityID string) VersionInterface + SetEntityType func(entityType string) VersionInterface + SetID func(id string) VersionInterface + SetSoftDeletedAt func(softDeletedAt string) VersionInterface + SoftDeletedAt func() string + func NewVersion() VersionInterface + func NewVersionFromExistingData(data map[string]string) VersionInterface + type VersionQueryInterface interface + Columns func() []string + EntityID func() string + EntityType func() string + HasCountOnly func() bool + HasEntityID func() bool + HasEntityType func() bool + HasID func() bool + HasLimit func() bool + HasOffset func() bool + HasOrderBy func() bool + HasSoftDeletedIncluded func() bool + HasSortOrder func() bool + ID func() string + IsCountOnly func() bool + Limit func() int + Offset func() int64 + OrderBy func() string + SetColumns func(columns []string) VersionQueryInterface + SetCountOnly func(countOnly bool) VersionQueryInterface + SetEntityID func(entityID string) VersionQueryInterface + SetEntityType func(entityType string) VersionQueryInterface + SetID func(id string) VersionQueryInterface + SetLimit func(limit int) VersionQueryInterface + SetOffset func(offset int64) VersionQueryInterface + SetOrderBy func(orderBy string) VersionQueryInterface + SetSoftDeletedIncluded func(includeSoftDeleted bool) VersionQueryInterface + SetSortOrder func(sortOrder string) VersionQueryInterface + SoftDeletedIncluded func() bool + SortOrder func() string + Validate func() error + func NewVersionQuery() VersionQueryInterface