database

package
v0.10.11 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB

Functions

func Close

func Close()

func EnsureMessageSearchIndex added in v0.8.9

func EnsureMessageSearchIndex(db *sql.DB) error

func Initialize

func Initialize()

func RetryWithBackoff added in v0.0.13

func RetryWithBackoff(fn func() error) error

RetryWithBackoff executes the given function with exponential backoff

func WithTx added in v0.0.13

func WithTx(ctx context.Context, fn TxFn) error

WithTx executes the given function within a transaction

Types

type TxFn added in v0.0.13

type TxFn func(*sql.Tx) error

TxFn is a function that will be called with an active transaction

Jump to

Keyboard shortcuts

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