Documentation
¶
Index ¶
- func Open(dataSourceName string, opts ...bun.DBOption) (*bun.DB, error)
- func WithConnMaxIdleTime(d time.Duration) bun.DBOption
- func WithCreateTable(ctx context.Context, cancel context.CancelCauseFunc, model ...any) bun.DBOption
- func WithMaxIdleConns(n int) bun.DBOption
- func WithMaxOpenConns(n int) bun.DBOption
- func WithOTEL(option ...bunotel.Option) bun.DBOption
- func WithSLog(opts ...bunslog.Option) bun.DBOption
- type Array
- type Dialect
- func (d *Dialect) AppendSequence(b []byte, _ *schema.Table, _ *schema.Field) []byte
- func (d *Dialect) DefaultSchema() string
- func (d *Dialect) DefaultVarcharLen() int
- func (d *Dialect) Features() feature.Feature
- func (d *Dialect) IdentQuote() byte
- func (d *Dialect) Init(_ *sql.DB)
- func (d *Dialect) Name() dialect.Name
- func (d *Dialect) NewMigrator(db *bun.DB, schemaName string) sqlschema.Migrator
- func (d *Dialect) OnTable(table *schema.Table)
- func (d *Dialect) Tables() *schema.Tables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCreateTable ¶
func WithMaxIdleConns ¶
func WithMaxOpenConns ¶
Types ¶
type Dialect ¶
type Dialect struct {
schema.BaseDialect
// contains filtered or unexported fields
}
func (*Dialect) AppendSequence ¶
func (*Dialect) DefaultSchema ¶
func (*Dialect) DefaultVarcharLen ¶
func (*Dialect) IdentQuote ¶
func (*Dialect) NewMigrator ¶
Click to show internal directories.
Click to hide internal directories.