Documentation ¶
Index ¶
- Constants
- func Connect(ctx context.Context, filenames ...string) *mongo.Client
- func Disconnect(client *mongo.Client, ctx context.Context)
- func NewMongoDataAccess[E MongoEntity](tm TransactionManager) TxDataAccess[E]
- func NewMongoTransactionManager(client *mongo.Client) TransactionManager
- func PInt64(i int) *int64
- func ResolveId(id any) (ObjectID, error)
- type IdSetter
- type MongoEntity
- type MongoId
- type QueryBuilder
Constants ¶
View Source
const MID = "_id"
Variables ¶
This section is empty.
Functions ¶
func NewMongoDataAccess ¶
func NewMongoDataAccess[E MongoEntity](tm TransactionManager) TxDataAccess[E]
Types ¶
type MongoEntity ¶
type MongoId ¶
func NewMongoId ¶
type QueryBuilder ¶
type QueryBuilder interface {
BuildFilter() A
}
Click to show internal directories.
Click to hide internal directories.