Add GetDialect function (#52818)

This commit is contained in:
Selene
2022-07-27 12:58:41 +02:00
committed by GitHub
parent 5c51d32098
commit 8ce81019db
3 changed files with 12 additions and 0 deletions
+5
View File
@@ -157,6 +157,11 @@ func (ss *SQLStore) Quote(value string) string {
return ss.engine.Quote(value)
}
// GetDialect return the dialect
func (ss *SQLStore) GetDialect() migrator.Dialect {
return ss.Dialect
}
func (ss *SQLStore) ensureMainOrgAndAdminUser() error {
ctx := context.Background()
err := ss.WithTransactionalDbSession(ctx, func(sess *DBSession) error {