sqlitex

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package sqlitex implements hubx.ClientProvider for "dbx.sqlite".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DSN             string        `yaml:"dsn"`
	MaxOpenConns    int           `yaml:"max_open_conns"`
	MaxIdleConns    int           `yaml:"max_idle_conns"`
	ConnMaxLifetime time.Duration `yaml:"conn_max_lifetime"`
}

type Provider

type Provider struct{}

func New

func New() *Provider

func (*Provider) Build

func (p *Provider) Build(instanceName string, cfg map[string]any) (hubx.Client, error)

func (*Provider) Close

func (p *Provider) Close() error

func (*Provider) HealthCheck

func (p *Provider) HealthCheck(context.Context) error

func (*Provider) Name

func (p *Provider) Name() string

Jump to

Keyboard shortcuts

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