Documentation ¶
Index ¶
- type SQL
- func (s *SQL) Aggregate(ctx context.Context, project, col string, req *model.AggregateRequest) (interface{}, error)
- func (s *SQL) Batch(ctx context.Context, project string, txRequest *model.BatchRequest) error
- func (s *SQL) Close() error
- func (s *SQL) Create(ctx context.Context, project, col string, req *model.CreateRequest) error
- func (s *SQL) Delete(ctx context.Context, project, col string, req *model.DeleteRequest) error
- func (s *SQL) GetDBType() utils.DBType
- func (s *SQL) Read(ctx context.Context, project, col string, req *model.ReadRequest) (interface{}, error)
- func (s *SQL) Update(ctx context.Context, project, col string, req *model.UpdateRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQL ¶
type SQL struct {
// contains filtered or unexported fields
}
SQL holds the sql db object
func (*SQL) Aggregate ¶
func (s *SQL) Aggregate(ctx context.Context, project, col string, req *model.AggregateRequest) (interface{}, error)
Aggregate performs a mongo db pipeline aggregation
Click to show internal directories.
Click to hide internal directories.