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 ¶
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.