mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-04 01:42:15 +08:00
Signed-off-by: kejiang <ke.jiang@zilliz.com> Signed-off-by: kejiang <ke.jiang@zilliz.com> Co-authored-by: kejiang <ke.jiang@zilliz.com>
20 lines
580 B
Go
20 lines
580 B
Go
package dbmodel
|
|
|
|
import "context"
|
|
|
|
//go:generate mockery --name=IMetaDomain
|
|
type IMetaDomain interface {
|
|
CollectionDb(ctx context.Context) ICollectionDb
|
|
FieldDb(ctx context.Context) IFieldDb
|
|
CollChannelDb(ctx context.Context) ICollChannelDb
|
|
CollAliasDb(ctx context.Context) ICollAliasDb
|
|
PartitionDb(ctx context.Context) IPartitionDb
|
|
IndexDb(ctx context.Context) IIndexDb
|
|
SegmentIndexDb(ctx context.Context) ISegmentIndexDb
|
|
UserDb(ctx context.Context) IUserDb
|
|
}
|
|
|
|
type ITransaction interface {
|
|
Transaction(ctx context.Context, fn func(txCtx context.Context) error) error
|
|
}
|