db

package
v0.0.0-...-0871bfd Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecTx

func ExecTx(ctx context.Context, db *bun.DB, opts *sql.TxOptions, statements []string) error

ExecTx executes provided SQL statements inside a single transaction using the provided Context and DB connection.

func Open

func Open(cfg *Config) (*bun.DB, error)

Types

type Config

type Config struct {
	DBMS     string
	DSN      string
	TraceSQL bool
}

Jump to

Keyboard shortcuts

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