Documentation ¶
Index ¶
- func TestCollectionSuite(postgrescli *storagepostgres.PostgresDb, ...) (*appmodelcollections.ModelCollection, error)
- type CollectionCURD
- func (c *CollectionCURD) AutoMigrate() error
- func (c *CollectionCURD) Get(ctx context.Context, tableName string, pid appmodelprojects.ProjectID, ...) (*appmodelcollections.ModelCollection, error)
- func (c *CollectionCURD) GetLatestSchema(ctx context.Context, tableName string, pid appmodelprojects.ProjectID, ...) (*appmodelcollections.ModelCollection, error)
- func (c *CollectionCURD) ListByProjectID(ctx context.Context, tableName string, pid appmodelprojects.ProjectID) ([]*appmodelcollections.ModelCollection, error)
- func (c *CollectionCURD) Update(ctx context.Context, tableName string, ...) error
- func (c *CollectionCURD) Write(ctx context.Context, tableName string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestCollectionSuite ¶
func TestCollectionSuite( postgrescli *storagepostgres.PostgresDb, modelProject *appmodelprojects.ModelProject, ) (*appmodelcollections.ModelCollection, error)
Types ¶
type CollectionCURD ¶
type CollectionCURD struct {
*storagepostgres.PostgresDb
}
func NewCollectionCURD ¶
func NewCollectionCURD(db *storagepostgres.PostgresDb) *CollectionCURD
func (*CollectionCURD) AutoMigrate ¶
func (c *CollectionCURD) AutoMigrate() error
func (*CollectionCURD) Get ¶
func (c *CollectionCURD) Get(ctx context.Context, tableName string, pid appmodelprojects.ProjectID, cid appmodelcollections.CollectionID, sid appmodelcollections.SchemaID) (*appmodelcollections.ModelCollection, error)
func (*CollectionCURD) GetLatestSchema ¶
func (c *CollectionCURD) GetLatestSchema(ctx context.Context, tableName string, pid appmodelprojects.ProjectID, cid appmodelcollections.CollectionID) (*appmodelcollections.ModelCollection, error)
func (*CollectionCURD) ListByProjectID ¶
func (c *CollectionCURD) ListByProjectID(ctx context.Context, tableName string, pid appmodelprojects.ProjectID) ([]*appmodelcollections.ModelCollection, error)
func (*CollectionCURD) Update ¶
func (c *CollectionCURD) Update(ctx context.Context, tableName string, record *appmodelcollections.ModelCollection) error
func (*CollectionCURD) Write ¶
func (c *CollectionCURD) Write(ctx context.Context, tableName string, record *appmodelcollections.ModelCollection) error
Click to show internal directories.
Click to hide internal directories.