auditdb

package
v0.0.0-...-ac88f99 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

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(
	pool *db.Pool,
	cfg *config.DatabaseEnvironmentConfig,
	credentials *config.AuditDatabaseCredentials,
	lf *log.Factory,
) *ReadHandle

func (*ReadHandle) ReadOnly

func (h *ReadHandle) ReadOnly(ctx context.Context, do func(ctx context.Context) error) (err error)

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 (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(
	pool *db.Pool,
	cfg *config.DatabaseEnvironmentConfig,
	credentials *config.AuditDatabaseCredentials,
	lf *log.Factory,
) *WriteHandle

func (*WriteHandle) WithTx

func (h *WriteHandle) WithTx(ctx context.Context, do func(ctx context.Context) error) (err error)

type WriteSQLExecutor

type WriteSQLExecutor struct {
	db.SQLExecutor
}

func NewWriteSQLExecutor

func NewWriteSQLExecutor(handle *WriteHandle) *WriteSQLExecutor

Jump to

Keyboard shortcuts

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