auditdb

package
v0.0.0-...-c4f7e29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ReadHandle

type ReadHandle struct {
	*db.HookHandle
}

func NewReadHandle

func NewReadHandle(
	ctx context.Context,
	pool *db.Pool,
	cfg *config.DatabaseEnvironmentConfig,
	credentials *config.AuditDatabaseCredentials,
	lf *log.Factory,
) *ReadHandle

func (*ReadHandle) ReadOnly

func (h *ReadHandle) ReadOnly(do func() error) (err error)

type ReadSQLExecutor

type ReadSQLExecutor struct {
	db.SQLExecutor
}

func NewReadSQLExecutor

func NewReadSQLExecutor(c context.Context, handle *ReadHandle) *ReadSQLExecutor

type SQLBuilder

type SQLBuilder struct {
	// contains filtered or unexported fields
}

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
}

type WriteHandle

type WriteHandle struct {
	*db.HookHandle
}

func NewWriteHandle

func NewWriteHandle(
	ctx context.Context,
	pool *db.Pool,
	cfg *config.DatabaseEnvironmentConfig,
	credentials *config.AuditDatabaseCredentials,
	lf *log.Factory,
) *WriteHandle

func (*WriteHandle) WithTx

func (h *WriteHandle) WithTx(do func() error) (err error)

type WriteSQLExecutor

type WriteSQLExecutor struct {
	db.SQLExecutor
}

func NewWriteSQLExecutor

func NewWriteSQLExecutor(c context.Context, handle *WriteHandle) *WriteSQLExecutor

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL