mysql

package
v1.19.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 23 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMySQLStateStore

func NewMySQLStateStore(logger logger.Logger) state.Store

NewMySQLStateStore creates a new instance of MySQL state store.

Types

type MySQL

type MySQL struct {
	state.BulkStore
	// contains filtered or unexported fields
}

MySQL state store.

func (*MySQL) BulkGet

func (m *MySQL) BulkGet(parentCtx context.Context, req []state.GetRequest, _ state.BulkGetOpts) ([]state.BulkGetResponse, error)

func (*MySQL) Close

func (m *MySQL) Close() error

Close implements io.Closer.

func (*MySQL) Delete

func (m *MySQL) Delete(ctx context.Context, req *state.DeleteRequest) error

Delete removes an entity from the store Store Interface.

func (*MySQL) Features added in v1.1.1

func (m *MySQL) Features() []state.Feature

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

func (m *MySQL) Init(ctx context.Context, metadata state.Metadata) error

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) KeysLike added in v1.17.0

func (*MySQL) Multi

func (m *MySQL) Multi(ctx context.Context, request *state.TransactionalStateRequest) error

Multi handles multiple operations in batch. Implements the TransactionalStore Interface.

func (*MySQL) Ping added in v1.4.4

func (m *MySQL) Ping(ctx context.Context) error

Ping the database.

func (*MySQL) PingWithContext added in v1.10.1

func (m *MySQL) PingWithContext(parentCtx context.Context) error

PingWithContext is like Ping but accepts a context.

func (*MySQL) Set

func (m *MySQL) Set(ctx context.Context, req *state.SetRequest) error

Set adds/updates an entity on store Store Interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL