mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
bump uptrace/bun dependencies from 1.2.6 to 1.2.8 (#3645)
This commit is contained in:
15
vendor/github.com/uptrace/bun/dialect/sqlitedialect/dialect.go
generated
vendored
15
vendor/github.com/uptrace/bun/dialect/sqlitedialect/dialect.go
generated
vendored
@ -26,7 +26,7 @@ type Dialect struct {
|
||||
features feature.Feature
|
||||
}
|
||||
|
||||
func New() *Dialect {
|
||||
func New(opts ...DialectOption) *Dialect {
|
||||
d := new(Dialect)
|
||||
d.tables = schema.NewTables(d)
|
||||
d.features = feature.CTE |
|
||||
@ -42,9 +42,22 @@ func New() *Dialect {
|
||||
feature.AutoIncrement |
|
||||
feature.CompositeIn |
|
||||
feature.DeleteReturning
|
||||
|
||||
for _, opt := range opts {
|
||||
opt(d)
|
||||
}
|
||||
|
||||
return d
|
||||
}
|
||||
|
||||
type DialectOption func(d *Dialect)
|
||||
|
||||
func WithoutFeature(other feature.Feature) DialectOption {
|
||||
return func(d *Dialect) {
|
||||
d.features = d.features.Remove(other)
|
||||
}
|
||||
}
|
||||
|
||||
func (d *Dialect) Init(*sql.DB) {}
|
||||
|
||||
func (d *Dialect) Name() dialect.Name {
|
||||
|
Reference in New Issue
Block a user