Documentation ¶
Overview ¶
Package mysql implements a storage interface for Aries (aries-framework-go).
Index ¶
- Variables
- type Option
- type Provider
- func (p *Provider) Close() error
- func (p *Provider) GetOpenStores() []storage.Store
- func (p *Provider) GetStoreConfig(string) (storage.StoreConfiguration, error)
- func (p *Provider) OpenStore(name string) (storage.Store, error)
- func (p *Provider) SetStoreConfig(string, storage.StoreConfiguration) error
Constants ¶
This section is empty.
Variables ¶
var ErrKeyRequired = errors.New("key is mandatory")
ErrKeyRequired is returned when key is mandatory.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(opts *Provider)
Option configures the couchdb provider.
func WithDBPrefix ¶
WithDBPrefix option is for adding prefix to db name.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider represents a MySQL DB implementation of the storage.Provider interface.
func NewProvider ¶
NewProvider instantiates Provider. Example DB Path root:my-secret-pw@tcp(127.0.0.1:3306)/ This provider's CreateStore(name) implementation creates stores that are backed by a table under a schema with the same name as the table. The fully qualified name of the table is thus `name.name`. The fully qualified name of the table needs to be used with the store's `Query()` method.
func (*Provider) GetOpenStores ¶
GetOpenStores is currently not implemented.
func (*Provider) GetStoreConfig ¶
func (p *Provider) GetStoreConfig(string) (storage.StoreConfiguration, error)
GetStoreConfig is currently not implemented.
func (*Provider) OpenStore ¶
OpenStore opens a store with the given name and returns a handle. If the store has never been opened before, then it is created. Store names are not case-sensitive. If name is blank, then an error will be returned.
func (*Provider) SetStoreConfig ¶
func (p *Provider) SetStoreConfig(string, storage.StoreConfiguration) error
SetStoreConfig is currently not implemented.