/
githubmirror
/
xorm
Обзор
Документация
Войти
/
githubmirror
/
xorm
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
internal/utils/name.go
20 строк
480 B
Lunny Xiao
Add dameng support (#2007)
24 авг 2021, 08:46
24 авг 2021, 08:46
c29b964
Код
Авторство
О чём код?
// Copyright 2020 The Xorm Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package utils import ( "fmt" "strings" ) // IndexName returns index name func IndexName(tableName, idxName string) string { return fmt.Sprintf("IDX_%v_%v", tableName, idxName) } // SeqName returns sequence name for some table func SeqName(tableName string) string { return "SEQ_" + strings.ToUpper(tableName) }