Documentation
¶
Index ¶
- func GetSpaceDB(ctx context.Context, defDB *gorm.DB) *gorm.DB
- type Space
- func (a *Space) Create(ctx context.Context, item *schema.Space) error
- func (a *Space) Delete(ctx context.Context, id string) error
- func (a *Space) Exists(ctx context.Context, id string) (bool, error)
- func (a *Space) ExistsCode(ctx context.Context, code string) (bool, error)
- func (a *Space) ExistsModels(ctx context.Context, spaceCode string) (bool, error)
- func (a *Space) Get(ctx context.Context, id string, opts ...schema.SpaceQueryOptions) (*schema.Space, error)
- func (a *Space) Query(ctx context.Context, params schema.SpaceQueryParam, ...) (*schema.SpaceQueryResult, error)
- func (a *Space) Update(ctx context.Context, item *schema.Space) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Space ¶
Space data access layer
func (*Space) ExistsCode ¶
ExistsCode checks if a space with the given code exists.
func (*Space) ExistsModels ¶
ExistsModels checks if there are any active models associated with the space code.
func (*Space) Get ¶
func (a *Space) Get(ctx context.Context, id string, opts ...schema.SpaceQueryOptions) (*schema.Space, error)
Get the specified space from the database.
func (*Space) Query ¶
func (a *Space) Query(ctx context.Context, params schema.SpaceQueryParam, opts ...schema.SpaceQueryOptions) (*schema.SpaceQueryResult, error)
Query spaces from the database based on the provided parameters and options.
Click to show internal directories.
Click to hide internal directories.