Documentation
¶
Index ¶
- type Config
- type DeleteMongodb
- type FindMongodb
- type InsertMongodb
- type MongodbAdapter
- func (m *MongodbAdapter) Disconnect() error
- func (m *MongodbAdapter) GetInstance() any
- func (m *MongodbAdapter) NewDelete() adapters.Delete
- func (m *MongodbAdapter) NewFind() adapters.Find
- func (m *MongodbAdapter) NewInsert() adapters.Insert
- func (m *MongodbAdapter) NewSelect() adapters.Select
- func (m *MongodbAdapter) NewUpdate() adapters.Update
- type Select
- func (s *Select) Condition(name string, value any) adapters.Select
- func (s *Select) Count(ctx context.Context) (int64, error)
- func (s *Select) Exec(ctx context.Context) error
- func (s *Select) GreaterThan(name string, value any) adapters.Select
- func (s *Select) GreaterThanEqual(name string, value any) adapters.Select
- func (s *Select) In(name string, value any) adapters.Select
- func (s *Select) LessThan(name string, value any) adapters.Select
- func (s *Select) LessThanEqual(name string, value any) adapters.Select
- func (s *Select) Model(model any) adapters.Select
- func (s *Select) NotEqual(name string, value any) adapters.Select
- func (s *Select) OrderBy(name string, order string) adapters.Select
- type UpdateMongodb
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteMongodb ¶
type DeleteMongodb struct {
// contains filtered or unexported fields
}
func NewDeleteMongodb ¶
func NewDeleteMongodb(adapter *MongodbAdapter) *DeleteMongodb
type FindMongodb ¶
type FindMongodb struct {
// contains filtered or unexported fields
}
func NewFindMongodb ¶
func NewFindMongodb(a *MongodbAdapter) *FindMongodb
type InsertMongodb ¶
type InsertMongodb struct {
// contains filtered or unexported fields
}
func NewInsertMongodb ¶
func NewInsertMongodb(adapter *MongodbAdapter) *InsertMongodb
func (*InsertMongodb) Exec ¶
func (i *InsertMongodb) Exec(ctx context.Context) (*adapters.InsertResult, error)
type MongodbAdapter ¶
type MongodbAdapter struct {
// contains filtered or unexported fields
}
func NewMongodbAdapter ¶
func NewMongodbAdapter(cfg *Config) (*MongodbAdapter, error)
func (*MongodbAdapter) Disconnect ¶
func (m *MongodbAdapter) Disconnect() error
func (*MongodbAdapter) GetInstance ¶
func (m *MongodbAdapter) GetInstance() any
func (*MongodbAdapter) NewDelete ¶
func (m *MongodbAdapter) NewDelete() adapters.Delete
func (*MongodbAdapter) NewFind ¶
func (m *MongodbAdapter) NewFind() adapters.Find
func (*MongodbAdapter) NewInsert ¶
func (m *MongodbAdapter) NewInsert() adapters.Insert
func (*MongodbAdapter) NewSelect ¶
func (m *MongodbAdapter) NewSelect() adapters.Select
func (*MongodbAdapter) NewUpdate ¶
func (m *MongodbAdapter) NewUpdate() adapters.Update
type Select ¶
type Select struct {
// contains filtered or unexported fields
}
func NewSelect ¶
func NewSelect(adapter *MongodbAdapter) *Select
func (*Select) GreaterThanEqual ¶
func (*Select) LessThanEqual ¶
type UpdateMongodb ¶
type UpdateMongodb struct {
// contains filtered or unexported fields
}
func NewUpdateMongodb ¶
func NewUpdateMongodb(adapter *MongodbAdapter) *UpdateMongodb
Source Files
¶
Click to show internal directories.
Click to hide internal directories.