enable identity column insert optionally for mssql ref: https://github.com/jinzhu/gorm/issues/647

This commit is contained in:
biju-kalissery 2015-09-08 14:04:43 -04:00
parent a739f8b035
commit a3b89f8100

View File

@ -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 {