Documentation ¶
Index ¶
- func New(dsn string) (kolektor.Storer, error)
- type Store
- func (s *Store) Connection(ctx context.Context) (any, error)
- func (s *Store) GetObject(obj kolektor.Modeler, fieldMap kolektor.FieldMap) error
- func (s *Store) InitCollection(model kolektor.Modeler) error
- func (s *Store) Name() string
- func (s *Store) RemoveCollection(model kolektor.Modeler) error
- func (s *Store) StoreObject(obj kolektor.Modeler) (*kolektor.Meta, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store defines the MySQL backed data store.
func (*Store) Connection ¶
Connection returns a connection to the store. The caller is responsible for type asserting the result to the appropriated type for this store, namely *sql.Conn.
func (*Store) InitCollection ¶
InitCollection initializes the model's collection.
func (*Store) RemoveCollection ¶
RemoveCollection removes the model's collection.
Click to show internal directories.
Click to hide internal directories.