mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-15 11:53:01 -06:00
bump uptrace/bun dependencies from 1.2.6 to 1.2.8 (#3645)
This commit is contained in:
parent
e77c7e16b6
commit
b8ef9fc4bc
89 changed files with 907 additions and 4123 deletions
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue