logs

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogEntries = struct {
	ID        drel.OrderedColumn[int]
	Level     drel.StringColumn
	Message   drel.StringColumn
	CreatedAt drel.TimeColumn
	UpdatedAt drel.TimeColumn
}{
	ID:        drel.NewOrderedCol[int]("id"),
	Level:     drel.NewStringCol("level"),
	Message:   drel.NewStringCol("message"),
	CreatedAt: drel.NewTimeCol("created_at"),
	UpdatedAt: drel.NewTimeCol("updated_at"),
}
View Source
var LogEntryMeta = drel.ModelMeta[LogEntry]{
	Table:         "log_entries",
	Columns:       []string{"id", "level", "message", "created_at", "updated_at"},
	PKColumn:      "id",
	Scan:          scanLogentry,
	Snapshot:      snapshotLogentry,
	Diff:          diffLogentry,
	PKValue:       logentryPKValue,
	InsertColumns: logentryInsertColumns,
	ScanReturning: logentryScanReturning,
	ColumnValue:   logentryColumnValue,
	NormalizeKey:  logentryNormalizeKey,
}

Functions

This section is empty.

Types

type LogEntry

type LogEntry struct {
	drel.Model[int]
	Level   string `db:"level"`
	Message string `db:"message"`
}

type LogEntryRepository

type LogEntryRepository struct {
	*drel.Repository[LogEntry]
}

func (*LogEntryRepository) FindByID

func (r *LogEntryRepository) FindByID(ctx context.Context, id int) (*LogEntry, error)

type TxLogEntryRepository

type TxLogEntryRepository struct {
	*drel.TxRepository[LogEntry]
}

func (*TxLogEntryRepository) FindByID

func (r *TxLogEntryRepository) FindByID(ctx context.Context, id int) (*LogEntry, error)

Jump to

Keyboard shortcuts

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