bunpgd

package module
v0.0.0-...-6d8be5c Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(dataSourceName string, opts ...bun.DBOption) (*bun.DB, error)

func WithConnMaxIdleTime

func WithConnMaxIdleTime(d time.Duration) bun.DBOption

func WithMaxIdleConns

func WithMaxIdleConns(n int) bun.DBOption

func WithMaxOpenConns

func WithMaxOpenConns(n int) bun.DBOption

Types

type Dialect

type Dialect struct {
	schema.BaseDialect
	// contains filtered or unexported fields
}

func New

func New() *Dialect

func (*Dialect) AppendSequence

func (d *Dialect) AppendSequence(b []byte, _ *schema.Table, _ *schema.Field) []byte

func (*Dialect) DefaultVarcharLen

func (d *Dialect) DefaultVarcharLen() int

func (*Dialect) Features

func (d *Dialect) Features() feature.Feature

func (*Dialect) IdentQuote

func (d *Dialect) IdentQuote() byte

func (*Dialect) Init

func (d *Dialect) Init(_ *sql.DB)

func (*Dialect) Name

func (d *Dialect) Name() dialect.Name

func (*Dialect) OnTable

func (d *Dialect) OnTable(table *schema.Table)

func (*Dialect) Tables

func (d *Dialect) Tables() *schema.Tables

Directories

Path Synopsis
internal
b2s

Jump to

Keyboard shortcuts

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