bunx

package
v0.0.0-...-0b4d345 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package bunx is the bun adapter for the notify database channel, mirroring the dbx/bunx split and events/outbox/bunx: projects that wire the bun transactor use it so notification inserts/updates join the bun transaction opened by WithinTransaction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(db *bun.DB) database.Store

NewStore returns a database.Store that writes through the bun transaction carried by ctx (bunx.Conn), falling back to db outside a transaction. Raw SQL runs through Conn (the underlying *sql.DB/*sql.Tx), so it uses native $N placeholders and bypasses bun's own argument formatting — the same path dbx/bunx's doc recommends for sqlc-style raw SQL, which sidesteps the []byte-as-bytea pitfall events/outbox/bunx works around differently.

Types

This section is empty.

Jump to

Keyboard shortcuts

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