types

package
v0.0.130 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package types provides types to work with SQL databases

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConfig

type DBConfig interface {
	GetDSN() string
}

type DBLog

type DBLog struct {
	Log SQLLoggerFunc
}

func (*DBLog) WriteLog

func (dbl *DBLog) WriteLog(sql string, du time.Duration, sqlParams ...any)

type SQLLogger

type SQLLogger interface {
	WriteLog(s string, du time.Duration, optionsAndArgs ...any)
}

type SQLLoggerFunc

type SQLLoggerFunc func(sql string, du time.Duration, sqlParams ...any)

SQLLoggerFunc provides the log func used by generated queries.

Jump to

Keyboard shortcuts

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