Documentation ¶
Index ¶
- func NewMySQLStateStore(logger logger.Logger) state.Store
- type MySQL
- func (m *MySQL) BulkGet(parentCtx context.Context, req []state.GetRequest, _ state.BulkGetOpts) ([]state.BulkGetResponse, error)
- func (m *MySQL) Close() error
- func (m *MySQL) Delete(ctx context.Context, req *state.DeleteRequest) error
- func (m *MySQL) Features() []state.Feature
- func (m *MySQL) Get(parentCtx context.Context, req *state.GetRequest) (*state.GetResponse, error)
- func (m *MySQL) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
- func (m *MySQL) Init(ctx context.Context, metadata state.Metadata) error
- func (m *MySQL) Multi(ctx context.Context, request *state.TransactionalStateRequest) error
- func (m *MySQL) Ping(ctx context.Context) error
- func (m *MySQL) PingWithContext(parentCtx context.Context) error
- func (m *MySQL) Set(ctx context.Context, req *state.SetRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MySQL ¶
MySQL state store.
func (*MySQL) BulkGet ¶
func (m *MySQL) BulkGet(parentCtx context.Context, req []state.GetRequest, _ state.BulkGetOpts) ([]state.BulkGetResponse, error)
func (*MySQL) Features ¶ added in v1.1.1
Features returns the features available in this state store.
func (*MySQL) Get ¶
func (m *MySQL) Get(parentCtx context.Context, req *state.GetRequest) (*state.GetResponse, error)
Get returns an entity from store Store Interface.
func (*MySQL) GetComponentMetadata ¶ added in v1.10.1
func (m *MySQL) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
func (*MySQL) Init ¶
Init initializes the SQL server state store Implements the following interfaces: Store TransactionalStore Populate the rest of the MySQL object by reading the metadata and opening a connection to the server.
func (*MySQL) Multi ¶
Multi handles multiple operations in batch. Implements the TransactionalStore Interface.
func (*MySQL) PingWithContext ¶ added in v1.10.1
PingWithContext is like Ping but accepts a context.
Click to show internal directories.
Click to hide internal directories.