`` go get -u ./... go mod tidy ``` Fixed SQLite related code to fit latest changes in SQLite driver
28 lines
713 B
Go
28 lines
713 B
Go
// Code generated by BobGen sqlite v0.41.1. DO NOT EDIT.
|
|
// This file is meant to be re-generated in place and/or deleted at any time.
|
|
|
|
package models
|
|
|
|
import (
|
|
"github.com/stephenafamo/bob/clause"
|
|
"github.com/stephenafamo/bob/dialect/sqlite"
|
|
"github.com/stephenafamo/bob/dialect/sqlite/dialect"
|
|
)
|
|
|
|
var (
|
|
SelectWhere = Where[*dialect.SelectQuery]()
|
|
UpdateWhere = Where[*dialect.UpdateQuery]()
|
|
DeleteWhere = Where[*dialect.DeleteQuery]()
|
|
OnConflictWhere = Where[*clause.ConflictClause]() // Used in ON CONFLICT DO UPDATE
|
|
)
|
|
|
|
func Where[Q sqlite.Filterable]() struct {
|
|
Records recordWhere[Q]
|
|
} {
|
|
return struct {
|
|
Records recordWhere[Q]
|
|
}{
|
|
Records: buildRecordWhere[Q](Records.Columns),
|
|
}
|
|
}
|