storage

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientSQLite

type ClientSQLite struct {
	// contains filtered or unexported fields
}

func Create

func Create(ctx context.Context, dsn string, opts ...Option) (*ClientSQLite, error)

func (*ClientSQLite) Close

func (c *ClientSQLite) Close() error

func (*ClientSQLite) DB

func (c *ClientSQLite) DB() *sql.DB

type Option

type Option func(o *Options)

func WithCheckPing

func WithCheckPing(check bool) Option

func WithConnMaxIdleTime

func WithConnMaxIdleTime(v time.Duration) Option

func WithConnMaxLifetime

func WithConnMaxLifetime(v time.Duration) Option

func WithDSN

func WithDSN(dsn string) Option

func WithLogger

func WithLogger(log logger.Logger) Option

func WithMaxIdleConns

func WithMaxIdleConns(v int) Option

func WithMaxOpenConns

func WithMaxOpenConns(v int) Option

type Options

type Options struct {
	// contains filtered or unexported fields
}

func (*Options) Validate

func (o *Options) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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