Documentation ¶
Index ¶
- Variables
- func NewSqlLogger(log logging.Logger) logger.Interface
- func SqlApplyScanQuery(tx *gorm.DB, query *entities.ScanningQuery, condition *ScanningCondition) *gorm.DB
- type Datastore
- type ScanningCondition
- type SqlLogger
- func (logger SqlLogger) Error(ctx context.Context, msg string, args ...interface{})
- func (logger SqlLogger) Info(ctx context.Context, msg string, args ...interface{})
- func (logger SqlLogger) LogMode(logger.LogLevel) logger.Interface
- func (logger SqlLogger) Trace(ctx context.Context, begin time.Time, ...)
- func (logger SqlLogger) Warn(ctx context.Context, msg string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotReady = errors.New("DATASTORE.NOT_READY.ERROR") ErrNotLive = errors.New("DATASTORE.NOT_LIVE.ERROR") ErrAlreadyConnected = errors.New("DATASTORE.ALREADY_CONNECTED.ERROR") ErrNotConnected = errors.New("DATASTORE.NOT_CONNECTED.ERROR") ErrRecordNotFound = errors.New("DATASTORE.RECORD.NOT_FOUND.ERROR") )
Functions ¶
func SqlApplyScanQuery ¶
func SqlApplyScanQuery(tx *gorm.DB, query *entities.ScanningQuery, condition *ScanningCondition) *gorm.DB
Types ¶
type Datastore ¶
type Datastore interface { patterns.Connectable Client() any }
type ScanningCondition ¶
Click to show internal directories.
Click to hide internal directories.