Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 ¶
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) CloseStore ¶
CloseStore closes a previously opened store.
func (*Provider) CreateStore ¶
CreateStore creates a store with the given name.