mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-14 05:10:24 +08:00
20 lines
346 B
Go
20 lines
346 B
Go
package dm
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
"mayfly-go/internal/db/dbm/dbi"
|
|
)
|
|
|
|
type DumpHelper struct {
|
|
dbi.DefaultDumpHelper
|
|
}
|
|
|
|
func (dh *DumpHelper) BeforeInsert(writer io.Writer, tableName string) {
|
|
|
|
}
|
|
|
|
func (dh *DumpHelper) BeforeInsertSql(quoteSchema string, tableName string) string {
|
|
return fmt.Sprintf("set identity_insert %s on;", tableName)
|
|
}
|