From 9659a6da06852ede9bf6b87c0e39a543e88a5034 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 27 Jun 2017 08:02:08 -0700 Subject: Stage 1 of caching layer. Framework (#6693) --- store/sql_supplier_reactions.go | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 store/sql_supplier_reactions.go (limited to 'store/sql_supplier_reactions.go') diff --git a/store/sql_supplier_reactions.go b/store/sql_supplier_reactions.go new file mode 100644 index 000000000..14f13cce6 --- /dev/null +++ b/store/sql_supplier_reactions.go @@ -0,0 +1,35 @@ +// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +package store + +import ( + "context" + + "github.com/mattermost/platform/model" +) + +func initSqlSupplierReactions(sqlStore SqlStore) { + for _, db := range sqlStore.GetAllConns() { + table := db.AddTableWithName(model.Reaction{}, "Reactions").SetKeys(false, "UserId", "PostId", "EmojiName") + table.ColMap("UserId").SetMaxSize(26) + table.ColMap("PostId").SetMaxSize(26) + table.ColMap("EmojiName").SetMaxSize(64) + } +} + +func (s *SqlSupplier) ReactionSave(ctx context.Context, reaction *model.Reaction, hints ...LayeredStoreHint) LayeredStoreSupplierResult { + panic("not implemented") +} + +func (s *SqlSupplier) ReactionDelete(ctx context.Context, reaction *model.Reaction, hints ...LayeredStoreHint) LayeredStoreSupplierResult { + panic("not implemented") +} + +func (s *SqlSupplier) ReactionGetForPost(ctx context.Context, postId string, hints ...LayeredStoreHint) LayeredStoreSupplierResult { + panic("not implemented") +} + +func (s *SqlSupplier) ReactionDeleteAllWithEmojiName(ctx context.Context, emojiName string, hints ...LayeredStoreHint) LayeredStoreSupplierResult { + panic("not implemented") +} -- cgit v1.2.3-1-g7c22