Removing unnecesary SqlStore interface (#16057)

Этот коммит содержится в:
Jesús Espino
2020-11-20 10:51:58 +01:00
коммит произвёл GitHub
родитель 5b1a716e2c
Коммит d274cf8afa
39 изменённых файлов: 538 добавлений и 1591 удалений

Просмотреть файл

@@ -21,13 +21,13 @@ const (
)
type SqlSessionStore struct {
SqlStore
*SqlSupplier
}
func newSqlSessionStore(sqlStore SqlStore) store.SessionStore {
us := &SqlSessionStore{sqlStore}
func newSqlSessionStore(sqlSupplier *SqlSupplier) store.SessionStore {
us := &SqlSessionStore{sqlSupplier}
for _, db := range sqlStore.GetAllConns() {
for _, db := range sqlSupplier.GetAllConns() {
table := db.AddTableWithName(model.Session{}, "Sessions").SetKeys(false, "Id")
table.ColMap("Id").SetMaxSize(26)
table.ColMap("Token").SetMaxSize(26)