bun

package
v0.0.0-...-c6285c9 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a DB interface compatible client for Bun.

func New

func New(ctx context.Context) (*Client, error)

New creates a new bun database client

func (*Client) Close

func (c *Client) Close(_ context.Context) db.Error

Close closes the bun db connection.

func (*Client) DoMigration

func (c *Client) DoMigration(ctx context.Context) db.Error

DoMigration runs schema migrations on the database.

func (*Client) ProcessError

func (c *Client) ProcessError(err error) db.Error

ProcessError replaces any known values with our own db.Error types

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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