enable identity column insert optionally for mssql ref: https://github.com/jinzhu/gorm/issues/647
This commit is contained in:
parent
a739f8b035
commit
a3b89f8100
@ -18,6 +18,7 @@ type Dialect interface {
|
|||||||
HasIndex(scope *Scope, tableName string, indexName string) bool
|
HasIndex(scope *Scope, tableName string, indexName string) bool
|
||||||
RemoveIndex(scope *Scope, indexName string)
|
RemoveIndex(scope *Scope, indexName string)
|
||||||
CurrentDatabase(scope *Scope) string
|
CurrentDatabase(scope *Scope) string
|
||||||
|
EnableIdentityInsert(db *DB, tableName string) *DB
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewDialect(driver string) Dialect {
|
func NewDialect(driver string) Dialect {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user