Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( NewReadSQLExecutor, NewWriteSQLExecutor, NewSQLBuilder, NewSQLBuilderApp, )
Functions ¶
This section is empty.
Types ¶
type ReadHandle ¶
type ReadHandle struct {
*db.HookHandle
}
func NewReadHandle ¶
func NewReadHandle( pool *db.Pool, cfg *config.DatabaseEnvironmentConfig, credentials *config.AuditDatabaseCredentials, lf *log.Factory, ) *ReadHandle
type ReadSQLExecutor ¶
type ReadSQLExecutor struct {
db.SQLExecutor
}
func NewReadSQLExecutor ¶
func NewReadSQLExecutor(handle *ReadHandle) *ReadSQLExecutor
type SQLBuilder ¶
type SQLBuilder struct {
// contains filtered or unexported fields
}
func NewSQLBuilder ¶
func NewSQLBuilder(c *config.AuditDatabaseCredentials) *SQLBuilder
func (SQLBuilder) TableName ¶
func (b SQLBuilder) TableName(table string) string
func (SQLBuilder) WithAppID ¶
func (b SQLBuilder) WithAppID(appID string) *SQLBuilderApp
func (SQLBuilder) WithoutAppID ¶
func (b SQLBuilder) WithoutAppID() *db.SQLBuilder
type SQLBuilderApp ¶
type SQLBuilderApp struct {
db.SQLBuilderApp
}
func NewSQLBuilderApp ¶
func NewSQLBuilderApp(c *config.AuditDatabaseCredentials, id config.AppID) *SQLBuilderApp
type WriteHandle ¶
type WriteHandle struct {
*db.HookHandle
}
func NewWriteHandle ¶
func NewWriteHandle( pool *db.Pool, cfg *config.DatabaseEnvironmentConfig, credentials *config.AuditDatabaseCredentials, lf *log.Factory, ) *WriteHandle
type WriteSQLExecutor ¶
type WriteSQLExecutor struct {
db.SQLExecutor
}
func NewWriteSQLExecutor ¶
func NewWriteSQLExecutor(handle *WriteHandle) *WriteSQLExecutor
Click to show internal directories.
Click to hide internal directories.