Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbExpression ¶
type IDatabase ¶
type IDatabase interface {
Connector
// Common methods that both databases should implement
Ping(ctx context.Context) error
// Get the underlying connection for specific operations
GetConnection() any
GetDriver() string
GetName() string
Count(ctx context.Context, table string, filter []DbExpression) (int64, error)
Find(ctx context.Context, results any, table string, column []string, filter []DbExpression, sort map[string]int, limit int64, skip int64) error
FindOne(ctx context.Context, result any, table string, column []string, filter []DbExpression, sort map[string]int) error
InsertOne(ctx context.Context, table string, data any) (any, error)
Update(ctx context.Context, table string, filter []DbExpression, data any) (int64, error)
UpdateOne(ctx context.Context, table string, filter []DbExpression, data any) (int64, error)
Delete(ctx context.Context, table string, filter []DbExpression) (int64, error)
DeleteOne(ctx context.Context, table string, filter []DbExpression) (int64, error)
}
type IMemoryCache ¶
Generic for Memory Caching (ex: Redis, MemCached)
type IPubSubMessage ¶
type KafkaConsumer ¶
type PubSubReceiver ¶
Click to show internal directories.
Click to hide internal directories.