Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 DbMap) (int64, error)
Find(ctx context.Context, table string, column []string, filter DbMap, sort map[string]int, limit int64, skip int64) ([]DbMap, error)
FindOne(ctx context.Context, result any, table string, column []string, filter DbMap, sort map[string]int) error
InsertOne(ctx context.Context, table string, data any) (any, error)
Update(ctx context.Context, table string, filter DbMap, data any) (int64, error)
UpdateOne(ctx context.Context, table string, filter DbMap, data any) (int64, error)
Delete(ctx context.Context, table string, filter DbMap) (any, error)
DeleteOne(ctx context.Context, table string, filter DbMap) (any, error)
}
type IPubSubMessage ¶
type KafkaConsumer ¶
type PubSubReceiver ¶
Click to show internal directories.
Click to hide internal directories.