Documentation ¶
Index ¶
- Constants
- func NewPropertyFieldStore(pluginAPI PluginAPIClient, sqlStore *SQLStore) app.PropertyFieldStore
- func NewPropertyStore(pluginAPI PluginAPIClient, sqlStore *SQLStore) app.PropertyStore
- func NewViewMemberStore(pluginAPI PluginAPIClient, sqlStore *SQLStore) app.ViewMemberStore
- func NewViewStore(pluginAPI PluginAPIClient, sqlStore *SQLStore) app.ViewStore
- func Rebind(bindType int, query string) string
- type ConfigurationAPI
- type ConstraintsInfo
- type IndexInfo
- type KVAPI
- type PluginAPIClient
- type SQLStore
- type StoreAPI
- type TableInfo
Constants ¶
const ( UNKNOWN = iota QUESTION DOLLAR NAMED AT )
Below is copied from sqlx/bind.go to handle escaping question marks. TODO: make work for QUESTION bind types (eg mysql)
Variables ¶
This section is empty.
Functions ¶
func NewPropertyFieldStore ¶
func NewPropertyFieldStore(pluginAPI PluginAPIClient, sqlStore *SQLStore) app.PropertyFieldStore
func NewPropertyStore ¶
func NewPropertyStore(pluginAPI PluginAPIClient, sqlStore *SQLStore) app.PropertyStore
func NewViewMemberStore ¶
func NewViewMemberStore(pluginAPI PluginAPIClient, sqlStore *SQLStore) app.ViewMemberStore
func NewViewStore ¶
func NewViewStore(pluginAPI PluginAPIClient, sqlStore *SQLStore) app.ViewStore
Types ¶
type ConfigurationAPI ¶
type ConstraintsInfo ¶
type KVAPI ¶
KVAPI is the key value store interface for the pluginkv stores. It is implemented by mattermost-plugin-api/Client.KV, or by the mock KVAPI.
type PluginAPIClient ¶
type PluginAPIClient struct { Store StoreAPI KV KVAPI Configuration ConfigurationAPI }
PluginAPIClient is the struct combining the interfaces defined above, which is everything from pluginapi that the store currently uses.
func NewClient ¶
func NewClient(api *pluginapi.Client) PluginAPIClient
NewClient receives a pluginapi.Client and returns the PluginAPIClient, which is what the store will use to access pluginapi.Client.
type SQLStore ¶
type SQLStore struct {
// contains filtered or unexported fields
}
func New ¶
func New(pluginAPI PluginAPIClient) (*SQLStore, error)
New constructs a new instance of SQLStore.
func (*SQLStore) RunMigrations ¶
RunMigrations will run the migrations (if any). The caller should hold a cluster mutex if there is a danger of this being run on multiple servers at once.