Skip to content

Commit bd68811

Browse files
committed
Register the dialect on init
1 parent f45a1ba commit bd68811

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dialect.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ import (
77
"time"
88

99
"github.com/ngorm/common"
10+
"github.com/ngorm/ngorm/dialects"
1011
"github.com/ngorm/ngorm/model"
1112
)
1213

14+
func init() {
15+
dialects.Register(&Postgres{})
16+
}
17+
1318
type Postgres struct {
1419
common.Dialect
1520
}

0 commit comments

Comments
 (0)