sqlite

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDuplicateKeyError

func IsDuplicateKeyError(err error) bool

func IsNoFoundError

func IsNoFoundError(err error) bool

func RegisterCallbacks

func RegisterCallbacks(db *gorm.DB)

func WrapErr

func WrapErr(err error) error

Types

type Client

type Client struct {
	DB *gorm.DB
}

func NewClient

func NewClient(cfg *Config) (c *Client, err error)

type Config

type Config struct {
	Path             string         `json:"path"`
	MaxOpenConn      int            `json:"max_open_conn,omitempty"`
	MaxIdleConn      int            `json:"max_idle_conn,omitempty"`
	MaxIdleTimeSec   int            `json:"max_life_time_sec,omitempty"`
	LogConfig        *sql.LogConfig `json:"log_config,omitempty"`
	DisableErrorHook bool           `json:"disable_error_hook,omitempty"`
}

Jump to

Keyboard shortcuts

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