audit

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogAdmin

func LogAdmin(logger *slog.Logger, record AdminRecord)

func LogDML

func LogDML(logger *slog.Logger, record DMLRecord)

Types

type AdminRecord

type AdminRecord struct {
	Database             string
	Mode                 string
	StatementClass       string
	StatementKind        string
	StatementFingerprint string
	Status               string
	CommandTag           string
	RowsAffected         int64
	DurationMs           int64
	ExpiresInSeconds     int64
	Error                string
}

type DMLRecord

type DMLRecord struct {
	Database             string
	Mode                 string
	StatementClass       string
	StatementKind        string
	StatementFingerprint string
	Status               string
	CommandTag           string
	RowsAffected         int64
	DurationMs           int64
	Error                string
}

Jump to

Keyboard shortcuts

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