Documentation
¶
Index ¶
- type ASRow
- type ASRows
- type Aerospike
- func (t *Aerospike) Count(ctx context.Context, key *aerospike.Key, policy *aerospike.BasePolicy) int64
- func (t *Aerospike) Delete(ctx context.Context, key *aerospike.Key, policy *aerospike.WritePolicy) int64
- func (t *Aerospike) DeleteMany(ctx context.Context, keys []*aerospike.Key, policy *aerospike.BatchPolicy, ...) int64
- func (t *Aerospike) Exec(ctx context.Context, key *aerospike.Key, policy *aerospike.WritePolicy, ...) (interfaces.NoSQLRows, error)
- func (t *Aerospike) Exists(ctx context.Context, key *aerospike.Key, policy *aerospike.BasePolicy) bool
- func (t *Aerospike) Find(ctx context.Context, query *aerospike.Statement, policy *aerospike.QueryPolicy) (interfaces.NoSQLRows, error)
- func (t *Aerospike) FindOne(ctx context.Context, key *aerospike.Key, policy *aerospike.BasePolicy, ...) (interfaces.NoSQLRow, error)
- func (t *Aerospike) GetDb() *aerospike.Client
- func (t *Aerospike) Init(app interfaces.IEngine) error
- func (t *Aerospike) Insert(ctx context.Context, key *aerospike.Key, query interface{}, ...) (interface{}, error)
- func (t *Aerospike) Operate(ctx context.Context, query []aerospike.BatchRecordIfc) (int64, error)
- func (t *Aerospike) Stop() error
- func (t *Aerospike) String() string
- type AerospikeConfig
- type MockAerospike
- func (t *MockAerospike) Count(ctx context.Context, key *aerospike.Key, policy *aerospike.BasePolicy) int64
- func (t *MockAerospike) Delete(ctx context.Context, key *aerospike.Key, policy *aerospike.WritePolicy) int64
- func (t *MockAerospike) DeleteMany(ctx context.Context, keys []*aerospike.Key, policy *aerospike.BatchPolicy, ...) int64
- func (t *MockAerospike) Exec(ctx context.Context, key *aerospike.Key, policy *aerospike.WritePolicy, ...) (interfaces.NoSQLRows, error)
- func (t *MockAerospike) Exists(ctx context.Context, key *aerospike.Key, policy *aerospike.BasePolicy) bool
- func (t *MockAerospike) Find(ctx context.Context, query *aerospike.Statement, policy *aerospike.QueryPolicy) (interfaces.NoSQLRows, error)
- func (t *MockAerospike) FindOne(ctx context.Context, key *aerospike.Key, policy *aerospike.BasePolicy, ...) (interfaces.NoSQLRow, error)
- func (t *MockAerospike) GetDb() *aerospike.Client
- func (t *MockAerospike) Insert(ctx context.Context, key *aerospike.Key, query interface{}, ...) (interface{}, error)
- func (t *MockAerospike) Operate(ctx context.Context, query []aerospike.BatchRecordIfc) (int64, error)
- type MockMongoDB
- func (t *MockMongoDB) Batch(ctx context.Context, collection string, query []mongo.WriteModel, ...) (int64, error)
- func (t *MockMongoDB) Count(ctx context.Context, collection string, query interface{}, ...) int64
- func (t *MockMongoDB) Delete(ctx context.Context, collection string, query interface{}, ...) int64
- func (t *MockMongoDB) Exec(ctx context.Context, collection string, query interface{}, ...) (interfaces.NoSQLRows, error)
- func (t *MockMongoDB) Exists(ctx context.Context, collection string, query interface{}) bool
- func (t *MockMongoDB) Find(ctx context.Context, collection string, query interface{}, ...) (interfaces.NoSQLRows, error)
- func (t *MockMongoDB) FindOne(ctx context.Context, collection string, query interface{}, ...) (interfaces.NoSQLRow, error)
- func (t *MockMongoDB) FindOneAndUpdate(ctx context.Context, collection string, query interface{}, update interface{}, ...) (interfaces.NoSQLRow, error)
- func (t *MockMongoDB) GetDb() *mongo.Database
- func (t *MockMongoDB) Insert(ctx context.Context, collection string, query interface{}, ...) (interface{}, error)
- func (t *MockMongoDB) Update(ctx context.Context, collection string, query interface{}, update interface{}, ...) error
- type MongoDB
- func (t *MongoDB) Batch(ctx context.Context, collection string, query []mongo.WriteModel, ...) (int64, error)
- func (t *MongoDB) Count(ctx context.Context, collection string, query interface{}, ...) int64
- func (t *MongoDB) Delete(ctx context.Context, collection string, query interface{}, ...) int64
- func (t *MongoDB) Exec(ctx context.Context, collection string, query interface{}, ...) (interfaces.NoSQLRows, error)
- func (t *MongoDB) Exists(ctx context.Context, collection string, query interface{}) bool
- func (t *MongoDB) Find(ctx context.Context, collection string, query interface{}, ...) (interfaces.NoSQLRows, error)
- func (t *MongoDB) FindOne(ctx context.Context, collection string, query interface{}, ...) (interfaces.NoSQLRow, error)
- func (t *MongoDB) FindOneAndUpdate(ctx context.Context, collection string, query interface{}, update interface{}, ...) (interfaces.NoSQLRow, error)
- func (t *MongoDB) GetDb() *mongo.Database
- func (t *MongoDB) Init(app interfaces.IEngine) error
- func (t *MongoDB) Insert(ctx context.Context, collection string, query interface{}, ...) (interface{}, error)
- func (t *MongoDB) Stop() error
- func (t *MongoDB) String() string
- func (t *MongoDB) Update(ctx context.Context, collection string, query interface{}, update interface{}, ...) error
- type MongoDBConfig
- type MongoRow
- type MongoRows
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aerospike ¶
type Aerospike struct {
Name string
Config AerospikeConfig
// contains filtered or unexported fields
}
func NewAerospike ¶ added in v0.0.9
func NewAerospike(name string, cfg AerospikeConfig) *Aerospike
func (*Aerospike) DeleteMany ¶ added in v0.4.0
func (t *Aerospike) DeleteMany(ctx context.Context, keys []*aerospike.Key, policy *aerospike.BatchPolicy, policyDelete *aerospike.BatchDeletePolicy) int64
func (*Aerospike) Find ¶
func (t *Aerospike) Find(ctx context.Context, query *aerospike.Statement, policy *aerospike.QueryPolicy) (interfaces.NoSQLRows, error)
func (*Aerospike) Insert ¶
func (t *Aerospike) Insert(ctx context.Context, key *aerospike.Key, query interface{}, policy *aerospike.WritePolicy) (interface{}, error)
Insert query is *aerospike.Bin or []*aerospike.Bin or *aerospike.BinMap
type AerospikeConfig ¶ added in v0.0.9
type MockAerospike ¶ added in v0.4.0
type MockAerospike struct {
Name string
}
func (*MockAerospike) Count ¶ added in v0.4.0
func (t *MockAerospike) Count(ctx context.Context, key *aerospike.Key, policy *aerospike.BasePolicy) int64
func (*MockAerospike) Delete ¶ added in v0.4.0
func (t *MockAerospike) Delete(ctx context.Context, key *aerospike.Key, policy *aerospike.WritePolicy) int64
func (*MockAerospike) DeleteMany ¶ added in v0.4.0
func (t *MockAerospike) DeleteMany(ctx context.Context, keys []*aerospike.Key, policy *aerospike.BatchPolicy, policyDelete *aerospike.BatchDeletePolicy) int64
func (*MockAerospike) Exec ¶ added in v0.4.0
func (t *MockAerospike) Exec(ctx context.Context, key *aerospike.Key, policy *aerospike.WritePolicy, packageName string, functionName string) (interfaces.NoSQLRows, error)
func (*MockAerospike) Exists ¶ added in v0.4.0
func (t *MockAerospike) Exists(ctx context.Context, key *aerospike.Key, policy *aerospike.BasePolicy) bool
func (*MockAerospike) Find ¶ added in v0.4.0
func (t *MockAerospike) Find(ctx context.Context, query *aerospike.Statement, policy *aerospike.QueryPolicy) (interfaces.NoSQLRows, error)
func (*MockAerospike) FindOne ¶ added in v0.4.0
func (t *MockAerospike) FindOne(ctx context.Context, key *aerospike.Key, policy *aerospike.BasePolicy, bins []string) (interfaces.NoSQLRow, error)
func (*MockAerospike) GetDb ¶ added in v0.4.0
func (t *MockAerospike) GetDb() *aerospike.Client
func (*MockAerospike) Insert ¶ added in v0.4.0
func (t *MockAerospike) Insert(ctx context.Context, key *aerospike.Key, query interface{}, policy *aerospike.WritePolicy) (interface{}, error)
Insert query is *aerospike.Bin or []*aerospike.Bin or *aerospike.BinMap
func (*MockAerospike) Operate ¶ added in v0.4.0
func (t *MockAerospike) Operate(ctx context.Context, query []aerospike.BatchRecordIfc) (int64, error)
type MockMongoDB ¶ added in v0.4.0
type MockMongoDB struct {
Name string
}
func (*MockMongoDB) Batch ¶ added in v0.4.0
func (t *MockMongoDB) Batch(ctx context.Context, collection string, query []mongo.WriteModel, opt *options.BulkWriteOptions) (int64, error)
func (*MockMongoDB) Count ¶ added in v0.4.0
func (t *MockMongoDB) Count(ctx context.Context, collection string, query interface{}, opt *options.CountOptions) int64
func (*MockMongoDB) Delete ¶ added in v0.4.0
func (t *MockMongoDB) Delete(ctx context.Context, collection string, query interface{}, opt *options.DeleteOptions) int64
func (*MockMongoDB) Exec ¶ added in v0.4.0
func (t *MockMongoDB) Exec(ctx context.Context, collection string, query interface{}, opt *options.AggregateOptions) (interfaces.NoSQLRows, error)
func (*MockMongoDB) Exists ¶ added in v0.4.0
func (t *MockMongoDB) Exists(ctx context.Context, collection string, query interface{}) bool
func (*MockMongoDB) Find ¶ added in v0.4.0
func (t *MockMongoDB) Find(ctx context.Context, collection string, query interface{}, opt *options.FindOptions) (interfaces.NoSQLRows, error)
func (*MockMongoDB) FindOne ¶ added in v0.4.0
func (t *MockMongoDB) FindOne(ctx context.Context, collection string, query interface{}, opt *options.FindOneOptions) (interfaces.NoSQLRow, error)
func (*MockMongoDB) FindOneAndUpdate ¶ added in v0.4.2
func (t *MockMongoDB) FindOneAndUpdate(ctx context.Context, collection string, query interface{}, update interface{}, opt *options.FindOneAndUpdateOptions) (interfaces.NoSQLRow, error)
func (*MockMongoDB) GetDb ¶ added in v0.4.0
func (t *MockMongoDB) GetDb() *mongo.Database
func (*MockMongoDB) Insert ¶ added in v0.4.0
func (t *MockMongoDB) Insert(ctx context.Context, collection string, query interface{}, opt *options.InsertOneOptions) (interface{}, error)
func (*MockMongoDB) Update ¶ added in v0.4.0
func (t *MockMongoDB) Update(ctx context.Context, collection string, query interface{}, update interface{}, opt *options.UpdateOptions) error
type MongoDB ¶
type MongoDB struct {
Name string
Config MongoDBConfig
// contains filtered or unexported fields
}
func NewMongoDB ¶ added in v0.0.9
func NewMongoDB(name string, cfg MongoDBConfig) *MongoDB
func (*MongoDB) Batch ¶
func (t *MongoDB) Batch(ctx context.Context, collection string, query []mongo.WriteModel, opt *options.BulkWriteOptions) (int64, error)
func (*MongoDB) Exec ¶
func (t *MongoDB) Exec(ctx context.Context, collection string, query interface{}, opt *options.AggregateOptions) (interfaces.NoSQLRows, error)
func (*MongoDB) Find ¶
func (t *MongoDB) Find(ctx context.Context, collection string, query interface{}, opt *options.FindOptions) (interfaces.NoSQLRows, error)
func (*MongoDB) FindOne ¶
func (t *MongoDB) FindOne(ctx context.Context, collection string, query interface{}, opt *options.FindOneOptions) (interfaces.NoSQLRow, error)
func (*MongoDB) FindOneAndUpdate ¶ added in v0.4.2
func (t *MongoDB) FindOneAndUpdate(ctx context.Context, collection string, query interface{}, update interface{}, opt *options.FindOneAndUpdateOptions) (interfaces.NoSQLRow, error)
type MongoDBConfig ¶ added in v0.0.9
Click to show internal directories.
Click to hide internal directories.