2021-08-25 14:34:33 +01:00
|
|
|
package feature
|
|
|
|
|
|
|
|
import "github.com/uptrace/bun/internal"
|
|
|
|
|
|
|
|
type Feature = internal.Flag
|
|
|
|
|
|
|
|
const (
|
2021-09-08 20:05:26 +01:00
|
|
|
CTE Feature = 1 << iota
|
2022-04-24 11:26:22 +01:00
|
|
|
WithValues
|
2021-09-08 20:05:26 +01:00
|
|
|
Returning
|
2022-04-24 11:26:22 +01:00
|
|
|
InsertReturning
|
|
|
|
Output // mssql
|
2021-08-25 14:34:33 +01:00
|
|
|
DefaultPlaceholder
|
|
|
|
DoubleColonCast
|
|
|
|
ValuesRow
|
|
|
|
UpdateMultiTable
|
|
|
|
InsertTableAlias
|
2022-04-24 11:26:22 +01:00
|
|
|
UpdateTableAlias
|
2021-08-25 14:34:33 +01:00
|
|
|
DeleteTableAlias
|
|
|
|
AutoIncrement
|
2022-04-24 11:26:22 +01:00
|
|
|
Identity
|
2021-08-25 14:34:33 +01:00
|
|
|
TableCascade
|
|
|
|
TableIdentity
|
|
|
|
TableTruncate
|
2021-11-27 14:26:58 +00:00
|
|
|
InsertOnConflict // INSERT ... ON CONFLICT
|
|
|
|
InsertOnDuplicateKey // INSERT ... ON DUPLICATE KEY
|
|
|
|
InsertIgnore // INSERT IGNORE ...
|
2022-04-24 11:26:22 +01:00
|
|
|
TableNotExists
|
|
|
|
OffsetFetch
|
|
|
|
SelectExists
|
|
|
|
UpdateFromTable
|
2021-08-25 14:34:33 +01:00
|
|
|
)
|