From a3b89f8100f030626fa63704c3ae9a237bfcb474 Mon Sep 17 00:00:00 2001 From: biju-kalissery Date: Tue, 8 Sep 2015 14:04:43 -0400 Subject: [PATCH] enable identity column insert optionally for mssql ref: https://github.com/jinzhu/gorm/issues/647 --- dialect.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dialect.go b/dialect.go index 926f8a11..250c6779 100644 --- a/dialect.go +++ b/dialect.go @@ -18,6 +18,7 @@ type Dialect interface { HasIndex(scope *Scope, tableName string, indexName string) bool RemoveIndex(scope *Scope, indexName string) CurrentDatabase(scope *Scope) string + EnableIdentityInsert(db *DB, tableName string) *DB } func NewDialect(driver string) Dialect {